java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.partitioning.AbstractPartitioningMetadata
Direct Known Subclasses:
FieldPartitioningMetadata, PartitioningMetadata, PinnedPartitioningMetadata, ReplicationPartitioningMetadata

public abstract class AbstractPartitioningMetadata extends ORMetadata
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

    • name

      protected String name
  • Constructor Details

    • AbstractPartitioningMetadata

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

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

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • equals

      public boolean equals(Object objectToCompare)
      Equals is used for processing overrides from XML.
      Specified by:
      equals in class ORMetadata
    • hashCode

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

      public abstract PartitioningPolicy buildPolicy()
      Require subclass to build policy.
    • buildPolicy

      public void buildPolicy(PartitioningPolicy policy)
      Set common fields into policy. Should be called by subclasses.