Class AnnotationPersistenceXMLMetaDataParser

java.lang.Object
org.apache.openjpa.persistence.AnnotationPersistenceXMLMetaDataParser

public class AnnotationPersistenceXMLMetaDataParser extends Object
JAXB xml annotation metadata parser.
Since:
1.0.0
Author:
Catalina Wei
  • Constructor Details

    • AnnotationPersistenceXMLMetaDataParser

      public AnnotationPersistenceXMLMetaDataParser(OpenJPAConfiguration conf)
      Constructor; supply configuration.
  • Method Details

    • getConfiguration

      public OpenJPAConfiguration getConfiguration()
      Configuration supplied on construction.
    • getLog

      public Log getLog()
      Metadata log.
    • getRepository

      public MetaDataRepository getRepository()
      Returns the repository for this parser. If none has been set, create a new repository and sets it.
    • setRepository

      public void setRepository(MetaDataRepository repos)
      Set the metadata repository for this parser.
    • clear

      public void clear()
      Clear caches.
    • parse

      public void parse(Class<?> cls)
      Parse persistence metadata for the given field metadata. This parser/class is NOT threadsafe! The caller of this method needs to insure that the MetaData(/Mapping)Repository is locked prior to calling this method.