Class MetadataFile


  • public class MetadataFile
    extends MetadataAccessibleObject
    INTERNAL: Parent object that is used to hold onto a valid JPA decorated file.
    Since:
    EclipseLink 1.0
    Author:
    Guy Pelletier
    • Constructor Detail

    • Method Detail

      • getAttributeName

        public java.lang.String getAttributeName()
        INTERNAL: Return the attribute name of this accessible object. Right now it's just the location. This method is currently never called and is implemented only to satisfy the abstract definition. An attribute name is very important on the metadata annotated element side and describes the attribute the metadata is tied to. This avoids unnecessary casting when initializing XML objects. If in the future, some logging message (or something else would like to use this method, feel free to modify it to return whatever is necessary (and of course, change this comment to reflect the new dependency).
        Specified by:
        getAttributeName in class MetadataAccessibleObject
      • getElement

        public java.lang.Object getElement()
        INTERNAL: Return the element of this accessible object. Right now it's just the top most entity mappings tag. At least it's something. Could probably get more descriptive, right now it's only used in merging and for those elements that do not tie to an annotated element (class, method or field) That is, unnamed <entity-mappings> level elements and <persistence-unit-metadata> and <persistence-unit-defaults> elements. So this will have to do for now ... plus no one looks at the logging messages anyway ... ;-)
      • getName

        public java.lang.String getName()
        INTERNAL: Returns the name/url of the metadata file.
        Specified by:
        getName in class MetadataAccessibleObject