Direct Known Subclasses:
HashPartitioningMetadata, RangePartitioningMetadata, ValuePartitioningMetadata

public abstract class FieldPartitioningMetadata extends AbstractPartitioningMetadata
INTERNAL: Define JPA meta-data for partitioning policy. Key notes: - any metadata mapped from XML to this class must be compared in the equals method. - when loading from annotations, the constructor accepts the metadata accessor this metadata was loaded from. Used it to look up any 'companion' annotation needed for processing. - methods should be preserved in alphabetical order.
Since:
EclipseLink 2.2
  • Field Details

    • unionUnpartitionableQueries

      protected Boolean unionUnpartitionableQueries
    • partitionColumn

      protected ColumnMetadata partitionColumn
    • partitionValueType

      protected MetadataClass partitionValueType
    • partitionValueTypeName

      protected String partitionValueTypeName
  • Constructor Details

    • FieldPartitioningMetadata

      public FieldPartitioningMetadata()
      INTERNAL: Used for XML loading.
    • FieldPartitioningMetadata

      public FieldPartitioningMetadata(MetadataAnnotation annotation, MetadataAccessor accessor)
      INTERNAL: Used for annotation loading.
    • FieldPartitioningMetadata

      protected FieldPartitioningMetadata(String elementName)
      INTERNAL: Used for XML loading.
  • Method Details

    • equals

      public boolean equals(Object objectToCompare)
      INTERNAL: Used for XML merging and overriding.
      Overrides:
      equals in class AbstractPartitioningMetadata
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractPartitioningMetadata
    • buildPolicy

      public void buildPolicy(PartitioningPolicy policy)
      Set common fields into policy. Should be called by subclasses.
      Overrides:
      buildPolicy in class AbstractPartitioningMetadata
    • getPartitionColumn

      public ColumnMetadata getPartitionColumn()
      INTERNAL: Used for OX mapping.
    • getPartitionValueType

      public MetadataClass getPartitionValueType()
      INTERNAL:
    • getPartitionValueTypeName

      public String getPartitionValueTypeName()
      INTERNAL: Used for OX mapping.
    • getUnionUnpartitionableQueries

      public Boolean getUnionUnpartitionableQueries()
      INTERNAL: Used for OX mapping.
    • initXMLObject

      public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
      INTERNAL:
      Overrides:
      initXMLObject in class ORMetadata
    • setPartitionColumn

      public void setPartitionColumn(ColumnMetadata partitionColumn)
      INTERNAL: Used for OX mapping.
    • setPartitionValueTypeName

      public void setPartitionValueTypeName(String partitionValueTypeName)
      INTERNAL: Used for OX mapping.
    • setUnionUnpartitionableQueries

      public void setUnionUnpartitionableQueries(Boolean unionUnpartitionableQueries)
      INTERNAL: Used for OX mapping.