Java Doc for ModelMetaData.java in  » Testing » PolePosition-0.20 » com » versant » core » metadata » 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 » Testing » PolePosition 0.20 » com.versant.core.metadata 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.versant.core.metadata.ModelMetaData

ModelMetaData
final public class ModelMetaData implements Serializable(Code)
This holds the meta data for all persistent classes.


Field Summary
public  HashMapclassResourceMap
     Maps class name to resource name for the enhancer.
public  ClassMetaData[]classes
     The persistent classes.
public transient  ObjectjdbcMetaData
     Extra JDBC specific meta data (null if no JdbcDataStore is in use).
public  intmaxFieldsLength
     The max size of the fields array for any class in this meta data.
public  booleanreturnNullForRowNotFound
     This is only used for refFields.
public  booleansendStateOnDelete
     When an instance is deleted should its state (if available) be included in the DeletePacket? If this is false then only the OID is included.
public transient  booleantesting
     This is true if we are running unit tests.
public transient  ObjectvdsModel
     Extra VDS specific meta data (null if no VdsDataStore is in use).

Constructor Summary
public  ModelMetaData()
    

Method Summary
public  voidaddError(RuntimeException e, boolean quiet)
    
public  voidbuildAbstractSchemaNameMap()
     Build the abstract schema name -> ClassMetaData map.
public  voidbuildObjectIdClassMap()
     Build objectIdClassMap mapping objectid-class'es to the corresponding ClassMetaData.
public  voidcheckForNonPCClasses()
     Check for classes that are not PersistenceCapable i.e.
public  voidcleanupAfterMetaDataGeneration()
     Cleanup any data structures not needed after meta data generation.
public  OIDconvertFromAppIdToOID(Object appId)
     Convert an instance of an application identity class into an OID.
public  Class[]convertFromClassIndexes(int[] classIndexes)
     Convert an array of class indexes into an array of classes.
public  OIDconvertJDOGenieOIDtoOID(VersantOid versantOid)
     Converts an instance of a VersantOid to an internal OID.
public  int[]convertToClassIndexes(Class[] classes, boolean includeSubclasses)
     Convert an array of classes into an array of class indexes.
public  OIDconvertToOID(Object oid)
     Converts an instance of a JDOGenieOID, application identity ID instance or internal OID to an internal OID.
public  OID[]convertToOID(Object[] oids, int n)
     Converts an array of a JDOGenieOID's, application identity ID instances or OIDs to an array of internal OID.
public  OIDcreateUnresolvedOID(int classIndex)
     Create an unresolved OID for the class for classIndex.
public  OIDcreateUntypedOID()
     Create a new untyped OID if the store supports this or throw an unsupported option exception if not.
public  voiddump()
    
public  voiddump(PrintStream out, String indent)
    
public  ListfindNonPCClassNames()
     Return a list of all classes that are not PersistenceCapable i.e.
public  voidforceClassRegistration()
     Make sure all persistent classes are registered for JDO by creating an instance of each one.
public  ClassMetaDatagetClassMetaByASN(String abstractSchemaName)
     Lookup a class by its abstract schema name or null if not found.
public  ClassMetaDatagetClassMetaData(int classId)
     Get meta data for the class by classId or null if not found.
public  ClassMetaDatagetClassMetaData(Class cls)
     Get the meta data for the class or null if not found.
public  ClassMetaDatagetClassMetaData(String qname)
     Get the meta data for the class or null if not found.
public  ClassMetaDatagetClassMetaData(ClassMetaData base, String className)
     Get the meta data for the class relative to package of base or null if not found.
public  ClassMetaData[]getClassMetaDataForHeirachy(ClassMetaData base)
     Get all the ClassMetaData for the heirachy rooted at base.
public  ClassMetaDatagetClassMetaDataForObjectIdClass(Class cls)
     Get the ClassMetaData for an objectid-class or null if none.
public  RuntimeExceptiongetFirstError()
    
public synchronized  Class[]getQueryCandidatesFor(Class cls)
     Return all the root candidate classes for persistent heirarchies that implement or extend the supplied class.
public static  ModelMetaDatagetThreadMetaData()
     Get the JDOMetaData instance associated with the current thread.
public  booleanhasErrors()
    
public  OIDnewOIDFromExternalString(String s)
     Create an internal OID from a String previously created with ModelMetaData.toExternalString(com.versant.core.common.OID) .
public  OIDnewOIDFromIDString(String value, boolean resolved)
     Create an OID instance from a datastore identity String.
public static  voidsetThreadMetaData(ModelMetaData jmd)
     Associate meta data with the current thread.
public  voidsetUntypedOIDFactory(StateAndOIDFactory untypedOIDFactory)
     Set the factory used to create untyped OIDs.
public  StringtoExternalString(OID oid)
     Convert an internal OID to a String that can be parsed by ModelMetaData.newOIDFromExternalString(java.lang.String) .
public  voidvalidate()
     Check the consistency of the meta data.

Field Detail
classResourceMap
public HashMap classResourceMap(Code)
Maps class name to resource name for the enhancer.



classes
public ClassMetaData[] classes(Code)
The persistent classes.



jdbcMetaData
public transient Object jdbcMetaData(Code)
Extra JDBC specific meta data (null if no JdbcDataStore is in use).



maxFieldsLength
public int maxFieldsLength(Code)
The max size of the fields array for any class in this meta data.



returnNullForRowNotFound
public boolean returnNullForRowNotFound(Code)
This is only used for refFields. If the ref Field is not found then return a null instead of a VersantObjectNotFoundException. This is a projectLevel setting



sendStateOnDelete
public boolean sendStateOnDelete(Code)
When an instance is deleted should its state (if available) be included in the DeletePacket? If this is false then only the OID is included.



testing
public transient boolean testing(Code)
This is true if we are running unit tests. Some checks are relaxed so the same model can be used for JDBC and VDS (e.g. if this is true then collections with no element-type set are allowed).



vdsModel
public transient Object vdsModel(Code)
Extra VDS specific meta data (null if no VdsDataStore is in use).




Constructor Detail
ModelMetaData
public ModelMetaData()(Code)




Method Detail
addError
public void addError(RuntimeException e, boolean quiet)(Code)



buildAbstractSchemaNameMap
public void buildAbstractSchemaNameMap()(Code)
Build the abstract schema name -> ClassMetaData map. This throws a JDOUserException if there are any duplicates.



buildObjectIdClassMap
public void buildObjectIdClassMap()(Code)
Build objectIdClassMap mapping objectid-class'es to the corresponding ClassMetaData.
See Also:   ModelMetaData.getClassMetaDataForObjectIdClass



checkForNonPCClasses
public void checkForNonPCClasses()(Code)
Check for classes that are not PersistenceCapable i.e. that have not been enhanced and throw a JDOFatalUserException if there are any.



cleanupAfterMetaDataGeneration
public void cleanupAfterMetaDataGeneration()(Code)
Cleanup any data structures not needed after meta data generation.



convertFromAppIdToOID
public OID convertFromAppIdToOID(Object appId)(Code)
Convert an instance of an application identity class into an OID.



convertFromClassIndexes
public Class[] convertFromClassIndexes(int[] classIndexes)(Code)
Convert an array of class indexes into an array of classes.
throws:
  javax.jdo.JDOUserException - if any class indexes are invalid



convertJDOGenieOIDtoOID
public OID convertJDOGenieOIDtoOID(VersantOid versantOid)(Code)
Converts an instance of a VersantOid to an internal OID.



convertToClassIndexes
public int[] convertToClassIndexes(Class[] classes, boolean includeSubclasses)(Code)
Convert an array of classes into an array of class indexes.
throws:
  javax.jdo.JDOUserException - if any classes are not persistent



convertToOID
public OID convertToOID(Object oid)(Code)
Converts an instance of a JDOGenieOID, application identity ID instance or internal OID to an internal OID.



convertToOID
public OID[] convertToOID(Object[] oids, int n)(Code)
Converts an array of a JDOGenieOID's, application identity ID instances or OIDs to an array of internal OID.



createUnresolvedOID
public OID createUnresolvedOID(int classIndex)(Code)
Create an unresolved OID for the class for classIndex.



createUntypedOID
public OID createUntypedOID()(Code)
Create a new untyped OID if the store supports this or throw an unsupported option exception if not.



dump
public void dump()(Code)



dump
public void dump(PrintStream out, String indent)(Code)



findNonPCClassNames
public List findNonPCClassNames()(Code)
Return a list of all classes that are not PersistenceCapable i.e. that have not been enhanced.



forceClassRegistration
public void forceClassRegistration()(Code)
Make sure all persistent classes are registered for JDO by creating an instance of each one. Errors are silently ignored.



getClassMetaByASN
public ClassMetaData getClassMetaByASN(String abstractSchemaName)(Code)
Lookup a class by its abstract schema name or null if not found.



getClassMetaData
public ClassMetaData getClassMetaData(int classId)(Code)
Get meta data for the class by classId or null if not found.



getClassMetaData
public ClassMetaData getClassMetaData(Class cls)(Code)
Get the meta data for the class or null if not found.



getClassMetaData
public ClassMetaData getClassMetaData(String qname)(Code)
Get the meta data for the class or null if not found.
Parameters:
  qname - Fully qualified class name



getClassMetaData
public ClassMetaData getClassMetaData(ClassMetaData base, String className)(Code)
Get the meta data for the class relative to package of base or null if not found.



getClassMetaDataForHeirachy
public ClassMetaData[] getClassMetaDataForHeirachy(ClassMetaData base)(Code)
Get all the ClassMetaData for the heirachy rooted at base.



getClassMetaDataForObjectIdClass
public ClassMetaData getClassMetaDataForObjectIdClass(Class cls)(Code)
Get the ClassMetaData for an objectid-class or null if none.
See Also:   ModelMetaData.buildObjectIdClassMap



getFirstError
public RuntimeException getFirstError()(Code)



getQueryCandidatesFor
public synchronized Class[] getQueryCandidatesFor(Class cls)(Code)
Return all the root candidate classes for persistent heirarchies that implement or extend the supplied class.



getThreadMetaData
public static ModelMetaData getThreadMetaData()(Code)
Get the JDOMetaData instance associated with the current thread. This is used during deserialization.



hasErrors
public boolean hasErrors()(Code)



newOIDFromExternalString
public OID newOIDFromExternalString(String s)(Code)
Create an internal OID from a String previously created with ModelMetaData.toExternalString(com.versant.core.common.OID) .



newOIDFromIDString
public OID newOIDFromIDString(String value, boolean resolved)(Code)
Create an OID instance from a datastore identity String.
Parameters:
  resolved - Mark the OID as resolved (exact class known) or not



setThreadMetaData
public static void setThreadMetaData(ModelMetaData jmd)(Code)
Associate meta data with the current thread. This is used during deserialization.



setUntypedOIDFactory
public void setUntypedOIDFactory(StateAndOIDFactory untypedOIDFactory)(Code)
Set the factory used to create untyped OIDs. The default factory throws an unsupported option exception.



toExternalString
public String toExternalString(OID oid)(Code)
Convert an internal OID to a String that can be parsed by ModelMetaData.newOIDFromExternalString(java.lang.String) . This works for datastore and application identity classes.



validate
public void validate()(Code)
Check the consistency of the meta data. This will try and validate parts of the data structure against other parts to find bugs.



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.