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

FieldMetaData
public class FieldMetaData implements Externalizable,Comparable,MDStatics,VersantFieldMetaData(Code)
Meta data for a persistent or transactional field that is common to all DataStore's and the enhancer.


Field Summary
final public static  StringNO_FIELD_TEXT
    
public  intautoSet
     Is this fields value set automatically on commit? This feature is used to implement row version and timestamp optimistic locking but can be used for other purposes.
public  intcascadeType
     The cascade type for this field.
public  intcategory
     What sort of field is this? This is a general classification to make it easier to work with the field.
public  ClassMetaDataclassMetaData
     The class this field belongs to.
public  booleancollectionDiffType
     If this field transported using a CollectionDiff subclass (e.g.
public  VersantSCOCollectionFactorycollectionFactory
    
public  ClasscomponentType
     If this field is an array then this is the type of the entries (null otherwise).
public  intcomponentTypeCode
     The type code for componentType (0 if none).
public  booleandefaultFetchGroup
    
public  booleandefaultFetchGroupDefault
    
public  booleandependentKeys
     This is only valid for map fields.
public  booleandependentValues
     Are the objects referenced by this field dependent? This is only valid for references, collections, arrays and maps etc.
public  ClasselementType
     The type stored in the collection or the value type for a map or the component type for an array.
public  intelementTypeCode
     The type code for elementType (0 if none).
public  ClassMetaDataelementTypeMetaData
     The meta data for elementType if it is a PC class (null otherwise).
public  booleanembedded
    
public  booleanembeddedElement
    
public  booleanembeddedFakeField
     Is this field embedded from another class into this class.
public  FieldMetaData[]embeddedFmds
    
public  booleanembeddedKey
    
public  Externalizerexternalizer
     Is this field transformed into a different type when going to/from storage? Null if not.
public  booleanfake
     Is this an artificial field created to hold some store specific information (e.g.
public  FieldMetaData[]fakeLinks
     If this is a fake field then these are the real fields it is linked to.
public  FetchGroupfetchGroup
     The fetch group for this field.
public  intfieldNo
     The relative field number of this field.
public  booleanhorizontalFakeField
     If this is a fake field that is created from the horizontal super class.
public  booleanincludeAllDataInDiff
     If this is a collection, array or map and this field is true then all data must be provided in the diff instance instead of just the changes on commit or flush.
public  FieldMetaDatainverseFieldMetaData
     If isMaster, isDetail or isManyToMany is set then this is the field on the other side of the relationship.
public  intinverseFieldNo
     If isMaster, isDetail or isManyToMany is set then this is the fieldNo of the field on the other side of the relationship.
public  booleanisDetail
     Is this field a detail (many) in a master/detail (one-to-many) relationship? This field is set both for managed and unmanaged relationships.
public  booleanisManyToMany
    
public  booleanisMaster
    
public  booleanisReadOnly
     Is this field read only (e.g.
public  JdoArrayjdoArray
     The parsed array element (null if none).
public  JdoCollectionjdoCollection
     The parsed collection element (null if none).
public  JdoFieldjdoField
     The parsed info for this field (null if none i.e.
public  JdoMapjdoMap
     The parsed map element (null if none).
public  ClasskeyType
     The key type (null if not a map).
public  intkeyTypeCode
     The type code for keyType (0 if none).
public  ClassMetaDatakeyTypeMetaData
     The meta data for keyType if it is a PC class (null otherwise).
public  booleanmanaged
     Is isMaster or isManyToMany is set then this indicates if the relationship is managed by the SCOs or not.
public  FieldMetaData[]managedEmbeddedFields
    
public  intmanagedFieldNo
     The absolute fieldNo for this field.
public  VersantSCOMapFactorymapFactory
    
public  intmodifiers
     The java modifiers for this field (transient etc).
public  Stringname
     The name of the field.
public  booleannullIfNotFound
     Should the field be returned as null if the referenced object is not found? This is useful for references with all of their columns shared with the primary key.
public  FieldMetaDatanullIndicatorFmd
    
public  intnullValue
    
public  booleanordered
    
public transient  OrderNode[]ordering
     This is filled for unordered collection fields with an ordering extension.
public  FieldMetaDataorigFmd
    
public  StringorigName
    
public  intpersistenceModifier
     The persistence-modifier of the field.
public  booleanprimaryField
     Is this field persisted as part of the object itself in the datastore? This is set by the store for the class (e.g.
public  booleanprimaryKey
    
public  booleanscoField
     If the field is a sco field.
public  booleansecondaryField
     Is this field persisted separately to the object itself? This is set by the store for the class (e.g.
public  VersantSCOFactorysimpleSCOFactory
    
public  intstateFieldNo
     The state field no for this field.
public  StringstateGetMethodName
     This is just the method name on state to call to retrieve this field.
public transient  ObjectstoreField
     Extra store specific meta data for this field.
public  Classtype
     The java type of this field.
public  inttypeCode
     The java type code of this field if it is a simple type (int, Integer, String etc.).
public  ClassMetaDatatypeMetaData
     If the type or componentType is a PC class then this is its meta data.

Constructor Summary
public  FieldMetaData()
    

Method Summary
public  voidaddError(RuntimeException e, boolean quiet)
    
public  booleancheckCustomFactory()
    
public  intcompareTo(Object o)
     Sort by name.
public  VersantSimpleSCOcreateCollectionSCO(PersistenceContext pm, VersantStateManager sm, FieldMetaData fmd, PersistenceCapable owner, Object data)
    
public  VersantSimpleSCOcreateMapSCO(PersistenceContext pm, VersantStateManager sm, FieldMetaData fmd, PersistenceCapable owner, Object data)
    
public  VersantSimpleSCOcreateSCO(PersistenceContext pm, VersantStateManager sm, FieldMetaData fmd, PersistenceCapable owner, Object data)
    
public  VersantSimpleSCOcreateSimpleSCO(PersistenceContext pm, VersantStateManager sm, FieldMetaData fmd, PersistenceCapable owner, Object data)
    
public  voiddump()
    
public  voiddump(PrintStream out, String indent)
    
public  FieldMetaDatafindEmbeddedFmd(String name)
    
public  voidfindFetchGroups(ArrayList a)
     Add all fetch groups we belong to to a.
public  StringgetCommentName()
     Get the name for use in comments in SQL files and so on.
public  ComparatorgetComparator()
     Get the comparator for this field if it makes sense i.e.
public  ClassgetElementType()
     The type stored in the collection or the value type for a map or the component type for an array.
public  intgetElementTypeCode()
     The type code for elementType (0 if none).
public  RuntimeExceptiongetFirstError()
    
public  longgetFirstErrorTime()
    
public  VersantFieldMetaDatagetInverseFieldMetaData()
     If isMaster, isDetail or isManyToMany is set then this is the field on the other side of the relationship.
public  intgetInverseFieldNo()
     If isMaster, isDetail or isManyToMany is set then this is the fieldNo of the field on the other side of the relationship.
public  ClassgetKeyType()
     The key type (null if not a map).
public  intgetKeyTypeCode()
     The type code for keyType (0 if none).
public  intgetManagedFieldNo()
     The absolute fieldNo for this field.
public  StringgetName()
     The name of the field.
public  FieldgetObjectidClassField()
     If this field is part of the primary key and this class uses application identity then this is the corresponding field from the objectid-class.
public  ObjectgetPKDefaultValue()
     Get the default value of this field in the objectid-class.
public  StringgetPkFieldName()
    
public  StringgetQName()
     Return the fully qualified name of this field.
public  ClassMetaDatagetRefOrValueClassMetaData()
     Get the meta data for the class we reference.
public  FieldgetReflectField()
     Get a Field instance for this field using reflection.
public  ExternalizergetSerializer(VersantPersistenceManagerImp pm)
     Return the Externalizer transformer for this field.
public  StringgetTypeQName()
     Return the type and fully qualified name of this field.
public  booleanhasErrors()
    
public  booleanincludeInAllFGs()
     Must this field be included in all fetch groups? This is true for fields that are always required (e.g.
public  voidinitPkDefaultValue(Object pkClassInst)
    
public  booleanisClearOnRetainValues()
     Must this field be removed from the state after commit of a transaction with retainValues true? This is used to ensure that autoSet fields are reread after an update or insert.
public  booleanisDefaultFetchGroupTrue()
     Does this field have default-fetch-group set to true i.e.
public  booleanisDirectRef()
     Is this field a reference to another PC class? Note the PolyRef's are not considered direct references.
public  booleanisElementTypePC()
    
public  booleanisEmbeddedRef()
    
public  booleanisFake()
     Is this an artificial field created to hold some store specific information (e.g.
public  booleanisIncludeAllDataInDiff()
     If this is a collection, array or map and this field is true then all data must be provided in the diff instance instead of just the changes on commit or flush.
public  booleanisJDODefaultFetchGroup()
    
public  booleanisKeyTypePC()
     The meta data for keyType if it is a PC class (null otherwise).
public  booleanisManaged()
     Is isMaster or isManyToMany is set then this indicates if the relationship is managed by the SCOs or not.
public  booleanisManyToMany()
    
public  booleanisMapKeyRef()
     If the key field of the map is a PersistenceCapable instance.
public  booleanisMapValueRef()
     If the value field of the map is a PersistenceCapable instance.
public  booleanisMaster()
    
public  booleanisOrdered()
    
public  voidreadExternal(ObjectInput in)
    
public  voidsetAutoSet(int autoSet)
    
public  voidsetComponentType(Class componentType)
    
public  voidsetElementType(Class elementType)
    
public  voidsetKeyType(Class keyType)
    
public  voidsetNullIndicatorFmd(FieldMetaData fmd)
    
public  voidsetPkDefaultValue(Object pkDefaultValue)
    
public  voidsetScoFactory(Object factory)
    
public  voidsetScoField(boolean scoField)
    
public static  voidsetStateMethodName(FieldMetaData fmd)
    
public  voidsetType(Class type)
    
public  StringtoString()
    
public  voidwriteExternal(ObjectOutput out)
    

Field Detail
NO_FIELD_TEXT
final public static String NO_FIELD_TEXT(Code)



autoSet
public int autoSet(Code)
Is this fields value set automatically on commit? This feature is used to implement row version and timestamp optimistic locking but can be used for other purposes.



cascadeType
public int cascadeType(Code)
The cascade type for this field. This is currently only used by entitymanager.
See Also:   MDStatics.CASCADE_ALL
See Also:   MDStatics.CASCADE_MERGE
See Also:   MDStatics.CASCADE_PERSIST
See Also:   MDStatics.CASCADE_REFRESH
See Also:   MDStatics.CASCADE_REMOVE



category
public int category(Code)
What sort of field is this? This is a general classification to make it easier to work with the field.
See Also:   MDStatics.CATEGORY_SIMPLE
See Also:   MDStatics.CATEGORY_COLLECTION
See Also:   MDStatics.CATEGORY_ARRAY
See Also:   MDStatics.CATEGORY_MAP
See Also:   MDStatics.CATEGORY_REF
See Also:   MDStatics.CATEGORY_TRANSACTIONAL
See Also:   MDStatics.CATEGORY_EXTERNALIZED



classMetaData
public ClassMetaData classMetaData(Code)
The class this field belongs to.



collectionDiffType
public boolean collectionDiffType(Code)
If this field transported using a CollectionDiff subclass (e.g. List, Set and Map fields) ?



collectionFactory
public VersantSCOCollectionFactory collectionFactory(Code)



componentType
public Class componentType(Code)
If this field is an array then this is the type of the entries (null otherwise).



componentTypeCode
public int componentTypeCode(Code)
The type code for componentType (0 if none).
See Also:   MDStatics
See Also:   FieldMetaData.componentType



defaultFetchGroup
public boolean defaultFetchGroup(Code)
Is this field in the default-fetch-group?



defaultFetchGroupDefault
public boolean defaultFetchGroupDefault(Code)
Is this field in the default-fetch-group by default (true for ints etc false for references and so on)?



dependentKeys
public boolean dependentKeys(Code)
This is only valid for map fields. It provides the same functionality for the keys of the map as the the dependentValues flag does for the values.
See Also:   FieldMetaData.dependentValues



dependentValues
public boolean dependentValues(Code)
Are the objects referenced by this field dependent? This is only valid for references, collections, arrays and maps etc. Dependent objects are deleted when their owner (i.e. the object with this field) is deleted. For a map this refers to the values.
See Also:   FieldMetaData.dependentKeys



elementType
public Class elementType(Code)
The type stored in the collection or the value type for a map or the component type for an array.



elementTypeCode
public int elementTypeCode(Code)
The type code for elementType (0 if none).
See Also:   MDStatics
See Also:   FieldMetaData.elementType



elementTypeMetaData
public ClassMetaData elementTypeMetaData(Code)
The meta data for elementType if it is a PC class (null otherwise).



embedded
public boolean embedded(Code)
Should this field embedded (hint to the store)?



embeddedElement
public boolean embeddedElement(Code)
Should the collection or array elements (or values for a map) be embedded?



embeddedFakeField
public boolean embeddedFakeField(Code)
Is this field embedded from another class into this class.



embeddedFmds
public FieldMetaData[] embeddedFmds(Code)



embeddedKey
public boolean embeddedKey(Code)
Should the keys be embedded?



externalizer
public Externalizer externalizer(Code)
Is this field transformed into a different type when going to/from storage? Null if not.



fake
public boolean fake(Code)
Is this an artificial field created to hold some store specific information (e.g. row version column values for a JDBC store)?



fakeLinks
public FieldMetaData[] fakeLinks(Code)
If this is a fake field then these are the real fields it is linked to. This is typically used to make sure the fake field is in all the same fetch groups as its associated fields. This may be null in which case the fake field is added to all fetch groups.



fetchGroup
public FetchGroup fetchGroup(Code)
The fetch group for this field. This is the fetch group used when the field is requested and no fetch group is specified.



fieldNo
public int fieldNo(Code)
The relative field number of this field.



horizontalFakeField
public boolean horizontalFakeField(Code)
If this is a fake field that is created from the horizontal super class.



includeAllDataInDiff
public boolean includeAllDataInDiff(Code)
If this is a collection, array or map and this field is true then all data must be provided in the diff instance instead of just the changes on commit or flush. This is used for datastores like VDS that always write everything.



inverseFieldMetaData
public FieldMetaData inverseFieldMetaData(Code)
If isMaster, isDetail or isManyToMany is set then this is the field on the other side of the relationship.



inverseFieldNo
public int inverseFieldNo(Code)
If isMaster, isDetail or isManyToMany is set then this is the fieldNo of the field on the other side of the relationship.



isDetail
public boolean isDetail(Code)
Is this field a detail (many) in a master/detail (one-to-many) relationship? This field is set both for managed and unmanaged relationships.



isManyToMany
public boolean isManyToMany(Code)
Is this field in a many-to-many relationship?



isMaster
public boolean isMaster(Code)
Is this field a master (one) in a master/detail (one-to-many) relationship



isReadOnly
public boolean isReadOnly(Code)
Is this field read only (e.g. the inverse side of a many-to-many)?



jdoArray
public JdoArray jdoArray(Code)
The parsed array element (null if none).



jdoCollection
public JdoCollection jdoCollection(Code)
The parsed collection element (null if none).



jdoField
public JdoField jdoField(Code)
The parsed info for this field (null if none i.e. meta data created using reflection).



jdoMap
public JdoMap jdoMap(Code)
The parsed map element (null if none).



keyType
public Class keyType(Code)
The key type (null if not a map).



keyTypeCode
public int keyTypeCode(Code)
The type code for keyType (0 if none).
See Also:   MDStatics
See Also:   FieldMetaData.keyType



keyTypeMetaData
public ClassMetaData keyTypeMetaData(Code)
The meta data for keyType if it is a PC class (null otherwise).



managed
public boolean managed(Code)
Is isMaster or isManyToMany is set then this indicates if the relationship is managed by the SCOs or not. Note that this field is filled in by the JdbcField involved.



managedEmbeddedFields
public FieldMetaData[] managedEmbeddedFields(Code)



managedFieldNo
public int managedFieldNo(Code)
The absolute fieldNo for this field.



mapFactory
public VersantSCOMapFactory mapFactory(Code)



modifiers
public int modifiers(Code)
The java modifiers for this field (transient etc).
See Also:   java.lang.reflect.Modifier



name
public String name(Code)
The name of the field.



nullIfNotFound
public boolean nullIfNotFound(Code)
Should the field be returned as null if the referenced object is not found? This is useful for references with all of their columns shared with the primary key.



nullIndicatorFmd
public FieldMetaData nullIndicatorFmd(Code)
If this field acts a nullIndicator



nullValue
public int nullValue(Code)
How are nulls handled (null-value attribute)?
See Also:   MDStatics.NULL_VALUE_DEFAULT
See Also:   MDStatics.NULL_VALUE_EXCEPTION
See Also:   MDStatics.NULL_VALUE_NONE



ordered
public boolean ordered(Code)
Is this an ordered collection?



ordering
public transient OrderNode[] ordering(Code)
This is filled for unordered collection fields with an ordering extension. Only required on server so is transient.



origFmd
public FieldMetaData origFmd(Code)



origName
public String origName(Code)



persistenceModifier
public int persistenceModifier(Code)
The persistence-modifier of the field.
See Also:   MDStatics.PERSISTENCE_MODIFIER_PERSISTENT
See Also:   MDStatics.PERSISTENCE_MODIFIER_TRANSACTIONAL



primaryField
public boolean primaryField(Code)
Is this field persisted as part of the object itself in the datastore? This is set by the store for the class (e.g. the JdbcDataStore will set this for fields stored in the main table and the VdsDataStore will set this for fields stored with the object itself).



primaryKey
public boolean primaryKey(Code)
Is this field part of the primary key?



scoField
public boolean scoField(Code)
If the field is a sco field.



secondaryField
public boolean secondaryField(Code)
Is this field persisted separately to the object itself? This is set by the store for the class (e.g. the JdbcDataStore will set this for fields stored using a link table and the VdsDataStore will set this for fields not stored as part of the Object e.g. Collections).



simpleSCOFactory
public VersantSCOFactory simpleSCOFactory(Code)



stateFieldNo
public int stateFieldNo(Code)
The state field no for this field.



stateGetMethodName
public String stateGetMethodName(Code)
This is just the method name on state to call to retrieve this field.



storeField
public transient Object storeField(Code)
Extra store specific meta data for this field.



type
public Class type(Code)
The java type of this field.



typeCode
public int typeCode(Code)
The java type code of this field if it is a simple type (int, Integer, String etc.).
See Also:   MDStatics



typeMetaData
public ClassMetaData typeMetaData(Code)
If the type or componentType is a PC class then this is its meta data. This is null for Collection's.
See Also:   FieldMetaData.componentType
See Also:   FieldMetaData.elementType
See Also:   FieldMetaData.elementTypeMetaData




Constructor Detail
FieldMetaData
public FieldMetaData()(Code)




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



checkCustomFactory
public boolean checkCustomFactory()(Code)



compareTo
public int compareTo(Object o)(Code)
Sort by name. Do not change this ordering as it is used to order fields for fieldNos and so on.



createCollectionSCO
public VersantSimpleSCO createCollectionSCO(PersistenceContext pm, VersantStateManager sm, FieldMetaData fmd, PersistenceCapable owner, Object data)(Code)



createMapSCO
public VersantSimpleSCO createMapSCO(PersistenceContext pm, VersantStateManager sm, FieldMetaData fmd, PersistenceCapable owner, Object data)(Code)



createSCO
public VersantSimpleSCO createSCO(PersistenceContext pm, VersantStateManager sm, FieldMetaData fmd, PersistenceCapable owner, Object data)(Code)



createSimpleSCO
public VersantSimpleSCO createSimpleSCO(PersistenceContext pm, VersantStateManager sm, FieldMetaData fmd, PersistenceCapable owner, Object data)(Code)



dump
public void dump()(Code)



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



findEmbeddedFmd
public FieldMetaData findEmbeddedFmd(String name)(Code)



findFetchGroups
public void findFetchGroups(ArrayList a)(Code)
Add all fetch groups we belong to to a.



getCommentName
public String getCommentName()(Code)
Get the name for use in comments in SQL files and so on. This will include the name of the class if this field is in a subclass.



getComparator
public Comparator getComparator()(Code)
Get the comparator for this field if it makes sense i.e. this is a sorted Collection or Map with Comparator. This is cached.



getElementType
public Class getElementType()(Code)
The type stored in the collection or the value type for a map or the component type for an array.



getElementTypeCode
public int getElementTypeCode()(Code)
The type code for elementType (0 if none).
See Also:   MDStatics
See Also:   FieldMetaData.elementType



getFirstError
public RuntimeException getFirstError()(Code)



getFirstErrorTime
public long getFirstErrorTime()(Code)



getInverseFieldMetaData
public VersantFieldMetaData getInverseFieldMetaData()(Code)
If isMaster, isDetail or isManyToMany is set then this is the field on the other side of the relationship.



getInverseFieldNo
public int getInverseFieldNo()(Code)
If isMaster, isDetail or isManyToMany is set then this is the fieldNo of the field on the other side of the relationship.



getKeyType
public Class getKeyType()(Code)
The key type (null if not a map).



getKeyTypeCode
public int getKeyTypeCode()(Code)
The type code for keyType (0 if none).
See Also:   MDStatics
See Also:   FieldMetaData.keyType



getManagedFieldNo
public int getManagedFieldNo()(Code)
The absolute fieldNo for this field.



getName
public String getName()(Code)
The name of the field.



getObjectidClassField
public Field getObjectidClassField()(Code)
If this field is part of the primary key and this class uses application identity then this is the corresponding field from the objectid-class.



getPKDefaultValue
public Object getPKDefaultValue()(Code)
Get the default value of this field in the objectid-class. This is only valid for primary key fields.



getPkFieldName
public String getPkFieldName()(Code)



getQName
public String getQName()(Code)
Return the fully qualified name of this field.



getRefOrValueClassMetaData
public ClassMetaData getRefOrValueClassMetaData()(Code)
Get the meta data for the class we reference. If this field is an array, collection or map of a PC class then this will be the meta data for the value class. If this is a simple reference then this will be the meta data of the referenced class. Otherwise null is returned. Always returns null for externalized fields.
See Also:   FieldMetaData.typeMetaData
See Also:   FieldMetaData.elementTypeMetaData



getReflectField
public Field getReflectField()(Code)
Get a Field instance for this field using reflection. This will have setAccessible(true) called on it.



getSerializer
public Externalizer getSerializer(VersantPersistenceManagerImp pm)(Code)
Return the Externalizer transformer for this field.



getTypeQName
public String getTypeQName()(Code)
Return the type and fully qualified name of this field.



hasErrors
public boolean hasErrors()(Code)



includeInAllFGs
public boolean includeInAllFGs()(Code)
Must this field be included in all fetch groups? This is true for fields that are always required (e.g. row version fields for optimistic locking).

App Id fields are also always included in all fetchGroups. This is done to enable existence checking for a join.(if the owners id fields and the id fieds of the joined row are the same. If the joined key fields are null then the ref is null)




initPkDefaultValue
public void initPkDefaultValue(Object pkClassInst)(Code)



isClearOnRetainValues
public boolean isClearOnRetainValues()(Code)
Must this field be removed from the state after commit of a transaction with retainValues true? This is used to ensure that autoSet fields are reread after an update or insert.



isDefaultFetchGroupTrue
public boolean isDefaultFetchGroupTrue()(Code)
Does this field have default-fetch-group set to true i.e. this was done explicitly in the JDO meta data ?



isDirectRef
public boolean isDirectRef()(Code)
Is this field a reference to another PC class? Note the PolyRef's are not considered direct references.



isElementTypePC
public boolean isElementTypePC()(Code)
Is the element type a persistent class?



isEmbeddedRef
public boolean isEmbeddedRef()(Code)



isFake
public boolean isFake()(Code)
Is this an artificial field created to hold some store specific information (e.g. row version column values for a JDBC store)?



isIncludeAllDataInDiff
public boolean isIncludeAllDataInDiff()(Code)
If this is a collection, array or map and this field is true then all data must be provided in the diff instance instead of just the changes on commit or flush. This is used for datastores like VDS that always write everything.



isJDODefaultFetchGroup
public boolean isJDODefaultFetchGroup()(Code)



isKeyTypePC
public boolean isKeyTypePC()(Code)
The meta data for keyType if it is a PC class (null otherwise).



isManaged
public boolean isManaged()(Code)
Is isMaster or isManyToMany is set then this indicates if the relationship is managed by the SCOs or not. Note that this field is filled in by the JdbcField involved.



isManyToMany
public boolean isManyToMany()(Code)
Is this field in a many-to-many relationship?



isMapKeyRef
public boolean isMapKeyRef()(Code)
If the key field of the map is a PersistenceCapable instance.
See Also:   javax.jdo.spi.PersistenceCapable



isMapValueRef
public boolean isMapValueRef()(Code)
If the value field of the map is a PersistenceCapable instance.
See Also:   javax.jdo.spi.PersistenceCapable



isMaster
public boolean isMaster()(Code)
Is this field a master (one) in a master/detail (one-to-many) relationship



isOrdered
public boolean isOrdered()(Code)
Is this an ordered collection?



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)



setAutoSet
public void setAutoSet(int autoSet)(Code)



setComponentType
public void setComponentType(Class componentType)(Code)



setElementType
public void setElementType(Class elementType)(Code)



setKeyType
public void setKeyType(Class keyType)(Code)



setNullIndicatorFmd
public void setNullIndicatorFmd(FieldMetaData fmd)(Code)



setPkDefaultValue
public void setPkDefaultValue(Object pkDefaultValue)(Code)



setScoFactory
public void setScoFactory(Object factory)(Code)



setScoField
public void setScoField(boolean scoField)(Code)



setStateMethodName
public static void setStateMethodName(FieldMetaData fmd)(Code)



setType
public void setType(Class type)(Code)



toString
public String toString()(Code)



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(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.