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

ClassMetaData
final public class ClassMetaData implements Serializable,Comparable(Code)
Meta data for a class that is common to all DataStore's and the enhancer.

Inner Class :final public static class AllFetchGroupComp implements Comparator
Inner Class :public static class FieldInfo

Field Summary
final public static  intNULL_NO_ROW_FALSE
    
final public static  intNULL_NO_ROW_PASSON
     These are class hierarchy level setting for specifying when a ObjectNotFoundException must be thrown if this instance is not found.
final public static  intNULL_NO_ROW_TRUE
    
public  int[]absPCTypeFields
     The abs fieldNos of all fields that is either is pc ref or a collection of pc ref.
public  int[]absToRel
     This is all the managed fields.
public  StringabstractSchemaName
     The abstract schema name of the class.
public transient  ComparatorallFComparator
    
public transient  ListallFetchGroups
     This contains all the fetch groups sorted in fieldNo order.
public  int[]allManagedFieldNosArray
     This is an utility array that is filled from 0 to the amount of managed fields.
public  int[]autoSetManagedFieldNos
     This holds all the autoSetStateFieldNos.
public  intcacheStrategy
     The caching strategy for this class (one of the CACHE_STRATEGY_xxx constants).
public  booleancacheStrategyAllDone
     Flag to indicate that the cacheStrategy was all and all instances have been read once.
public  booleanchangedOptimisticLocking
     Does this class use changed optimistic locking i.e.
public  intclassId
     The unique ID for this class.
public  StringclassIdString
     The classId as a String.
public  Classcls
     The class.
public transient  StringdataStoreName
     The name of the DataStore this class belongs to.
public  ClassdatastoreIdentityType
     If the class is using datastore identity, then this is the java type of the identity as if it was a Java field.
public  intdatastoreIdentityTypeCode
     If the class is using datastore identity, then this is the java type code ( MDStatics.INT etc) of the identity as if it was a Java field.
public  booleandeleteOrphans
     Must orphans be deleted? An instance is considered an orphan if it is on the many side of at least one one-to-many (master detail) relationship and all of its back references are null (i.e.
public  FetchGroupdepFetchGroup
     The dependent objects fetch group (null if none i.e.
public  int[]dfgAbsFieldNos
     These are the absolute field numbers of the fields that are loaded into an instance when it is populated with the default fetch group.
public  int[]dfgStateFieldNos
     The same as ClassMetaData.dfgAbsFieldNos but only the state field numbers instead of abs field numbers.
public  int[]directRefStateFieldNos
     The fields of the persistent fields that may contain direct (e.g. foreign key) references to other PC classes.
public  FetchGroup[]fetchGroups
     The fetch groups.
public transient  ArrayListfgTmp
    
public  FieldMetaData[]fields
     The persistent fields declared in this class (i.e.
public  int[]fkCollectionRefStateFieldNos
     The reference fields that are used to complete collections mapped using a foreign key in the element table.
public  booleanhasAutoSetFields
     If we or any of our superclasses have any autoSet fields then this is true.
public  booleanhasSecondaryFields
     This is true if this class or any of its superclasses has any secondary fields.
public  booleanhorizontal
     If this class is horizontal mapped.
public  ClassMetaDatahorizontalCMD
     The metadata if this class is the subclass of a horizontal super class.
public  FieldMetaData[]horizontalFields
     Fields as mapped from the horizontal superclass.
public  intidentityType
     The type of identity.
public  intindex
     The index of this class in the classes array.
public  booleaninstancesNotAllowed
     This flag is set if instances of the class are not allowed.
public transient  JdoClassjdoClass
     The original parsed .jdo meta data.
final public  ModelMetaDatajmd
     The meta data we belong to.
public  FieldMetaData[]managedFields
     Array of the managed fields in abs field no order.
public  FetchGroupmanagedManyToManyFetchGroup
     The many-to-many fetch group (null if none i.e.
public transient  HashMapnameGroupMap
    
public  int[]nonAutoSetStateFieldNos
     This holds all the nonAutoSetStateFieldNos.
public  booleannotifyDataStoreOnDirtyOrDelete
     If the DataStore requires notification before a p-clean instance is made dirty or deleted in a datastore tx then this flag is true (e.g.
public  ClassobjectIdClass
     The objectid-class (null if none).
public  StringoidClassName
     The oid class name for hyperdrive.
public  FieldMetaDataoptimisticLockingField
     If this class uses version or timestamp optimistic locking then this is the field holding the value.
public  StringpackageNameWithDot
     The package name with a trailing dot if not empty.
public  int[]pass2AbsFieldNos
    
public transient  int[]pass2Fields
     The fields that must be persisted on pass 2 in fieldNo order.
public  ClassMetaData[]pcHeirachy
     The meta data for the persistent class heirachy.
public  ClassMetaData[]pcSubclasses
     The meta data for our persistent subclasses (null if none).
public  ClasspcSuperClass
     The persistent superclass (null if none).
public  ClassMetaDatapcSuperMetaData
     The meta data for the persistent superclass (null if none).
public  int[]pkFieldNos
     The field nos of the pk fields.
public  FieldMetaData[]pkFields
     The application primary key fields in alpha (field number) order.
public  booleanpostInsertKeyGenerator
     Must a flush be done if getObjectId is called on a new instance of this class? This is set for classes using post-insert key generators.
final public  Stringqname
     The fully qualified name of the class.
public  booleanreadOnly
    
public  intrealFieldCount
     The number of real fields in this class.
public  FetchGrouprefFetchGroup
     The referenced objects fetch group (null if none i.e.
public  booleanreferenceGraphCycle
     If this class is involved in a reference cycle with other classes then this flag will be set (e.g.
public  intreferenceGraphIndex
     The position of this class in the topological sort of the graph created by following direct references between classes.
public  FetchGroupreqFetchGroup
     This fetch group contains all fields that must be filled in the original state (e.g.
public  intreturnNullForRowNotFound
     This is only used for refFields.
public  int[]scoFieldNos
     The fieldNo's of the sco fields.
final public  StringshortName
     The name of the class without package.
public  FetchGroup[]sortedFetchGroups
    
public  StateAndOIDFactorystateAndOIDFactory
     Factory for State and OID instances for this class.
public  StringstateClassName
     The state class name.
public  int[]stateFieldNos
     This is all the fields that must be managed.
public  FieldMetaData[]stateFields
     The persistent fields declared in this class and in superclasses in State fieldNo order.
public  booleanstoreAllFields
     If the DataStore requires all fields of a dirty instance to store it and not just the dirty fields then this flag is true (e.g.
public transient  ObjectstoreClass
     Extra store specific meta data.
public  intsuperFetchGroupCount
     The total number of FetchGroups in all of our superclasses (i.e.
public  intsuperFieldCount
     The total number of fields in all of our superclasses (i.e.
public  ClassMetaDatatop
     The topmost class in the heirachy (i.e.
public transient  inttotalNoOfSubClasses
    
public  int[]txFieldNos
     The fields that are marked as transactional but not persistent.
public  int[]txfieldManagedFieldNos
    
public  booleanuseKeyGen
     This is true if the keys are created using a key generator.
public transient  intweight
    

Constructor Summary
public  ClassMetaData(JdoClass jdoClass, ModelMetaData jmd)
    

Method Summary
public  voidaddError(RuntimeException e, boolean quiet)
    
public  voidaddNamedQuery(String queryName, QueryDetails qp)
     Add a NamedQuery to this class.
public  voidcalcPcHeirachy()
     Calculate the pcHeirachy for this class and recursively all of its subclasses.
public  voidcalcSuperCounts()
     Calculate and set the superFieldCount and superFetchGroup value for this class and recursively all of its subclasses.
public  voidcleanupAfterMetaDataGeneration()
     Cleanup any data structures not needed after meta data generation.
public  intcompareTo(Object o)
     Sort by classId.
public  NewObjectOIDcreateNewObjectOID()
     Create an OID for a new object of this class.
public  OIDcreateOID(boolean resolved)
     Create a new empty OID for this class.
public  StatecreateState()
     Create a new empty State for this class.
public  voiddump()
    
public  voiddump(PrintStream out, String indent)
    
public  voidfindHeirachyIndexes(IntArray a)
     Add the indexes of all the classes in the heirachy rooted at this class including this class to a.
public  FieldMetaDatafindPkField(String fname)
     Find a primary key field of this class or the topmost superclass in its heirachy by name or null if none.
public  voidfinishFetchGroups()
     Init the stateFieldNo array for all our FetchGroup's and create allFetchGroups.
public  voidfinishFetchGroups2()
     Create the subFetchGroups array on all fetch groups.
public  ClassLoadergetClassLoader()
     Get the classloader that loaded our class.
public  FieldInfo[]getDeclaredFields()
     Find all the fields declared in the class.
public  FetchGroupgetFetchGroup(String gname)
     Get the fetch group with gname or null if none.
final public  FetchGroupgetFetchGroup(int fgIndex, int clsId)
     Get the fetch group with index fgIndex.
public  FieldMetaDatagetFieldMetaData(String fname)
     Get meta data for the field fname or null if none.
public  RuntimeExceptiongetFirstError()
    
public  longgetFirstErrorTime()
    
public  ListgetHeirarchyList()
    
public  ObjectgetMetaDataInstance()
     Get an instance of our class for meta data analysis.
public  ListgetNamedQueries()
     Get Map.Entry's for all of our named queries in alpha order or empty list if none.
public  QueryDetailsgetNamedQuery(String queryName)
     Return QueryDetails for the named query or null if none.
public  StringgetShortName()
     Get the name of this class without package.
public  booleanhasErrors()
    
public  voidinitMDFields()
     This is called at the end of all metadata creation.
public  voidinitMDFields2()
    
public  booleanisAncestorOrSelf(ClassMetaData cmd)
    
public  booleanisEmbeddedRef(int stateFieldNo)
    
public  booleanisInHeirachy()
     Is this class part of a heirachy (i.e.
public  booleanisObjectIdClasssRequired()
    
public  booleanisPersistenceCapable()
     Is this class PersistenceCapable (i.e.
public  voidoverRideCacheStrategy()
    
public  voidsetClassId(int classId)
    
public  voidsetObjectIdClasssRequired(boolean objectIdClasssRequired)
    
public  voidsetReferenceGraphCycle(boolean referenceGraphCycle)
     Set our referenceGraphCycle and recursively all of our subclasses.
public  voidsetReferenceGraphIndex(int referenceGraphIndex)
     Set our referenceGraphIndex.
public  StringtoString()
    
public  voidvalidate()
     Check the consistency of the meta data.

Field Detail
NULL_NO_ROW_FALSE
final public static int NULL_NO_ROW_FALSE(Code)



NULL_NO_ROW_PASSON
final public static int NULL_NO_ROW_PASSON(Code)
These are class hierarchy level setting for specifying when a ObjectNotFoundException must be thrown if this instance is not found.



NULL_NO_ROW_TRUE
final public static int NULL_NO_ROW_TRUE(Code)



absPCTypeFields
public int[] absPCTypeFields(Code)
The abs fieldNos of all fields that is either is pc ref or a collection of pc ref.



absToRel
public int[] absToRel(Code)
This is all the managed fields. This is an array where the index represents the absFieldNo and the value at the index the stateFieldNo. This is used to convert between abs and stateFieldNos



abstractSchemaName
public String abstractSchemaName(Code)
The abstract schema name of the class. Default is shortName.



allFComparator
public transient Comparator allFComparator(Code)



allFetchGroups
public transient List allFetchGroups(Code)
This contains all the fetch groups sorted in fieldNo order. This is used to find a fetch group containing a particular set of fieldNos.



allManagedFieldNosArray
public int[] allManagedFieldNosArray(Code)
This is an utility array that is filled from 0 to the amount of managed fields. It is used to pass as argument to the pc.



autoSetManagedFieldNos
public int[] autoSetManagedFieldNos(Code)
This holds all the autoSetStateFieldNos. These fields are managedFieldNos.



cacheStrategy
public int cacheStrategy(Code)
The caching strategy for this class (one of the CACHE_STRATEGY_xxx constants).



cacheStrategyAllDone
public boolean cacheStrategyAllDone(Code)
Flag to indicate that the cacheStrategy was all and all instances have been read once.



changedOptimisticLocking
public boolean changedOptimisticLocking(Code)
Does this class use changed optimistic locking i.e. include the original values of changed fields in the where clause for JDBC.



classId
public int classId(Code)
The unique ID for this class. This is generated from a hash of the fully qualified class name. Duplicates are resolved by incrementing the classId.
See Also:   ClassMetaData.setClassId(int)



classIdString
public String classIdString(Code)
The classId as a String.
See Also:   ClassMetaData.setClassId(int)



cls
public Class cls(Code)
The class.



dataStoreName
public transient String dataStoreName(Code)
The name of the DataStore this class belongs to. Any DataStore may have multiple names for different physical stores. This may be null indicating the default.



datastoreIdentityType
public Class datastoreIdentityType(Code)
If the class is using datastore identity, then this is the java type of the identity as if it was a Java field.



datastoreIdentityTypeCode
public int datastoreIdentityTypeCode(Code)
If the class is using datastore identity, then this is the java type code ( MDStatics.INT etc) of the identity as if it was a Java field.



deleteOrphans
public boolean deleteOrphans(Code)
Must orphans be deleted? An instance is considered an orphan if it is on the many side of at least one one-to-many (master detail) relationship and all of its back references are null (i.e. it has no parents).



depFetchGroup
public FetchGroup depFetchGroup(Code)
The dependent objects fetch group (null if none i.e. this class and its superclasses and subclasses have no references to dependent PC objects). This is used to do a reachability search when deleting.



dfgAbsFieldNos
public int[] dfgAbsFieldNos(Code)
These are the absolute field numbers of the fields that are loaded into an instance when it is populated with the default fetch group. This may be a subset of the fields in the FetchGroup instance for the DFG as extra fields (e.g. OIDs for references) may be fetched as well but not loaded.
See Also:   com.versant.core.jdo.PCStateMan.loadDFGIntoPC



dfgStateFieldNos
public int[] dfgStateFieldNos(Code)
The same as ClassMetaData.dfgAbsFieldNos but only the state field numbers instead of abs field numbers.
See Also:   ClassMetaData.dfgAbsFieldNos



directRefStateFieldNos
public int[] directRefStateFieldNos(Code)
The fields of the persistent fields that may contain direct (e.g. foreign key) references to other PC classes. This must be filled in by the dataStore owning this class. This information is used to sort graphs of persistent objects for persisting in the correct order (e.g. to avoid tripping database integrity constraints).



fetchGroups
public FetchGroup[] fetchGroups(Code)
The fetch groups.



fgTmp
public transient ArrayList fgTmp(Code)



fields
public FieldMetaData[] fields(Code)
The persistent fields declared in this class (i.e. excluding superclasses) in relative fieldNo order. This includes extra fake fields created to hold information required by the store (e.g. row version values for a JDBC class). The fake fields are always at the end of this array after all the real fields.



fkCollectionRefStateFieldNos
public int[] fkCollectionRefStateFieldNos(Code)
The reference fields that are used to complete collections mapped using a foreign key in the element table. Null if none.



hasAutoSetFields
public boolean hasAutoSetFields(Code)
If we or any of our superclasses have any autoSet fields then this is true.
See Also:   FieldMetaData.autoSet



hasSecondaryFields
public boolean hasSecondaryFields(Code)
This is true if this class or any of its superclasses has any secondary fields.



horizontal
public boolean horizontal(Code)
If this class is horizontal mapped. i.e. its fields should be in the table of the subclass.



horizontalCMD
public ClassMetaData horizontalCMD(Code)
The metadata if this class is the subclass of a horizontal super class.



horizontalFields
public FieldMetaData[] horizontalFields(Code)
Fields as mapped from the horizontal superclass.



identityType
public int identityType(Code)
The type of identity.
See Also:   MDStatics.IDENTITY_TYPE_APPLICATION
See Also:   MDStatics.IDENTITY_TYPE_DATASTORE
See Also:   MDStatics.IDENTITY_TYPE_NONDURABLE



index
public int index(Code)
The index of this class in the classes array.
See Also:   ModelMetaData.classes



instancesNotAllowed
public boolean instancesNotAllowed(Code)
This flag is set if instances of the class are not allowed. An attempt to persist an instance of a class with this flag set will trigger an exception.



jdoClass
public transient JdoClass jdoClass(Code)
The original parsed .jdo meta data.



jmd
final public ModelMetaData jmd(Code)
The meta data we belong to.



managedFields
public FieldMetaData[] managedFields(Code)
Array of the managed fields in abs field no order.



managedManyToManyFetchGroup
public FetchGroup managedManyToManyFetchGroup(Code)
The many-to-many fetch group (null if none i.e. this class and its superclasses and subclasses have no many-to-many managed collection fields). This is used to clear these fields when deleting. It also includes all fields that must be present to persist changes to an instance.



nameGroupMap
public transient HashMap nameGroupMap(Code)



nonAutoSetStateFieldNos
public int[] nonAutoSetStateFieldNos(Code)
This holds all the nonAutoSetStateFieldNos. These fields are stateFieldNos.



notifyDataStoreOnDirtyOrDelete
public boolean notifyDataStoreOnDirtyOrDelete(Code)
If the DataStore requires notification before a p-clean instance is made dirty or deleted in a datastore tx then this flag is true (e.g. VdsDataStore).



objectIdClass
public Class objectIdClass(Code)
The objectid-class (null if none).



oidClassName
public String oidClassName(Code)
The oid class name for hyperdrive.



optimisticLockingField
public FieldMetaData optimisticLockingField(Code)
If this class uses version or timestamp optimistic locking then this is the field holding the value.



packageNameWithDot
public String packageNameWithDot(Code)
The package name with a trailing dot if not empty.



pass2AbsFieldNos
public int[] pass2AbsFieldNos(Code)



pass2Fields
public transient int[] pass2Fields(Code)
The fields that must be persisted on pass 2 in fieldNo order. This is filled using the secondaryField flag on FieldMetaData. Note that NOT these are relative fieldNos.
See Also:   FieldMetaData.secondaryField



pcHeirachy
public ClassMetaData[] pcHeirachy(Code)
The meta data for the persistent class heirachy. This includes all our superclasses in order as well as our selves (i.e. a class with no PC superclasses will have a pcHeirachy containing just itself).



pcSubclasses
public ClassMetaData[] pcSubclasses(Code)
The meta data for our persistent subclasses (null if none).



pcSuperClass
public Class pcSuperClass(Code)
The persistent superclass (null if none).



pcSuperMetaData
public ClassMetaData pcSuperMetaData(Code)
The meta data for the persistent superclass (null if none).



pkFieldNos
public int[] pkFieldNos(Code)
The field nos of the pk fields.



pkFields
public FieldMetaData[] pkFields(Code)
The application primary key fields in alpha (field number) order. This is null if not using application identity.



postInsertKeyGenerator
public boolean postInsertKeyGenerator(Code)
Must a flush be done if getObjectId is called on a new instance of this class? This is set for classes using post-insert key generators. This is also used to decide if a full graph sort is required on persist.



qname
final public String qname(Code)
The fully qualified name of the class.



readOnly
public boolean readOnly(Code)
Is this class read-only?



realFieldCount
public int realFieldCount(Code)
The number of real fields in this class. This must be filled in by the store owning this class. This excludes fake fields.



refFetchGroup
public FetchGroup refFetchGroup(Code)
The referenced objects fetch group (null if none i.e. this class and its superclasses and subclasses have no references to other PC objects). This includes polyrefs and collections and is used to do reachability searches.



referenceGraphCycle
public boolean referenceGraphCycle(Code)
If this class is involved in a reference cycle with other classes then this flag will be set (e.g. this is true for classes A -> B -> C -> A). Constraints must not be generated for any references between classes with this flag set.
See Also:   ClassMetaData.referenceGraphIndex



referenceGraphIndex
public int referenceGraphIndex(Code)
The position of this class in the topological sort of the graph created by following direct references between classes. Example: If A references B, then A.index < B.index and A must be deleted before B to avoid tripping constraints.
See Also:   ClassMetaData.referenceGraphCycle



reqFetchGroup
public FetchGroup reqFetchGroup(Code)
This fetch group contains all fields that must be filled in the original state (e.g. jdoVersion etc.) when persisting changes to instances. It will be null if the class has no such fields (e.g. using optimistic locking 'none').



returnNullForRowNotFound
public int 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 classLevel setting.



scoFieldNos
public int[] scoFieldNos(Code)
The fieldNo's of the sco fields. This is stateFieldNo's



shortName
final public String shortName(Code)
The name of the class without package.



sortedFetchGroups
public FetchGroup[] sortedFetchGroups(Code)



stateAndOIDFactory
public StateAndOIDFactory stateAndOIDFactory(Code)
Factory for State and OID instances for this class. This is set by the StorageManagerFactory.



stateClassName
public String stateClassName(Code)
The state class name.



stateFieldNos
public int[] stateFieldNos(Code)
This is all the fields that must be managed. eg transaction or persistent.



stateFields
public FieldMetaData[] stateFields(Code)
The persistent fields declared in this class and in superclasses in State fieldNo order. This includes extra fake fields.
See Also:   State



storeAllFields
public boolean storeAllFields(Code)
If the DataStore requires all fields of a dirty instance to store it and not just the dirty fields then this flag is true (e.g. VdsDataStore).



storeClass
public transient Object storeClass(Code)
Extra store specific meta data.



superFetchGroupCount
public int superFetchGroupCount(Code)
The total number of FetchGroups in all of our superclasses (i.e. the total of fetchGroups.length for all our superclasses). This is used to convert relative fetch group indexes to State fetch group indexes.



superFieldCount
public int superFieldCount(Code)
The total number of fields in all of our superclasses (i.e. the total of fields.length for all our superclasses). This is useful to convert relative fieldNo's to State fieldNos.



top
public ClassMetaData top(Code)
The topmost class in the heirachy (i.e. pcHeirachy[0]).



totalNoOfSubClasses
public transient int totalNoOfSubClasses(Code)
This is a total of all the subClasses (direct and indirect);



txFieldNos
public int[] txFieldNos(Code)
The fields that are marked as transactional but not persistent.



txfieldManagedFieldNos
public int[] txfieldManagedFieldNos(Code)



useKeyGen
public boolean useKeyGen(Code)
This is true if the keys are created using a key generator.



weight
public transient int weight(Code)




Constructor Detail
ClassMetaData
public ClassMetaData(JdoClass jdoClass, ModelMetaData jmd)(Code)




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



addNamedQuery
public void addNamedQuery(String queryName, QueryDetails qp)(Code)
Add a NamedQuery to this class.
throws:
  IllegalArgumentException - if there is already one with thesame name



calcPcHeirachy
public void calcPcHeirachy()(Code)
Calculate the pcHeirachy for this class and recursively all of its subclasses. This also copies then identityType field down to subclasses.



calcSuperCounts
public void calcSuperCounts()(Code)
Calculate and set the superFieldCount and superFetchGroup value for this class and recursively all of its subclasses. This also initializes various arrays of fieldNos etc.



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



compareTo
public int compareTo(Object o)(Code)
Sort by classId. Do not change this ordering.



createNewObjectOID
public NewObjectOID createNewObjectOID()(Code)
Create an OID for a new object of this class.



createOID
public OID createOID(boolean resolved)(Code)
Create a new empty OID for this class.
Parameters:
  resolved - Is this a resolved OID?
See Also:   OID.isResolved
See Also:   OID.resolve



createState
public State createState()(Code)
Create a new empty State for this class.



dump
public void dump()(Code)



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



findHeirachyIndexes
public void findHeirachyIndexes(IntArray a)(Code)
Add the indexes of all the classes in the heirachy rooted at this class including this class to a.



findPkField
public FieldMetaData findPkField(String fname)(Code)
Find a primary key field of this class or the topmost superclass in its heirachy by name or null if none.



finishFetchGroups
public void finishFetchGroups()(Code)
Init the stateFieldNo array for all our FetchGroup's and create allFetchGroups.



finishFetchGroups2
public void finishFetchGroups2()(Code)
Create the subFetchGroups array on all fetch groups.



getClassLoader
public ClassLoader getClassLoader()(Code)
Get the classloader that loaded our class.



getDeclaredFields
public FieldInfo[] getDeclaredFields()(Code)
Find all the fields declared in the class.



getFetchGroup
public FetchGroup getFetchGroup(String gname)(Code)
Get the fetch group with gname or null if none.



getFetchGroup
final public FetchGroup getFetchGroup(int fgIndex, int clsId)(Code)
Get the fetch group with index fgIndex. If the group does not match clsId then the super fetch group is used and so on recursively. If no fetch group is found a JDOGenieFatalInternalException is thrown.



getFieldMetaData
public FieldMetaData getFieldMetaData(String fname)(Code)
Get meta data for the field fname or null if none. This will only find real fields declared in this class or one of our superclasses.



getFirstError
public RuntimeException getFirstError()(Code)



getFirstErrorTime
public long getFirstErrorTime()(Code)



getHeirarchyList
public List getHeirarchyList()(Code)



getMetaDataInstance
public Object getMetaDataInstance()(Code)
Get an instance of our class for meta data analysis. If our class is abstract then we may return an instance of one of our subclasses. If we have no concrete subclasses then null is returned. The instance is cached.



getNamedQueries
public List getNamedQueries()(Code)
Get Map.Entry's for all of our named queries in alpha order or empty list if none. The key of each Entry is the name and the value the QueryDetails instance.



getNamedQuery
public QueryDetails getNamedQuery(String queryName)(Code)
Return QueryDetails for the named query or null if none. The caller must not modify the returned instance.



getShortName
public String getShortName()(Code)
Get the name of this class without package.



hasErrors
public boolean hasErrors()(Code)



initMDFields
public void initMDFields()(Code)
This is called at the end of all metadata creation. This inits all the fieldnos arrays.



initMDFields2
public void initMDFields2()(Code)



isAncestorOrSelf
public boolean isAncestorOrSelf(ClassMetaData cmd)(Code)
Is cmd one of our ancestors or ourself?



isEmbeddedRef
public boolean isEmbeddedRef(int stateFieldNo)(Code)



isInHeirachy
public boolean isInHeirachy()(Code)
Is this class part of a heirachy (i.e. Does this class have super classes or sub classes that are PesistentCapable) true if this class has super classes or sub classes thatare PesistentCapable



isObjectIdClasssRequired
public boolean isObjectIdClasssRequired()(Code)



isPersistenceCapable
public boolean isPersistenceCapable()(Code)
Is this class PersistenceCapable (i.e. has it been enhanced?).



overRideCacheStrategy
public void overRideCacheStrategy()(Code)



setClassId
public void setClassId(int classId)(Code)



setObjectIdClasssRequired
public void setObjectIdClasssRequired(boolean objectIdClasssRequired)(Code)



setReferenceGraphCycle
public void setReferenceGraphCycle(boolean referenceGraphCycle)(Code)
Set our referenceGraphCycle and recursively all of our subclasses.



setReferenceGraphIndex
public void setReferenceGraphIndex(int referenceGraphIndex)(Code)
Set our referenceGraphIndex.



toString
public String toString()(Code)



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.