Class DirectCollectionAccessor

  • Direct Known Subclasses:
    BasicCollectionAccessor, ElementCollectionAccessor

    public abstract class DirectCollectionAccessor
    extends DirectAccessor
    An abstract direct collection accessor. Used to support DirectCollection, DirectMap, AggregateCollection through the ElementCollection, BasicCollection and BasicMap metadata. Key notes: - any metadata mapped from XML to this class must be compared in the equals method. - any metadata mapped from XML to this class must be handled in the merge method. (merging is done at the accessor/mapping level) - any metadata mapped from XML to this class must be initialized in the initXMLObject method. - methods should be preserved in alphabetical order.
    Since:
    EclipseLink 1.2
    Author:
    Guy Pelletier
    • Constructor Detail

      • DirectCollectionAccessor

        protected DirectCollectionAccessor​(java.lang.String xmlElement)
        INTERNAL:
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        INTERNAL:
        Overrides:
        equals in class DirectAccessor
      • getBatchFetch

        public BatchFetchMetadata getBatchFetch()
        INTERNAL: Used for OX mapping.
      • getCascadeOnDelete

        public java.lang.Boolean getCascadeOnDelete()
        INTERNAL: Used for OX mapping.
      • getDefaultCollectionTableName

        protected java.lang.String getDefaultCollectionTableName()
        INTERNAL:
      • getJoinFetch

        public java.lang.String getJoinFetch()
        INTERNAL: Used for OX mapping.
      • getPrivateOwned

        public java.lang.String getPrivateOwned()
        INTERNAL: Used for OX mapping.
      • getKeyConverter

        protected abstract java.lang.String getKeyConverter()
        INTERNAL: Return the converter name for a map key.
      • getNonCacheable

        public java.lang.Boolean getNonCacheable()
        INTERNAL: Used for OX mapping.
      • hasMapKeyClass

        protected boolean hasMapKeyClass()
        INTERNAL: Return true if this accessor has a map key class specified.
        See Also:
        ElementCollectionAccessor
      • isCascadeOnDelete

        public java.lang.Boolean isCascadeOnDelete()
        INTERNAL:
      • isDirectCollection

        public boolean isDirectCollection()
        INTERNAL: Return true if this accessor represents a direct collection mapping, which include basic collection, basic map and element collection accessors.
        Overrides:
        isDirectCollection in class MappingAccessor
      • isNonCacheable

        public boolean isNonCacheable()
        INTERNAL: Used for OX mapping.
      • isValidDirectCollectionType

        protected boolean isValidDirectCollectionType()
        INTERNAL: Returns true if the given class is a valid basic collection type.
      • isValidDirectMapType

        protected boolean isValidDirectMapType()
        INTERNAL: Returns true if the given class is a valid basic map type.
      • process

        protected void process​(org.eclipse.persistence.mappings.DatabaseMapping mapping)
        INTERNAL:
      • processBatchFetch

        protected void processBatchFetch​(org.eclipse.persistence.mappings.ForeignReferenceMapping mapping)
        INTERNAL: Set the batch fetch type on the foreign reference mapping.
      • processCollectionTable

        protected void processCollectionTable​(org.eclipse.persistence.mappings.CollectionMapping mapping)
        INTERNAL: Process a MetadataCollectionTable. Sub classes should call this to ensure a table is defaulted.
      • processDirectCollectionMapping

        protected void processDirectCollectionMapping()
        INTERNAL:
      • processDirectMapMapping

        protected void processDirectMapMapping()
        INTERNAL:
      • setBatchFetch

        public void setBatchFetch​(BatchFetchMetadata batchFetch)
        INTERNAL: Used for OX mapping.
      • setCascadeOnDelete

        public void setCascadeOnDelete​(java.lang.Boolean cascadeOnDelete)
        INTERNAL: Used for OX mapping.
      • setCollectionTable

        public void setCollectionTable​(CollectionTableMetadata collectionTable)
        INTERNAL: Used for OX mapping.
      • setNonCacheable

        public void setNonCacheable​(java.lang.Boolean nonCacheable)
        INTERNAL: Used for OX mapping.
      • setJoinFetch

        public void setJoinFetch​(java.lang.String joinFetch)
        INTERNAL: Used for OX mapping.