Java Doc for MetaDataFactory.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) 


org.apache.openjpa.meta.MetaDataFactory

All known Subclasses:   org.apache.openjpa.meta.AbstractMetaDataFactory,  org.apache.openjpa.meta.DelegatingMetaDataFactory,  org.apache.openjpa.meta.NoneMetaDataFactory,
MetaDataFactory
public interface MetaDataFactory extends MetaDataModes(Code)
The MetaDataRepository uses implementations of this interface to load and store metadata. Implementations need not be threadsafe.
author:
   Patrick Linskey
author:
   Abe White


Field Summary
final public static  intSTORE_DEFAULT
    
final public static  intSTORE_PER_CLASS
    
final public static  intSTORE_VERBOSE
    


Method Summary
public  voidaddClassExtensionKeys(Collection exts)
     Add any extension keys used by this instance to the given set.
public  voidaddFieldExtensionKeys(Collection exts)
     Add any extension keys used by this instance to the given set.
public  voidclear()
     Clear any internal caches.
public  booleandrop(Class[] cls, int mode, ClassLoader envLoader)
     Drop the metadata for the given classes in the given mode(s).
public  MetaDataDefaultsgetDefaults()
     Return the metadata defaults for this factory.
public  SetgetPersistentTypeNames(boolean devpath, ClassLoader envLoader)
     Return all persistent class names, using the metadata locations supplied in configuration, optionally scanning the classpath. Return null if no types are supplied and this factory is unable to scan the classpath.
public  ClassgetQueryScope(String queryName, ClassLoader loader)
     Return the type defining the given query name, if any.
public  ClassgetResultSetMappingScope(String resultSetMappingName, ClassLoader loader)
     Return the type defining the given result set mapping name, if any.
public  voidload(Class cls, int mode, ClassLoader envLoader)
     Load metadata for the given class in the given mode(s).
public  voidloadXMLMetaData(FieldMetaData fmd)
     Load XMLClassMetadata for the given class.
public  ClassArgParsernewClassArgParser()
     Return a properly-configured class arg parser for our expected metadata format.
public  voidsetRepository(MetaDataRepository repos)
     Set the repository to load metadata into.
public  voidsetStoreDirectory(File dir)
     Base directory for storing metadata.
public  voidsetStoreMode(int store)
     Storage mode.
public  voidsetStrict(boolean strict)
     If true, I/O's must exactly obey the mode directives given, and may not load additional information.
public  booleanstore(ClassMetaData[] metas, QueryMetaData[] queries, SequenceMetaData[] seqs, int mode, Map output)
     Store the given metadata.

Field Detail
STORE_DEFAULT
final public static int STORE_DEFAULT(Code)



STORE_PER_CLASS
final public static int STORE_PER_CLASS(Code)



STORE_VERBOSE
final public static int STORE_VERBOSE(Code)





Method Detail
addClassExtensionKeys
public void addClassExtensionKeys(Collection exts)(Code)
Add any extension keys used by this instance to the given set.



addFieldExtensionKeys
public void addFieldExtensionKeys(Collection exts)(Code)
Add any extension keys used by this instance to the given set.



clear
public void clear()(Code)
Clear any internal caches.



drop
public boolean drop(Class[] cls, int mode, ClassLoader envLoader)(Code)
Drop the metadata for the given classes in the given mode(s). false if any metadata could not be dropped



getDefaults
public MetaDataDefaults getDefaults()(Code)
Return the metadata defaults for this factory.



getPersistentTypeNames
public Set getPersistentTypeNames(boolean devpath, ClassLoader envLoader)(Code)
Return all persistent class names, using the metadata locations supplied in configuration, optionally scanning the classpath. Return null if no types are supplied and this factory is unable to scan the classpath. This method should not be used directly by outside code; use MetaDataRepository.getPersistentTypeNames instead.
See Also:   MetaDataRepository.getPersistentTypeNames
See Also:   MetaDataRepository.loadPersistentTypes



getQueryScope
public Class getQueryScope(String queryName, ClassLoader loader)(Code)
Return the type defining the given query name, if any.



getResultSetMappingScope
public Class getResultSetMappingScope(String resultSetMappingName, ClassLoader loader)(Code)
Return the type defining the given result set mapping name, if any.



load
public void load(Class cls, int mode, ClassLoader envLoader)(Code)
Load metadata for the given class in the given mode(s). If loading in MetaDataModes.MODE_QUERY , the class may be null. Loaded metadata should be added directly to the repository. It should have its source mode set appropriately via ClassMetaData.setSourceMode .
Parameters:
  mode - the mode to load metadata in: if mapping information isstored together with metadata, then you can load mappingdata even if this mode only includesMetaDataModes.MODE_META MODE_META, so long asthe strict property hasn't been set



loadXMLMetaData
public void loadXMLMetaData(FieldMetaData fmd)(Code)
Load XMLClassMetadata for the given class. Loaded metadata should be added directly to the repository.



newClassArgParser
public ClassArgParser newClassArgParser()(Code)
Return a properly-configured class arg parser for our expected metadata format.



setRepository
public void setRepository(MetaDataRepository repos)(Code)
Set the repository to load metadata into. This method will be called before use.



setStoreDirectory
public void setStoreDirectory(File dir)(Code)
Base directory for storing metadata. May not be called.



setStoreMode
public void setStoreMode(int store)(Code)
Storage mode. May not be called.



setStrict
public void setStrict(boolean strict)(Code)
If true, I/O's must exactly obey the mode directives given, and may not load additional information.



store
public boolean store(ClassMetaData[] metas, QueryMetaData[] queries, SequenceMetaData[] seqs, int mode, Map output)(Code)
Store the given metadata.
Parameters:
  mode - hint about what aspects of the metadata have changed
Parameters:
  output - if non-null, rather than storing metadata directly,add entries mapping each output destination suchas a File to the planned output for thatdestination in string form false if this factory is unable to store metadata



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