Class 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
    Author:
    James Sutherland
    • Field Detail

    • Constructor Detail

      • AbstractPartitioningMetadata

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

      • 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.