Class InterfaceAccessor


  • public class InterfaceAccessor
    extends ClassAccessor
    An interface accessor. This is kinda forward thinking. I assume once we get into full interface support etc. this class will handle much more and will map directly to an interface schema element from the eclipselink orm schema. Things that should or could be mapped on this interface are: - alias - query keys 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.0
    Author:
    Guy Pelletier
    • Method Detail

      • addEntityAccessor

        public void addEntityAccessor​(EntityAccessor accessor)
        INTERNAL: Add the given entity accessor to this interface's list of variable one to one accessors.
      • addQueryKey

        public void addQueryKey​(java.lang.String queryKeyName)
        INTERNAL: Query keys are stored internally in a map (keyed on the query key name). Therefore, adding the same query key name multiple times (for each variable one to one accessor to this interface) will not cause a problem.
      • addVariableOneToOneAccessor

        public void addVariableOneToOneAccessor​(VariableOneToOneAccessor accessor)
        INTERNAL: Add a variable one to one accessor for this interface. Those entities that implement the interface on the accessor will need to make sure they add themselves to the class indicator list. See the process method below which is called from MetadataProject processing.