Method Summary |
|
void | addDeclaredInterfaceImpl(ClassMetaData meta, Class iface) Add the given metadata as declared interface implementation. |
public ClassMetaData | addMetaData(Class cls) Create a new metadata, populate it with default information, add it to
the repository, and return it. |
public ClassMetaData | addMetaData(Class cls, int access) Create a new metadata, populate it with default information, add it to
the repository, and return it. |
public NonPersistentMetaData | addNonMappedInterface(Class iface) Add the given non-mapped interface to the repository. |
public NonPersistentMetaData | addPersistenceAware(Class cls) Add the given class as persistence-aware. |
public synchronized QueryMetaData | addQueryMetaData(Class cls, String name) Add a new query metadata to the repository and return it. |
public synchronized SequenceMetaData | addSequenceMetaData(String name) Add a new sequence metadata to the repository and return it. |
public synchronized void | addSystemListener(Object listener) Add the given system lifecycle listener. |
public XMLClassMetaData | addXMLMetaData(Class type, String name) Create a new metadata, populate it with default information, add it to
the repository, and return it. |
public synchronized void | clear() Clear the cache of parsed metadata. |
public synchronized void | close() Free the resources used by this repository. |
public void | endConfiguration() |
public Collection | getAliasNames() |
public ClassMetaData | getCachedMetaData(Class cls) Return the cached metadata for the given class, without any resolution. |
public synchronized QueryMetaData | getCachedQueryMetaData(Class cls, String name) Return the cached query metadata for the given name. |
public synchronized SequenceMetaData | getCachedSequenceMetaData(String name) Return the cached a sequence metadata for the given name. |
public XMLMetaData | getCachedXMLMetaData(Class cls) Return the cached XMLClassMetaData for the given class
Return null if none. |
public String | getClosestAliasName(String alias) |
public OpenJPAConfiguration | getConfiguration() Return the configuration for the repository. |
InterfaceImplGenerator | getImplGenerator() |
public ClassMetaData[] | getImplementorMetaDatas(Class cls, ClassLoader envLoader, boolean mustExist) Return all least-derived metadatas with some mapped assignable type that
implement the given class. |
public Log | getLog() Return the metadata log. |
public synchronized ClassMetaData | getMetaData(Class cls, ClassLoader envLoader, boolean mustExist) Return the metadata for the given class. |
public ClassMetaData | getMetaData(String alias, ClassLoader envLoader, boolean mustExist) Return the metadata for the given alias name. |
public ClassMetaData | getMetaData(Object oid, ClassLoader envLoader, boolean mustExist) Return the least-derived class metadata for the given application
identity object. |
public MetaDataFactory | getMetaDataFactory() The I/O used to load metadata. |
public synchronized ClassMetaData[] | getMetaDatas() Return all the metadata instances currently in the repository. |
public NonPersistentMetaData | getNonMappedInterface(Class iface) Gets the metadata corresponding to the given non-mapped interface. |
public NonPersistentMetaData[] | getNonMappedInterfaces() |
Collection | getPCSubclasses(Class cls) Return all known subclasses for the given class mapping. |
public NonPersistentMetaData | getPersistenceAware(Class cls) Gets the metadata corresponding to the given persistence-aware class. |
public NonPersistentMetaData[] | getPersistenceAwares() |
public synchronized Set | getPersistentTypeNames(boolean devpath, ClassLoader envLoader) Return the set of configured persistent classes, or null if the user
did not configure any. |
protected static Object | getQueryKey(Class cls, String name) Return a unique key for a given class / name. |
public synchronized QueryMetaData | getQueryMetaData(Class cls, String name, ClassLoader envLoader, boolean mustExist) Return query metadata for the given class, name, and classloader. |
public synchronized QueryMetaData[] | getQueryMetaDatas() Return the cached query metadata. |
public int | getResolve() The metadata resolution mode. |
public synchronized SequenceMetaData | getSequenceMetaData(String name, ClassLoader envLoader, boolean mustExist) Return sequence metadata for the given name and classloader. |
SequenceMetaData | getSequenceMetaData(ClassMetaData context, String name, boolean mustExist) Used internally by metadata to retrieve sequence metadatas based on
possibly-unqualified sequence name. |
public synchronized SequenceMetaData[] | getSequenceMetaDatas() Return the cached sequence metadata. |
public int | getSourceMode() The source mode determining what metadata to load. |
public LifecycleEventManager.ListenerList | getSystemListeners() |
public int | getValidate() The metadata validation level. |
public synchronized XMLMetaData | getXMLMetaData(FieldMetaData fmd) |
public synchronized Collection | loadPersistentTypes(boolean devpath, ClassLoader envLoader) Load the persistent classes named in configuration. |
protected ClassMetaData | newClassMetaData(Class type) Create a new class metadata instance. |
protected ClassMetaData[] | newClassMetaDataArray(int length) Create a new array of the proper class metadata subclass. |
protected ClassMetaData | newEmbeddedClassMetaData(ValueMetaData owner) Create a new embedded class metadata instance. |
protected FieldMetaData | newFieldMetaData(String name, Class type, ClassMetaData owner) Create a new field metadata instance. |
protected FieldMetaData[] | newFieldMetaDataArray(int length) Create a new array of the proper field metadata subclass. |
protected Order | newOrder(FieldMetaData owner, String name, boolean asc) Create an
Order for the given field and declaration. |
protected Order[] | newOrderArray(int size) Create an array of orders of the given size. |
protected QueryMetaData | newQueryMetaData(Class cls, String name) Create a new query metadata instance. |
protected Order | newRelatedFieldOrder(FieldMetaData owner, FieldMetaData rel, boolean asc) Order by a field of the related type. |
protected SequenceMetaData | newSequenceMetaData(String name) Create a new sequence metadata instance. |
protected ValueMetaData | newValueMetaData(FieldMetaData owner) Create a new value metadata instance. |
protected Order | newValueOrder(FieldMetaData owner, boolean asc) Order by the field value. |
protected XMLClassMetaData | newXMLClassMetaData(Class type, String name) |
protected XMLMetaData[] | newXMLClassMetaDataArray(int length) Create a new array of the proper xml class metadata subclass. |
public XMLFieldMetaData | newXMLFieldMetaData(Class type, String name) |
protected void | prepareMapping(ClassMetaData meta) Prepare metadata for mapping resolution. |
Class[] | processRegisteredClasses(ClassLoader envLoader) Updates our datastructures with the latest registered classes. |
public void | register(Class cls) |
public boolean | removeMetaData(ClassMetaData meta) Remove a metadata instance from the repository. |
public synchronized boolean | removeMetaData(Class cls) Remove a metadata instance from the repository. |
public boolean | removeNonMappedInterface(Class iface) |
public boolean | removePersistenceAware(Class cls) |
public synchronized boolean | removeQueryMetaData(QueryMetaData meta) Remove the given query metadata from the repository. |
public synchronized boolean | removeQueryMetaData(Class cls, String name) Remove query metadata for the given class name if in the repository. |
public synchronized boolean | removeSequenceMetaData(SequenceMetaData meta) Remove the given sequence metadata from the repository. |
public synchronized boolean | removeSequenceMetaData(String name) Remove sequence metadata for the name if in the repository. |
public synchronized boolean | removeSystemListener(Object listener) Remove the given system lifecycle listener. |
public void | setConfiguration(Configuration conf) |
synchronized void | setInterfaceImpl(ClassMetaData meta, Class impl) Set the implementation for the given managed interface. |
public void | setMetaDataFactory(MetaDataFactory factory) The I/O used to load metadata. |
public void | setResolve(int mode) The metadata resolution mode. |
public void | setResolve(int mode, boolean on) The metadata resolution mode. |
public void | setSourceMode(int mode) The source mode determining what metadata to load. |
public void | setSourceMode(int mode, boolean on) The source mode determining what metadata to load. |
public void | setValidate(int validate) The metadata validation level. |
public void | setValidate(int validate, boolean on) The metadata validation level. |
public void | startConfiguration() |