Class ManyToManyAccessor

  • All Implemented Interfaces:
    MappedKeyMapAccessor

    public class ManyToManyAccessor
    extends CollectionAccessor
    INTERNAL: A many to many relationship accessor. 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:
    TopLink EJB 3.0 Reference Implementation
    Author:
    Guy Pelletier
    • Method Detail

      • equals

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

        protected org.eclipse.persistence.internal.helper.DatabaseTable getDefaultTableForEntityMapKey()
        INTERNAL: Return the default table to hold the foreign key of a MapKey when and Entity is used as the MapKey
        Overrides:
        getDefaultTableForEntityMapKey in class RelationshipAccessor
        Returns:
      • getLoggingContext

        protected java.lang.String getLoggingContext()
        INTERNAL: Return the logging context for this accessor.
        Specified by:
        getLoggingContext in class RelationshipAccessor
      • isPrivateOwned

        public boolean isPrivateOwned()
        INTERNAL: A PrivateOwned setting on a ManyToMany is ignored. A log warning is issued.
        Overrides:
        isPrivateOwned in class RelationshipAccessor
      • process

        public void process()
        INTERNAL: Process a many to many metadata accessor into a EclipseLink ManyToManyMapping.
        Overrides:
        process in class CollectionAccessor