Java Doc for MetaDataRepository.java in  » Database-ORM » openjpa » org » apache » openjpa » meta » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » openjpa » org.apache.openjpa.meta 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.openjpa.meta.MetaDataRepository

All known Subclasses:   org.apache.openjpa.jdbc.meta.MappingRepository,
MetaDataRepository
public class MetaDataRepository implements PCRegistry.RegisterClassListener,Configurable,Closeable,MetaDataModes,Serializable(Code)
Repository of and factory for persistent metadata.
since:
   0.3.0
author:
   Abe White
author:
   Steve Kim (query metadata)


Field Summary
final protected static  Class[]EMPTY_CLASSES
    
final protected  FieldMetaData[]EMPTY_FIELDS
    
final protected  ClassMetaData[]EMPTY_METAS
    
final protected static  NonPersistentMetaData[]EMPTY_NON_PERSISTENT
    
final protected  Order[]EMPTY_ORDERS
    
final protected  XMLMetaData[]EMPTY_XMLMETAS
    
final public static  intVALIDATE_MAPPING
     Bit flag to validate mappings.
final public static  intVALIDATE_META
     Bit flag to validate metadata.
final public static  intVALIDATE_NONE
     Constant to not validate any metadata.
final public static  intVALIDATE_RUNTIME
     Bit flag for runtime validation.
final public static  intVALIDATE_UNENHANCED
     Bit flag to validate unenhanced metadata only.

Constructor Summary
public  MetaDataRepository()
     Default constructor.

Method Summary
 voidaddDeclaredInterfaceImpl(ClassMetaData meta, Class iface)
     Add the given metadata as declared interface implementation.
public  ClassMetaDataaddMetaData(Class cls)
     Create a new metadata, populate it with default information, add it to the repository, and return it.
public  ClassMetaDataaddMetaData(Class cls, int access)
     Create a new metadata, populate it with default information, add it to the repository, and return it.
public  NonPersistentMetaDataaddNonMappedInterface(Class iface)
     Add the given non-mapped interface to the repository.
public  NonPersistentMetaDataaddPersistenceAware(Class cls)
     Add the given class as persistence-aware.
public synchronized  QueryMetaDataaddQueryMetaData(Class cls, String name)
     Add a new query metadata to the repository and return it.
public synchronized  SequenceMetaDataaddSequenceMetaData(String name)
     Add a new sequence metadata to the repository and return it.
public synchronized  voidaddSystemListener(Object listener)
     Add the given system lifecycle listener.
public  XMLClassMetaDataaddXMLMetaData(Class type, String name)
     Create a new metadata, populate it with default information, add it to the repository, and return it.
public synchronized  voidclear()
     Clear the cache of parsed metadata.
public synchronized  voidclose()
     Free the resources used by this repository.
public  voidendConfiguration()
    
public  CollectiongetAliasNames()
    
public  ClassMetaDatagetCachedMetaData(Class cls)
     Return the cached metadata for the given class, without any resolution.
public synchronized  QueryMetaDatagetCachedQueryMetaData(Class cls, String name)
     Return the cached query metadata for the given name.
public synchronized  SequenceMetaDatagetCachedSequenceMetaData(String name)
     Return the cached a sequence metadata for the given name.
public  XMLMetaDatagetCachedXMLMetaData(Class cls)
     Return the cached XMLClassMetaData for the given class Return null if none.
public  StringgetClosestAliasName(String alias)
    
public  OpenJPAConfigurationgetConfiguration()
     Return the configuration for the repository.
 InterfaceImplGeneratorgetImplGenerator()
    
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  LoggetLog()
     Return the metadata log.
public synchronized  ClassMetaDatagetMetaData(Class cls, ClassLoader envLoader, boolean mustExist)
     Return the metadata for the given class.
public  ClassMetaDatagetMetaData(String alias, ClassLoader envLoader, boolean mustExist)
     Return the metadata for the given alias name.
public  ClassMetaDatagetMetaData(Object oid, ClassLoader envLoader, boolean mustExist)
     Return the least-derived class metadata for the given application identity object.
public  MetaDataFactorygetMetaDataFactory()
     The I/O used to load metadata.
public synchronized  ClassMetaData[]getMetaDatas()
     Return all the metadata instances currently in the repository.
public  NonPersistentMetaDatagetNonMappedInterface(Class iface)
     Gets the metadata corresponding to the given non-mapped interface.
public  NonPersistentMetaData[]getNonMappedInterfaces()
    
 CollectiongetPCSubclasses(Class cls)
     Return all known subclasses for the given class mapping.
public  NonPersistentMetaDatagetPersistenceAware(Class cls)
     Gets the metadata corresponding to the given persistence-aware class.
public  NonPersistentMetaData[]getPersistenceAwares()
    
public synchronized  SetgetPersistentTypeNames(boolean devpath, ClassLoader envLoader)
     Return the set of configured persistent classes, or null if the user did not configure any.
protected static  ObjectgetQueryKey(Class cls, String name)
     Return a unique key for a given class / name.
public synchronized  QueryMetaDatagetQueryMetaData(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  intgetResolve()
     The metadata resolution mode.
public synchronized  SequenceMetaDatagetSequenceMetaData(String name, ClassLoader envLoader, boolean mustExist)
     Return sequence metadata for the given name and classloader.
 SequenceMetaDatagetSequenceMetaData(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  intgetSourceMode()
     The source mode determining what metadata to load.
public  LifecycleEventManager.ListenerListgetSystemListeners()
    
public  intgetValidate()
     The metadata validation level.
public synchronized  XMLMetaDatagetXMLMetaData(FieldMetaData fmd)
    
public synchronized  CollectionloadPersistentTypes(boolean devpath, ClassLoader envLoader)
     Load the persistent classes named in configuration.
protected  ClassMetaDatanewClassMetaData(Class type)
     Create a new class metadata instance.
protected  ClassMetaData[]newClassMetaDataArray(int length)
     Create a new array of the proper class metadata subclass.
protected  ClassMetaDatanewEmbeddedClassMetaData(ValueMetaData owner)
     Create a new embedded class metadata instance.
protected  FieldMetaDatanewFieldMetaData(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  OrdernewOrder(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  QueryMetaDatanewQueryMetaData(Class cls, String name)
     Create a new query metadata instance.
protected  OrdernewRelatedFieldOrder(FieldMetaData owner, FieldMetaData rel, boolean asc)
     Order by a field of the related type.
protected  SequenceMetaDatanewSequenceMetaData(String name)
     Create a new sequence metadata instance.
protected  ValueMetaDatanewValueMetaData(FieldMetaData owner)
     Create a new value metadata instance.
protected  OrdernewValueOrder(FieldMetaData owner, boolean asc)
     Order by the field value.
protected  XMLClassMetaDatanewXMLClassMetaData(Class type, String name)
    
protected  XMLMetaData[]newXMLClassMetaDataArray(int length)
     Create a new array of the proper xml class metadata subclass.
public  XMLFieldMetaDatanewXMLFieldMetaData(Class type, String name)
    
protected  voidprepareMapping(ClassMetaData meta)
     Prepare metadata for mapping resolution.
 Class[]processRegisteredClasses(ClassLoader envLoader)
     Updates our datastructures with the latest registered classes.
public  voidregister(Class cls)
    
public  booleanremoveMetaData(ClassMetaData meta)
     Remove a metadata instance from the repository.
public synchronized  booleanremoveMetaData(Class cls)
     Remove a metadata instance from the repository.
public  booleanremoveNonMappedInterface(Class iface)
    
public  booleanremovePersistenceAware(Class cls)
    
public synchronized  booleanremoveQueryMetaData(QueryMetaData meta)
     Remove the given query metadata from the repository.
public synchronized  booleanremoveQueryMetaData(Class cls, String name)
     Remove query metadata for the given class name if in the repository.
public synchronized  booleanremoveSequenceMetaData(SequenceMetaData meta)
     Remove the given sequence metadata from the repository.
public synchronized  booleanremoveSequenceMetaData(String name)
     Remove sequence metadata for the name if in the repository.
public synchronized  booleanremoveSystemListener(Object listener)
     Remove the given system lifecycle listener.
public  voidsetConfiguration(Configuration conf)
    
synchronized  voidsetInterfaceImpl(ClassMetaData meta, Class impl)
     Set the implementation for the given managed interface.
public  voidsetMetaDataFactory(MetaDataFactory factory)
     The I/O used to load metadata.
public  voidsetResolve(int mode)
     The metadata resolution mode.
public  voidsetResolve(int mode, boolean on)
     The metadata resolution mode.
public  voidsetSourceMode(int mode)
     The source mode determining what metadata to load.
public  voidsetSourceMode(int mode, boolean on)
     The source mode determining what metadata to load.
public  voidsetValidate(int validate)
     The metadata validation level.
public  voidsetValidate(int validate, boolean on)
     The metadata validation level.
public  voidstartConfiguration()
    

Field Detail
EMPTY_CLASSES
final protected static Class[] EMPTY_CLASSES(Code)



EMPTY_FIELDS
final protected FieldMetaData[] EMPTY_FIELDS(Code)



EMPTY_METAS
final protected ClassMetaData[] EMPTY_METAS(Code)



EMPTY_NON_PERSISTENT
final protected static NonPersistentMetaData[] EMPTY_NON_PERSISTENT(Code)



EMPTY_ORDERS
final protected Order[] EMPTY_ORDERS(Code)



EMPTY_XMLMETAS
final protected XMLMetaData[] EMPTY_XMLMETAS(Code)



VALIDATE_MAPPING
final public static int VALIDATE_MAPPING(Code)
Bit flag to validate mappings.



VALIDATE_META
final public static int VALIDATE_META(Code)
Bit flag to validate metadata.



VALIDATE_NONE
final public static int VALIDATE_NONE(Code)
Constant to not validate any metadata.



VALIDATE_RUNTIME
final public static int VALIDATE_RUNTIME(Code)
Bit flag for runtime validation. Requires that all classes are enhanced, and performs extra field resolution steps.



VALIDATE_UNENHANCED
final public static int VALIDATE_UNENHANCED(Code)
Bit flag to validate unenhanced metadata only.




Constructor Detail
MetaDataRepository
public MetaDataRepository()(Code)
Default constructor. Configure via Configurable .




Method Detail
addDeclaredInterfaceImpl
void addDeclaredInterfaceImpl(ClassMetaData meta, Class iface)(Code)
Add the given metadata as declared interface implementation.



addMetaData
public ClassMetaData addMetaData(Class cls)(Code)
Create a new metadata, populate it with default information, add it to the repository, and return it. Use the default access type.



addMetaData
public ClassMetaData addMetaData(Class cls, int access)(Code)
Create a new metadata, populate it with default information, add it to the repository, and return it.
Parameters:
  access - the access type to use in populating metadata



addNonMappedInterface
public NonPersistentMetaData addNonMappedInterface(Class iface)(Code)
Add the given non-mapped interface to the repository.
Parameters:
  iface - the non-mapped interface



addPersistenceAware
public NonPersistentMetaData addPersistenceAware(Class cls)(Code)
Add the given class as persistence-aware.
Parameters:
  cls - non-null and must not alreaddy be added as persitence-capable



addQueryMetaData
public synchronized QueryMetaData addQueryMetaData(Class cls, String name)(Code)
Add a new query metadata to the repository and return it.



addSequenceMetaData
public synchronized SequenceMetaData addSequenceMetaData(String name)(Code)
Add a new sequence metadata to the repository and return it.



addSystemListener
public synchronized void addSystemListener(Object listener)(Code)
Add the given system lifecycle listener.



addXMLMetaData
public XMLClassMetaData addXMLMetaData(Class type, String name)(Code)
Create a new metadata, populate it with default information, add it to the repository, and return it.
Parameters:
  access - the access type to use in populating metadata



clear
public synchronized void clear()(Code)
Clear the cache of parsed metadata. This method also clears the internal MetaDataFactory MetaDataFactory 's cache.



close
public synchronized void close()(Code)
Free the resources used by this repository. Closes all user sequences.



endConfiguration
public void endConfiguration()(Code)



getAliasNames
public Collection getAliasNames()(Code)
the registered alias names
since:
   1.1.0



getCachedMetaData
public ClassMetaData getCachedMetaData(Class cls)(Code)
Return the cached metadata for the given class, without any resolution. Return null if none.



getCachedQueryMetaData
public synchronized QueryMetaData getCachedQueryMetaData(Class cls, String name)(Code)
Return the cached query metadata for the given name.



getCachedSequenceMetaData
public synchronized SequenceMetaData getCachedSequenceMetaData(String name)(Code)
Return the cached a sequence metadata for the given name.



getCachedXMLMetaData
public XMLMetaData getCachedXMLMetaData(Class cls)(Code)
Return the cached XMLClassMetaData for the given class Return null if none.



getClosestAliasName
public String getClosestAliasName(String alias)(Code)
the nearest match to the specified alias name
since:
   1.1.0



getConfiguration
public OpenJPAConfiguration getConfiguration()(Code)
Return the configuration for the repository.



getImplGenerator
InterfaceImplGenerator getImplGenerator()(Code)



getImplementorMetaDatas
public ClassMetaData[] getImplementorMetaDatas(Class cls, ClassLoader envLoader, boolean mustExist)(Code)
Return all least-derived metadatas with some mapped assignable type that implement the given class.
Parameters:
  cls - the class or interface to retrieve implementors for
Parameters:
  envLoader - the environmental class loader, if any
Parameters:
  mustExist - if true, throws a MetaDataExceptionif no metadata is found



getLog
public Log getLog()(Code)
Return the metadata log.



getMetaData
public synchronized ClassMetaData getMetaData(Class cls, ClassLoader envLoader, boolean mustExist)(Code)
Return the metadata for the given class.
Parameters:
  cls - the class to retrieve metadata for
Parameters:
  envLoader - the environmental class loader, if any
Parameters:
  mustExist - if true, throws a MetaDataExceptionif no metadata is found



getMetaData
public ClassMetaData getMetaData(String alias, ClassLoader envLoader, boolean mustExist)(Code)
Return the metadata for the given alias name.
Parameters:
  alias - the alias to class to retrieve metadata for
Parameters:
  envLoader - the environmental class loader, if any
Parameters:
  mustExist - if true, throws a MetaDataExceptionif no metadata is found
See Also:   ClassMetaData.getTypeAlias



getMetaData
public ClassMetaData getMetaData(Object oid, ClassLoader envLoader, boolean mustExist)(Code)
Return the least-derived class metadata for the given application identity object.
Parameters:
  oid - the oid to get the metadata for
Parameters:
  envLoader - the environmental class loader, if any
Parameters:
  mustExist - if true, throws a MetaDataExceptionif no metadata is found



getMetaDataFactory
public MetaDataFactory getMetaDataFactory()(Code)
The I/O used to load metadata.



getMetaDatas
public synchronized ClassMetaData[] getMetaDatas()(Code)
Return all the metadata instances currently in the repository.



getNonMappedInterface
public NonPersistentMetaData getNonMappedInterface(Class iface)(Code)
Gets the metadata corresponding to the given non-mapped interface. Returns null, if the given interface is not registered as persistence-aware.



getNonMappedInterfaces
public NonPersistentMetaData[] getNonMappedInterfaces()(Code)
Gets the corresponding metadatas for all registered, non-mapped interfaces empty array if no non-mapped interface has been registered.



getPCSubclasses
Collection getPCSubclasses(Class cls)(Code)
Return all known subclasses for the given class mapping. Note that this method only works during runtime when the repository is registered as a RegisterClassListener .



getPersistenceAware
public NonPersistentMetaData getPersistenceAware(Class cls)(Code)
Gets the metadata corresponding to the given persistence-aware class. Returns null, if the given class is not registered as persistence-aware.



getPersistenceAwares
public NonPersistentMetaData[] getPersistenceAwares()(Code)
Gets all the metadatas for persistence-aware classes empty array if no class has been registered as pers-aware



getPersistentTypeNames
public synchronized Set getPersistentTypeNames(boolean devpath, ClassLoader envLoader)(Code)
Return the set of configured persistent classes, or null if the user did not configure any.
Parameters:
  devpath - if true, search for metadata files in directoriesin the classpath if no classes are configured explicitly
Parameters:
  envLoader - the class loader to use, or null for default



getQueryKey
protected static Object getQueryKey(Class cls, String name)(Code)
Return a unique key for a given class / name. The class argument can be null.



getQueryMetaData
public synchronized QueryMetaData getQueryMetaData(Class cls, String name, ClassLoader envLoader, boolean mustExist)(Code)
Return query metadata for the given class, name, and classloader.



getQueryMetaDatas
public synchronized QueryMetaData[] getQueryMetaDatas()(Code)
Return the cached query metadata.



getResolve
public int getResolve()(Code)
The metadata resolution mode. Defaults to MODE_META | MODE_MAPPING.



getSequenceMetaData
public synchronized SequenceMetaData getSequenceMetaData(String name, ClassLoader envLoader, boolean mustExist)(Code)
Return sequence metadata for the given name and classloader.



getSequenceMetaData
SequenceMetaData getSequenceMetaData(ClassMetaData context, String name, boolean mustExist)(Code)
Used internally by metadata to retrieve sequence metadatas based on possibly-unqualified sequence name.



getSequenceMetaDatas
public synchronized SequenceMetaData[] getSequenceMetaDatas()(Code)
Return the cached sequence metadata.



getSourceMode
public int getSourceMode()(Code)
The source mode determining what metadata to load. Defaults to MODE_META | MODE_MAPPING | MODE_QUERY.



getSystemListeners
public LifecycleEventManager.ListenerList getSystemListeners()(Code)
Return the system lifecycle listeners



getValidate
public int getValidate()(Code)
The metadata validation level. Defaults to VALIDATE_META | VALIDATE_UNENHANCED.



getXMLMetaData
public synchronized XMLMetaData getXMLMetaData(FieldMetaData fmd)(Code)
Return XML metadata for a given field metadata
Parameters:
  fmd - XML metadata



loadPersistentTypes
public synchronized Collection loadPersistentTypes(boolean devpath, ClassLoader envLoader)(Code)
Load the persistent classes named in configuration. This ensures that all subclasses and application identity classes of each type are known in advance, without having to rely on the application loading the classes before performing operations that might involve them.
Parameters:
  devpath - if true, search for metadata files in directoriesin the classpath if the no classes are configured explicitly
Parameters:
  envLoader - the class loader to use, or null for default the loaded classes, or empty collection if none



newClassMetaData
protected ClassMetaData newClassMetaData(Class type)(Code)
Create a new class metadata instance.



newClassMetaDataArray
protected ClassMetaData[] newClassMetaDataArray(int length)(Code)
Create a new array of the proper class metadata subclass.



newEmbeddedClassMetaData
protected ClassMetaData newEmbeddedClassMetaData(ValueMetaData owner)(Code)
Create a new embedded class metadata instance.



newFieldMetaData
protected FieldMetaData newFieldMetaData(String name, Class type, ClassMetaData owner)(Code)
Create a new field metadata instance.



newFieldMetaDataArray
protected FieldMetaData[] newFieldMetaDataArray(int length)(Code)
Create a new array of the proper field metadata subclass.



newOrder
protected Order newOrder(FieldMetaData owner, String name, boolean asc)(Code)
Create an Order for the given field and declaration. This method delegates to MetaDataRepository.newRelatedFieldOrder and MetaDataRepository.newValueFieldOrder by default.



newOrderArray
protected Order[] newOrderArray(int size)(Code)
Create an array of orders of the given size.



newQueryMetaData
protected QueryMetaData newQueryMetaData(Class cls, String name)(Code)
Create a new query metadata instance.



newRelatedFieldOrder
protected Order newRelatedFieldOrder(FieldMetaData owner, FieldMetaData rel, boolean asc)(Code)
Order by a field of the related type.



newSequenceMetaData
protected SequenceMetaData newSequenceMetaData(String name)(Code)
Create a new sequence metadata instance.



newValueMetaData
protected ValueMetaData newValueMetaData(FieldMetaData owner)(Code)
Create a new value metadata instance.



newValueOrder
protected Order newValueOrder(FieldMetaData owner, boolean asc)(Code)
Order by the field value.



newXMLClassMetaData
protected XMLClassMetaData newXMLClassMetaData(Class type, String name)(Code)
Create a new xml class metadata
Parameters:
  type -
Parameters:
  name - a XMLClassMetaData



newXMLClassMetaDataArray
protected XMLMetaData[] newXMLClassMetaDataArray(int length)(Code)
Create a new array of the proper xml class metadata subclass.



newXMLFieldMetaData
public XMLFieldMetaData newXMLFieldMetaData(Class type, String name)(Code)
Create a new xml field meta, add it to the fieldMap in the given xml class metadata
Parameters:
  type -
Parameters:
  name -
Parameters:
  meta - a XMLFieldMetaData



prepareMapping
protected void prepareMapping(ClassMetaData meta)(Code)
Prepare metadata for mapping resolution. This method might map parts of the metadata that don't rely on other classes being mapped, but that other classes might rely on during their own mapping (for example, primary key fields). By default, this method only calls ClassMetaData.defineSuperclassFields .



processRegisteredClasses
Class[] processRegisteredClasses(ClassLoader envLoader)(Code)
Updates our datastructures with the latest registered classes.



register
public void register(Class cls)(Code)



removeMetaData
public boolean removeMetaData(ClassMetaData meta)(Code)
Remove a metadata instance from the repository. true if removed, false if not in this repository



removeMetaData
public synchronized boolean removeMetaData(Class cls)(Code)
Remove a metadata instance from the repository. true if removed, false if not in this repository



removeNonMappedInterface
public boolean removeNonMappedInterface(Class iface)(Code)
Remove a non-mapped interface from the repository true if removed



removePersistenceAware
public boolean removePersistenceAware(Class cls)(Code)
Remove a persitence-aware class from the repository true if removed



removeQueryMetaData
public synchronized boolean removeQueryMetaData(QueryMetaData meta)(Code)
Remove the given query metadata from the repository.



removeQueryMetaData
public synchronized boolean removeQueryMetaData(Class cls, String name)(Code)
Remove query metadata for the given class name if in the repository.



removeSequenceMetaData
public synchronized boolean removeSequenceMetaData(SequenceMetaData meta)(Code)
Remove the given sequence metadata from the repository.



removeSequenceMetaData
public synchronized boolean removeSequenceMetaData(String name)(Code)
Remove sequence metadata for the name if in the repository.



removeSystemListener
public synchronized boolean removeSystemListener(Object listener)(Code)
Remove the given system lifecycle listener.



setConfiguration
public void setConfiguration(Configuration conf)(Code)



setInterfaceImpl
synchronized void setInterfaceImpl(ClassMetaData meta, Class impl)(Code)
Set the implementation for the given managed interface.



setMetaDataFactory
public void setMetaDataFactory(MetaDataFactory factory)(Code)
The I/O used to load metadata.



setResolve
public void setResolve(int mode)(Code)
The metadata resolution mode. Defaults to MODE_META | MODE_MAPPING.



setResolve
public void setResolve(int mode, boolean on)(Code)
The metadata resolution mode. Defaults to MODE_META | MODE_MAPPING.



setSourceMode
public void setSourceMode(int mode)(Code)
The source mode determining what metadata to load. Defaults to MODE_META | MODE_MAPPING | MODE_QUERY.



setSourceMode
public void setSourceMode(int mode, boolean on)(Code)
The source mode determining what metadata to load. Defaults to MODE_META | MODE_MAPPING | MODE_QUERY.



setValidate
public void setValidate(int validate)(Code)
The metadata validation level. Defaults to VALIDATE_META | VALIDATE_UNENHANCED.



setValidate
public void setValidate(int validate, boolean on)(Code)
The metadata validation level. Defaults to VALIDATE_META | VALIDATE_MAPPING | VALIDATE_UNENHANCED.



startConfiguration
public void startConfiguration()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.