Java Doc for AbstractMemberMetaData.java in  » Database-ORM » JPOX » org » jpox » 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 » Database ORM » JPOX » org.jpox.metadata 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jpox.metadata.MetaData
      org.jpox.metadata.AbstractMemberMetaData

All known Subclasses:   org.jpox.metadata.FieldMetaData,  org.jpox.metadata.PropertyMetaData,
AbstractMemberMetaData
abstract public class AbstractMemberMetaData extends MetaData implements Comparable,ColumnMetaDataContainer(Code)
Abstract representation of MetaData for a field/property of a class/interface. The term "member" is used to represent either a field or a method(property). The term property is used to represent the name after cutting off any Java-beans style "get" prefix. This class is extended for fields (FieldMetaData) and properties (PropertyMetaData) to provide the explicit support for those components.
version:
   $Revision: 1.20 $


Field Summary
final public static  intDEFAULT_RECURSION_DEPTH
     Default recursion-depth according to proposed final draft spec, [12.7.2].
final public static  intUNDEFINED_RECURSION_DEPTH
     Indicates the recursion-depth is not defined.
protected  booleancascadeDelete
     Whether to delete this relation when deleting the owning object (JPA).
protected  booleancascadePersist
     Whether to persist this relation when persisting the owning object.
protected  booleancascadeRefresh
     Whether to refresh this relation when refreshing the owning object (JPA).
protected  booleancascadeUpdate
     Whether to update this relation when updating the owning object.
protected  Stringcatalog
     Catalog for the table specified for this field.
protected  StringclassName
     Name of the class to which this field really belongs.
protected  Stringcolumn
     column tag value.
protected  ColumnMetaData[]columnMetaData
     Contains the metadata for column(s).
protected  Listcolumns
    
protected  ContainerMetaDatacontainer
     Meta-Data of any container.
protected  BooleandefaultFetchGroup
     default-fetch-group tag value.
protected  Booleandependent
     Whether this field contains a reference that should be deleted when deleting this field.
protected  ElementMetaDataelementMetaData
     ElementMetaData.
protected  Booleanembedded
     embedded tag value.
protected  EmbeddedMetaDataembeddedMetaData
     EmbeddedMetaData.
protected  intfieldId
     Id of the field in its class (only for fields managed by JDO).
protected  String[]fieldTypes
     Specification of the possible type(s) that can be stored in this field.
protected  ForeignKeyMetaDataforeignKeyMetaData
     ForeignKeyMetaData.
protected  IndexMetaDataindexMetaData
     IndexMetaData.
protected  IndexedValueindexed
    
protected  bytejdoFieldFlag
     JDO Flags for use in enhancement process - see JDO spec 21.14.
protected  JoinMetaDatajoinMetaData
     JoinMetaData.
protected  KeyMetaDatakeyMetaData
     KeyMetaData.
protected  StringloadFetchGroup
     load-fetch-group value.
protected  StringmappedBy
     mapped-by tag value.
protected  intmodifiers
    
final protected  Stringname
     Field name.
protected  NullValuenullValue
     null-value tag value (default is NONE).
protected  OrderMetaDataorderMetaData
     OrderMetaData.
protected  booleanordered
     Temporary flag to signify if the field is ordered.
protected  FieldPersistenceModifierpersistenceModifier
     persistence-modifier tag value.
protected  BooleanprimaryKey
     primary key tag value.
protected  intrecursionDepth
     recursion-depth value.
protected  AbstractMemberMetaData[]relatedMemberMetaData
     MetaData for the other end of a relation when this member is a bidirectional relation.
protected  intrelationType
     The relation type of this field (1-1, 1-N, M-N, N-1).
protected  Stringschema
     Schema for the table specified for this field.
protected  Stringsequence
     If the value-strategy is sequence, the sequence attribute specifies the name of the sequence to use to automatically generate a value for the field.
protected  Booleanserialized
     serialized tag value.
protected  booleanstoreInLob
     Wrapper for the ugly JPA "lob" so that when being populated we should make this serialised in some way.
protected  Stringtable
     Table name for this field.
protected  StringtargetClassName
    
protected  Classtype
     Field type being represented by this MetaData.
final protected  booleanuniqueConstraint
     Whether to add a unique constraint.
protected  UniqueMetaDatauniqueMetaData
     UniqueMetaData.
protected  StringvalueGeneratorName
     Name of a value generator if the user wants to override the default JPOX generator.
protected  ValueMetaDatavalueMetaData
     ValueMetaData.
protected  IdentityStrategyvalueStrategy
     The value-strategy attribute specifies the strategy used to generate values for the field.

Constructor Summary
public  AbstractMemberMetaData(MetaData parent, String name)
    
public  AbstractMemberMetaData(MetaData parent, AbstractMemberMetaData fmd)
     Convenience constructor to copy the specification from the passed field.
public  AbstractMemberMetaData(MetaData parent, String name, String pk, String modifier, String defaultFetchGroup, String nullValue, String embedded, String serialized, String dependent, String mappedBy, String column, String table, String catalog, String schema, String deleteAction, String indexed, String unique, String recursionDepth, String loadFetchGroup, String valueStrategy, String sequence, String fieldType)
     Constructor.

Method Summary
public  voidaddColumn(ColumnMetaData colmd)
    
public  booleancalcIsSecondClassMutable()
     Calculate wether this field should be a second class mutable field. This calculation is a bit expensive. Please note that this data will be cached in AbstractClassMetaData.scoMutableMemberFlags .
public  intcompareTo(Object o)
     Comparator method.
public  booleanfieldBelongsToClass()
     Accessor for whether the field is for a superclass, and not for this class.
public  intgetAbsoluteFieldNumber()
    
public  AbstractClassMetaDatagetAbstractClassMetaData()
     Convenience accessor for the MetaData of the parent class.
public  ArrayMetaDatagetArray()
     Accessor for an array container for this field.
public  StringgetCatalog()
    
public  StringgetClassName()
     Accessor for the fully-qualified class name owning this field.
public  StringgetClassName(boolean fully_qualified)
     Convenience to return the class name that this a field of.
Parameters:
  fully_qualified - Whether the name should be fully qualified.
public  CollectionMetaDatagetCollection()
     Accessor for a collection container for this field.
final public  StringgetColumn()
    
final public  ColumnMetaData[]getColumnMetaData()
    
public  ContainerMetaDatagetContainer()
     Accessor for the container for this field.
final public  ElementMetaDatagetElementMetaData()
    
final public  EmbeddedMetaDatagetEmbeddedMetaData()
    
public  intgetFieldId()
     Accessor for the field id.
final public  String[]getFieldTypes()
     Accessor for the implementation type(s) that can be stored in this field when it is a reference type.
final public  ForeignKeyMetaDatagetForeignKeyMetaData()
    
public  StringgetFullFieldName()
     Accessor for the full field name.
final public  IndexMetaDatagetIndexMetaData()
    
public  bytegetJdoFieldFlag()
    
final public  JoinMetaDatagetJoinMetaData()
    
final public  KeyMetaDatagetKeyMetaData()
    
public  StringgetLoadFetchGroup()
    
public  MapMetaDatagetMap()
     Accessor for a map container for this field.
final public  StringgetMappedBy()
    
public  MetaDataManagergetMetaDataManager()
     Convenience accessor for the MetaData Manager in use.
public  StringgetName()
    
public  NullValuegetNullValue()
    
final public  OrderMetaDatagetOrderMetaData()
    
protected  MetaDatagetOverallParentClassMetaData(MetaData metadata)
     Convenience method to navigate back through the parents to find the overall ClassMetaData handling this object.
public  FieldPersistenceModifiergetPersistenceModifier()
    
public  intgetRecursionDepth()
    
 voidgetReferencedClassMetaData(List orderedCMDs, Set referencedCMDs, String dba_vendor_id, ClassLoaderResolver clr)
     Accessor for all ClassMetaData referenced by this Field.

Part of the "persistence-by-reachability" concept.

public  AbstractMemberMetaData[]getRelatedMemberMetaData(ClassLoaderResolver clr)
     Accessor for the FieldMetaData of any related field/property (where this field is part of a bidirectional relation).
public  AbstractMemberMetaDatagetRelatedMemberMetaDataForObject(ClassLoaderResolver clr, Object thisPC, Object otherPC)
     Convenience accessor for the MetaData for the field/property at the other side of the bidirectional relation given the objects at this side and the other side.
public  intgetRelationType(ClassLoaderResolver clr)
     Accessor for the relation type for this field.
public  StringgetSchema()
    
public  StringgetSequence()
     If the value-strategy is sequence, the sequence attribute specifies the name of the sequence to use to automatically generate a value for the field.
public  StringgetTable()
    
public  ClassgetType()
    
public  StringgetTypeName()
    
final public  UniqueMetaDatagetUniqueMetaData()
    
public  StringgetValueGeneratorName()
     Name of a (user-provided) value generator to override the default JPOX generator for this strategy.
final public  ValueMetaDatagetValueMetaData()
    
public  IdentityStrategygetValueStrategy()
     The value-strategy attribute specifies the strategy used to generate values for the field.
public  booleanhasArray()
    
public  booleanhasCollection()
    
public  booleanhasContainer()
     Accessor for whether the field has a container.
public  booleanhasMap()
     Accessor for whether the field has a map.
public synchronized  voidinitialise()
     Initialisation method.
public  booleanisAbstract()
     Convenience method to return if this field represents an abstract property.
public  booleanisCascadeDelete()
    
public  booleanisCascadePersist()
    
public  booleanisCascadeRefresh()
    
public  booleanisCascadeUpdate()
    
public  booleanisDefaultFetchGroup()
    
public  booleanisDependent()
     Accessor for the dependent attribute indicates that the field contains a reference that is to be deleted from the datastore if the referring instance in which the field is declared is deleted, or if the referring field is nullified.
public  booleanisEmbedded()
     Accessor for the embedded tag value.
public  booleanisFieldArrayTypePersistable()
     Utility to return if this array field has elements that are Persistable. Not valid for use by the enhancer.
public  booleanisFieldTypePersistable()
     Utility to return if this field is persistable. Not valid for use by the enhancer.
public  booleanisFinal()
     Convenience method to return if this field/property is final.
public  booleanisJdoField()
     Accessor for whether the field is to be managed by JPOX.
public  booleanisPrimaryKey()
     Accessor for the primary-key tag value.
public  booleanisPrivate()
     Convenience method to return if this field/property is private.
abstract public  booleanisProperty()
    
public  booleanisProtected()
     Convenience method to return if this field/property is protected.
public  booleanisPublic()
     Convenience method to return if this field/property is public.
public  booleanisRelationOwner(ClassLoaderResolver clr)
     Convenience method for whether this field is the owner of the relation.
public  booleanisSerialized()
    
public  booleanisStatic()
     Convenience method to return if this field/property is static.
public  booleanisTransient()
     Convenience method to return if this field/property is transient.
public synchronized  voidpopulate(ClassLoaderResolver clr, Field field, Method method, ClassLoader primary)
     Method to provide the details of the field being represented by this MetaData hence populating certain parts of the MetaData.
public  voidsetCascadeDelete(boolean cascade)
     Mutator for the cascading of delete operations on this field.
public  voidsetCascadePersist(boolean cascade)
     Mutator for the cascading of persist operations on this field.
public  voidsetCascadeRefresh(boolean cascade)
     Mutator for the cascading of refresh operations on this field.
public  voidsetCascadeUpdate(boolean cascade)
     Mutator for the cascading of update operations on this field.
public  voidsetCatalog(String catalog)
    
 voidsetClassName(String className)
     Convenience method so that ClassMetaData can update the name of the superclass to which this field belongs.
public  voidsetContainer(ContainerMetaData conmd)
     Method to set the container for this field (if this field represents a container (collection, map, array).
public  voidsetDefaultFetchGroup(boolean dfg)
     Convenience method to set the DFG if needing setting after construction.
public  voidsetDependent(boolean dependent)
     Mutator for dependent attribute.
final public  voidsetElementMetaData(ElementMetaData elementMetaData)
    
final public  voidsetEmbeddedMetaData(EmbeddedMetaData embeddedMetaData)
    
 voidsetFieldId(int field_id)
     Mutator for the field id.
final public  voidsetForeignKeyMetaData(ForeignKeyMetaData foreignKeyMetaData)
    
final public  voidsetIndexMetaData(IndexMetaData indexMetaData)
    
final public  voidsetJoinMetaData(JoinMetaData joinMetaData)
    
final public  voidsetKeyMetaData(KeyMetaData keyMetaData)
    
public  voidsetLoadFetchGroup(String loadFetchGroup)
     Convenience method to set the load fetch group if required after construction.
public  voidsetMappedBy(String mappedby)
    
public  voidsetNotPersistent()
     Convenience method to mark this field as not-persistent.
final public  voidsetOrderMetaData(OrderMetaData orderMetaData)
    
public  voidsetOrdered()
     Mutator for whether the collection stored in this field is ordered.
public  voidsetPrimaryKey()
     Convenience method to make this field (part of) the primary key.
protected  voidsetRelation(ClassLoaderResolver clr)
     Convenience method that sets up the relation type of this field, and the reference to any related field when it is bidirectional.
public  voidsetSchema(String schema)
    
public  voidsetSequence(String sequence)
     If the value-strategy is sequence, the sequence attribute specifies the name of the sequence to use to automatically generate a value for the field.
public  voidsetSerialised()
     Convenience method to mark this field to be stored serialised.
public  voidsetStoreInLob()
     Mutator for whetehr to store as a "lob".
public  voidsetTable(String table)
    
public  voidsetTargetClassName(String target)
     Mutator for the target class name.
public  voidsetTransactional()
     Convenience method to mark this field as transactional.
final public  voidsetUniqueMetaData(UniqueMetaData uniqueMetaData)
    
public  voidsetValueGeneratorName(String generator)
     Mutator for the name of the value generator to use for this strategy.
final public  voidsetValueMetaData(ValueMetaData valueMetaData)
    
public  voidsetValueStrategy(IdentityStrategy valueStrategy)
     The value-strategy attribute specifies the strategy used to generate values for the field.
public  StringtoString(String prefix, String indent)
     Returns a string representation of the object using a prefix This can be used as part of a facility to output a MetaData file.

Field Detail
DEFAULT_RECURSION_DEPTH
final public static int DEFAULT_RECURSION_DEPTH(Code)
Default recursion-depth according to proposed final draft spec, [12.7.2].



UNDEFINED_RECURSION_DEPTH
final public static int UNDEFINED_RECURSION_DEPTH(Code)
Indicates the recursion-depth is not defined. Use default value.



cascadeDelete
protected boolean cascadeDelete(Code)
Whether to delete this relation when deleting the owning object (JPA). TODO Link this to dependent



cascadePersist
protected boolean cascadePersist(Code)
Whether to persist this relation when persisting the owning object.



cascadeRefresh
protected boolean cascadeRefresh(Code)
Whether to refresh this relation when refreshing the owning object (JPA).



cascadeUpdate
protected boolean cascadeUpdate(Code)
Whether to update this relation when updating the owning object.



catalog
protected String catalog(Code)
Catalog for the table specified for this field.



className
protected String className(Code)
Name of the class to which this field really belongs. Will be null if the field belongs to the parent ClassMetaData, and will have a value if it is an overriding field.



column
protected String column(Code)
column tag value.



columnMetaData
protected ColumnMetaData[] columnMetaData(Code)
Contains the metadata for column(s).



columns
protected List columns(Code)
Columns ColumnMetaData



container
protected ContainerMetaData container(Code)
Meta-Data of any container.



defaultFetchGroup
protected Boolean defaultFetchGroup(Code)
default-fetch-group tag value.



dependent
protected Boolean dependent(Code)
Whether this field contains a reference that should be deleted when deleting this field.



elementMetaData
protected ElementMetaData elementMetaData(Code)
ElementMetaData.



embedded
protected Boolean embedded(Code)
embedded tag value.



embeddedMetaData
protected EmbeddedMetaData embeddedMetaData(Code)
EmbeddedMetaData.



fieldId
protected int fieldId(Code)
Id of the field in its class (only for fields managed by JDO). If the value is -1, the field is NOT managed by JDO or the object hasn't been populated.



fieldTypes
protected String[] fieldTypes(Code)
Specification of the possible type(s) that can be stored in this field. This is for the case where the field/property is declared as an interface, or Object and hence can contain derived types. This provides the restriction to a particular type.



foreignKeyMetaData
protected ForeignKeyMetaData foreignKeyMetaData(Code)
ForeignKeyMetaData.



indexMetaData
protected IndexMetaData indexMetaData(Code)
IndexMetaData.



indexed
protected IndexedValue indexed(Code)
The indexing value



jdoFieldFlag
protected byte jdoFieldFlag(Code)
JDO Flags for use in enhancement process - see JDO spec 21.14.



joinMetaData
protected JoinMetaData joinMetaData(Code)
JoinMetaData.



keyMetaData
protected KeyMetaData keyMetaData(Code)
KeyMetaData.



loadFetchGroup
protected String loadFetchGroup(Code)
load-fetch-group value.



mappedBy
protected String mappedBy(Code)
mapped-by tag value.



modifiers
protected int modifiers(Code)
Field modifiers



name
final protected String name(Code)
Field name.



nullValue
protected NullValue nullValue(Code)
null-value tag value (default is NONE).



orderMetaData
protected OrderMetaData orderMetaData(Code)
OrderMetaData.



ordered
protected boolean ordered(Code)
Temporary flag to signify if the field is ordered.



persistenceModifier
protected FieldPersistenceModifier persistenceModifier(Code)
persistence-modifier tag value.



primaryKey
protected Boolean primaryKey(Code)
primary key tag value.



recursionDepth
protected int recursionDepth(Code)
recursion-depth value.



relatedMemberMetaData
protected AbstractMemberMetaData[] relatedMemberMetaData(Code)
MetaData for the other end of a relation when this member is a bidirectional relation. This may be multiple fields if the FK is shared.



relationType
protected int relationType(Code)
The relation type of this field (1-1, 1-N, M-N, N-1).



schema
protected String schema(Code)
Schema for the table specified for this field.



sequence
protected String sequence(Code)
If the value-strategy is sequence, the sequence attribute specifies the name of the sequence to use to automatically generate a value for the field.



serialized
protected Boolean serialized(Code)
serialized tag value.



storeInLob
protected boolean storeInLob(Code)
Wrapper for the ugly JPA "lob" so that when being populated we should make this serialised in some way.



table
protected String table(Code)
Table name for this field.



targetClassName
protected String targetClassName(Code)
Name of the target entity (when used with JPA MetaData on OneToOne, OneToMany etc)



type
protected Class type(Code)
Field type being represented by this MetaData.



uniqueConstraint
final protected boolean uniqueConstraint(Code)
Whether to add a unique constraint.



uniqueMetaData
protected UniqueMetaData uniqueMetaData(Code)
UniqueMetaData.



valueGeneratorName
protected String valueGeneratorName(Code)
Name of a value generator if the user wants to override the default JPOX generator.



valueMetaData
protected ValueMetaData valueMetaData(Code)
ValueMetaData.



valueStrategy
protected IdentityStrategy valueStrategy(Code)
The value-strategy attribute specifies the strategy used to generate values for the field. This attribute has the same values and meaning as the strategy attribute in datastoreidentity.




Constructor Detail
AbstractMemberMetaData
public AbstractMemberMetaData(MetaData parent, String name)(Code)
Convenience constructor taking defaults
Parameters:
  parent - Parent component
Parameters:
  name - Name of the field



AbstractMemberMetaData
public AbstractMemberMetaData(MetaData parent, AbstractMemberMetaData fmd)(Code)
Convenience constructor to copy the specification from the passed field. This is used when we have an overriding field and we make a copy of the baseline field as a starting point.
Parameters:
  parent - The parent
Parameters:
  fmd - The field to copy



AbstractMemberMetaData
public AbstractMemberMetaData(MetaData parent, String name, String pk, String modifier, String defaultFetchGroup, String nullValue, String embedded, String serialized, String dependent, String mappedBy, String column, String table, String catalog, String schema, String deleteAction, String indexed, String unique, String recursionDepth, String loadFetchGroup, String valueStrategy, String sequence, String fieldType)(Code)
Constructor. Saves the MetaData with the specified values. The object is then in an "unpopulated" state. It can become "populated" by calling the populate() method which compares it against the field it is to represent and updates any unset attributes and flags up any errors.
Parameters:
  parent - parent MetaData instance
Parameters:
  name - field name
Parameters:
  pk - attribute primary-key value
Parameters:
  modifier - attribute persistence-modifier value
Parameters:
  defaultFetchGroup - attribute default-fetch-group value
Parameters:
  nullValue - attribute null-value value
Parameters:
  embedded - attribute embedded value
Parameters:
  serialized - attribute serialized value
Parameters:
  dependent - attribute dependent value
Parameters:
  mappedBy - attribute mapped-by value
Parameters:
  column - attribute column value
Parameters:
  table - attribute table value
Parameters:
  catalog - attribute catalog value
Parameters:
  schema - attribute schema value
Parameters:
  deleteAction - attribute delete-action value
Parameters:
  indexed - Whether this is indexed
Parameters:
  unique - Apply a unique constraint
Parameters:
  recursionDepth - The depth of fetch to use when recursing
Parameters:
  loadFetchGroup - Name of the additional fetch group to use when loading
Parameters:
  valueStrategy - attribute value-strategy value
Parameters:
  sequence - attribute sequence value
Parameters:
  fieldType - Implementation type(s) for field.




Method Detail
addColumn
public void addColumn(ColumnMetaData colmd)(Code)
Add a new ColumnMetaData element
Parameters:
  colmd - the ColumnMetaData to add



calcIsSecondClassMutable
public boolean calcIsSecondClassMutable()(Code)
Calculate wether this field should be a second class mutable field. This calculation is a bit expensive. Please note that this data will be cached in AbstractClassMetaData.scoMutableMemberFlags . wether this field should be a second class mutable field.



compareTo
public int compareTo(Object o)(Code)
Comparator method. This allows the ClassMetaData to search for a FieldMetaData with a particular name.
Parameters:
  o - The object to compare against The comparison result



fieldBelongsToClass
public boolean fieldBelongsToClass()(Code)
Accessor for whether the field is for a superclass, and not for this class. Whether the field belongs to a superclass



getAbsoluteFieldNumber
public int getAbsoluteFieldNumber()(Code)
Accessor for the field id field id



getAbstractClassMetaData
public AbstractClassMetaData getAbstractClassMetaData()(Code)
Convenience accessor for the MetaData of the parent class. Returns the MetaData of the parent class.



getArray
public ArrayMetaData getArray()(Code)
Accessor for an array container for this field. Returns null if no array attached. The MetaData of the container for this field if an array



getCatalog
public String getCatalog()(Code)
Accessor for the catalog name catalog name



getClassName
public String getClassName()(Code)
Accessor for the fully-qualified class name owning this field. The class name



getClassName
public String getClassName(boolean fully_qualified)(Code)
Convenience to return the class name that this a field of.
Parameters:
  fully_qualified - Whether the name should be fully qualified. Class name



getCollection
public CollectionMetaData getCollection()(Code)
Accessor for a collection container for this field. Returns null if no collection attached. The MetaData of the container for this field if a Collection.



getColumn
final public String getColumn()(Code)
Accessor for the column Returns the column.



getColumnMetaData
final public ColumnMetaData[] getColumnMetaData()(Code)
Acessor for the columns Returns the columnMetaData.



getContainer
public ContainerMetaData getContainer()(Code)
Accessor for the container for this field. The MetaData of the container for this field.



getElementMetaData
final public ElementMetaData getElementMetaData()(Code)
Accessor for elementMetaData Returns the elementMetaData.



getEmbeddedMetaData
final public EmbeddedMetaData getEmbeddedMetaData()(Code)
Accessor for embeddedMetaData Returns the embeddedMetaData.



getFieldId
public int getFieldId()(Code)
Accessor for the field id. Not set when the field is an overriding field. field id



getFieldTypes
final public String[] getFieldTypes()(Code)
Accessor for the implementation type(s) that can be stored in this field when it is a reference type. Returns the implementation type(s) for the field.



getForeignKeyMetaData
final public ForeignKeyMetaData getForeignKeyMetaData()(Code)
Accessor for foreignKeyMetaData Returns the foreignKeyMetaData.



getFullFieldName
public String getFullFieldName()(Code)
Accessor for the full field name. This prepends the class name. full field name.



getIndexMetaData
final public IndexMetaData getIndexMetaData()(Code)
Accessor for indexMetaData Returns the indexMetaData.



getJdoFieldFlag
public byte getJdoFieldFlag()(Code)
Accessor for the JDO field flag JDO Field flag (for enhancing)



getJoinMetaData
final public JoinMetaData getJoinMetaData()(Code)
Accessor for joinMetaData Returns the joinMetaData.



getKeyMetaData
final public KeyMetaData getKeyMetaData()(Code)
Accessor for keyMetaData Returns the keyMetaData.



getLoadFetchGroup
public String getLoadFetchGroup()(Code)
Accessor for the (additional) fetch group for loading this field Returns the load fetch group



getMap
public MapMetaData getMap()(Code)
Accessor for a map container for this field. Returns null if no map attached. The MetaData of the container for this field if a Map.



getMappedBy
final public String getMappedBy()(Code)
Accessor for mappedBy Returns the mappedBy.



getMetaDataManager
public MetaDataManager getMetaDataManager()(Code)
Convenience accessor for the MetaData Manager in use. MetaDataManager.



getName
public String getName()(Code)
Accessor for the field name field name



getNullValue
public NullValue getNullValue()(Code)
Accessor for the null-value tag null-value tag



getOrderMetaData
final public OrderMetaData getOrderMetaData()(Code)
Accessor for orderMetaData Returns the orderMetaData.



getOverallParentClassMetaData
protected MetaData getOverallParentClassMetaData(MetaData metadata)(Code)
Convenience method to navigate back through the parents to find the overall ClassMetaData handling this object. This is to cater specifically for nested embedded fields where you can nest object several levels deep.
Parameters:
  metadata - The metadata to check The overall class metadata for this element



getPersistenceModifier
public FieldPersistenceModifier getPersistenceModifier()(Code)
Accessor for the persistence-modifier tag value persistence-modifier tag value



getRecursionDepth
public int getRecursionDepth()(Code)
Accessor for the depth of the fetch when recursing Returns the depth of the fetch when recursing



getReferencedClassMetaData
void getReferencedClassMetaData(List orderedCMDs, Set referencedCMDs, String dba_vendor_id, ClassLoaderResolver clr)(Code)
Accessor for all ClassMetaData referenced by this Field.

Part of the "persistence-by-reachability" concept.
Parameters:
  orderedCMDs - List of ordered ClassMetaData objects (added to).
Parameters:
  referencedCMDs - Set of referenced ClassMetaData objects (added to)
Parameters:
  dba_vendor_id - Vendor id of the DBA
Parameters:
  clr - the ClassLoaderResolver




getRelatedMemberMetaData
public AbstractMemberMetaData[] getRelatedMemberMetaData(ClassLoaderResolver clr)(Code)
Accessor for the FieldMetaData of any related field/property (where this field is part of a bidirectional relation). Allows for 1-1, 1-N, and M-N. If this field is not part of a bidirectional relation (no "mapped-by" at either end) then it returns null.
Parameters:
  clr - the ClassLoaderResolver The MetaData for the field/property at the "other end".



getRelatedMemberMetaDataForObject
public AbstractMemberMetaData getRelatedMemberMetaDataForObject(ClassLoaderResolver clr, Object thisPC, Object otherPC)(Code)
Convenience accessor for the MetaData for the field/property at the other side of the bidirectional relation given the objects at this side and the other side.
Parameters:
  clr - ClassLoader Resolver
Parameters:
  thisPC - This object
Parameters:
  otherPC - The related object The MetaData for the field in the related object



getRelationType
public int getRelationType(ClassLoaderResolver clr)(Code)
Accessor for the relation type for this field.
Parameters:
  clr - ClassLoader resolver The relation type.



getSchema
public String getSchema()(Code)
Accessor for the schema name schema name



getSequence
public String getSequence()(Code)
If the value-strategy is sequence, the sequence attribute specifies the name of the sequence to use to automatically generate a value for the field. the sequence name



getTable
public String getTable()(Code)
Accessor for the table name table name



getType
public Class getType()(Code)
Accessor for the field type Reflection field type



getTypeName
public String getTypeName()(Code)
Accessor for the field type name Reflection field type name



getUniqueMetaData
final public UniqueMetaData getUniqueMetaData()(Code)
Accessor for uniqueMetaData Returns the uniqueMetaData.



getValueGeneratorName
public String getValueGeneratorName()(Code)
Name of a (user-provided) value generator to override the default JPOX generator for this strategy. Name of user provided value generator



getValueMetaData
final public ValueMetaData getValueMetaData()(Code)
Accessor for valueMetaData Returns the valueMetaData.



getValueStrategy
public IdentityStrategy getValueStrategy()(Code)
The value-strategy attribute specifies the strategy used to generate values for the field. This attribute has the same values and meaning as the strategy attribute in datastoreidentity. the value strategy



hasArray
public boolean hasArray()(Code)
Accessor for whether the field has an array return true if has array



hasCollection
public boolean hasCollection()(Code)
Accessor for whether the field has a collection return true if has collection



hasContainer
public boolean hasContainer()(Code)
Accessor for whether the field has a container. Whether it represents a container.



hasMap
public boolean hasMap()(Code)
Accessor for whether the field has a map. return true if has map



initialise
public synchronized void initialise()(Code)
Initialisation method. This should be called AFTER using the populate method if you are going to use populate. It creates the internal convenience arrays etc needed for normal operation.



isAbstract
public boolean isAbstract()(Code)
Convenience method to return if this field represents an abstract property. Whether the property is abstract



isCascadeDelete
public boolean isCascadeDelete()(Code)
Accessor for the whether this field should be cascaded at delete Whether to cascade at delete



isCascadePersist
public boolean isCascadePersist()(Code)
Accessor for the whether this field should be cascaded at persist Whether to cascade at persist



isCascadeRefresh
public boolean isCascadeRefresh()(Code)
Accessor for the whether this field should be cascaded at refresh Whether to cascade at refresh



isCascadeUpdate
public boolean isCascadeUpdate()(Code)
Accessor for the whether this field should be cascaded at update Whether to cascade at update



isDefaultFetchGroup
public boolean isDefaultFetchGroup()(Code)
Accessor for the default-fetch-group tag value default-fetch-group tag value



isDependent
public boolean isDependent()(Code)
Accessor for the dependent attribute indicates that the field contains a reference that is to be deleted from the datastore if the referring instance in which the field is declared is deleted, or if the referring field is nullified. dependent tag value



isEmbedded
public boolean isEmbedded()(Code)
Accessor for the embedded tag value. This value is a hint only to the implementation so will not mean that the type is certainly embedded. embedded tag value



isFieldArrayTypePersistable
public boolean isFieldArrayTypePersistable()(Code)
Utility to return if this array field has elements that are Persistable. Not valid for use by the enhancer. Must be overridden for that mode. If the field is not an array will return false. Whether the field type is persistable.



isFieldTypePersistable
public boolean isFieldTypePersistable()(Code)
Utility to return if this field is persistable. Not valid for use by the enhancer. Must be overridden for that mode. Whether the field type is persistable.



isFinal
public boolean isFinal()(Code)
Convenience method to return if this field/property is final. When the object is not "populated" always returns false; Whether the field is field/property



isJdoField
public boolean isJdoField()(Code)
Accessor for whether the field is to be managed by JPOX. Whether it is JPOX managed



isPrimaryKey
public boolean isPrimaryKey()(Code)
Accessor for the primary-key tag value. primary-key tag value.



isPrivate
public boolean isPrivate()(Code)
Convenience method to return if this field/property is private. When the object is not "populated" always returns false; Whether the field/property is private



isProperty
abstract public boolean isProperty()(Code)
Whether this uses getter/setter accessors (Property) or used field based access (Field) true if this is a property



isProtected
public boolean isProtected()(Code)
Convenience method to return if this field/property is protected. When the object is not "populated" always returns false; Whether the field/property is protected



isPublic
public boolean isPublic()(Code)
Convenience method to return if this field/property is public. When the object is not "populated" always returns false; Whether the field/property is public



isRelationOwner
public boolean isRelationOwner(ClassLoaderResolver clr)(Code)
Convenience method for whether this field is the owner of the relation. If the field has no relation will return true. If the field is in a unidirectional relation will return true. If the field is in a bidirectional relation and has no mapped-by will return true. Otherwise returns false.
Parameters:
  clr - ClassLoader resolver Whether it is the owner side of a relation



isSerialized
public boolean isSerialized()(Code)
Accessor for the serialized tag value serialized tag value



isStatic
public boolean isStatic()(Code)
Convenience method to return if this field/property is static. When the object is not "populated" always returns false; Whether the field/property is static



isTransient
public boolean isTransient()(Code)
Convenience method to return if this field/property is transient. When the object is not "populated" always returns false; Whether the field/property is transient



populate
public synchronized void populate(ClassLoaderResolver clr, Field field, Method method, ClassLoader primary)(Code)
Method to provide the details of the field being represented by this MetaData hence populating certain parts of the MetaData. This is used to firstly provide defaults for attributes that aren't specified in the MetaData, and secondly to report any errors with attributes that have been specifed that are inconsistent with the field being represented. Either a field or a method should be passed in (one or the other) depending on what is being represented by this "member".
Parameters:
  clr - ClassLoaderResolver to use for any class loading
Parameters:
  field - Field that we are representing (if it's a field)
Parameters:
  method - Method(property) that we are representing (if it's a method).
Parameters:
  primary - the primary ClassLoader to use (or null)



setCascadeDelete
public void setCascadeDelete(boolean cascade)(Code)
Mutator for the cascading of delete operations on this field.
Parameters:
  cascade - Whether to cascade at delete



setCascadePersist
public void setCascadePersist(boolean cascade)(Code)
Mutator for the cascading of persist operations on this field.
Parameters:
  cascade - Whether to cascade at persist



setCascadeRefresh
public void setCascadeRefresh(boolean cascade)(Code)
Mutator for the cascading of refresh operations on this field.
Parameters:
  cascade - Whether to cascade at refresh



setCascadeUpdate
public void setCascadeUpdate(boolean cascade)(Code)
Mutator for the cascading of update operations on this field.
Parameters:
  cascade - Whether to cascade at update



setCatalog
public void setCatalog(String catalog)(Code)
Mutator for the catalog name
Parameters:
  catalog - The catalog name



setClassName
void setClassName(String className)(Code)
Convenience method so that ClassMetaData can update the name of the superclass to which this field belongs.
Parameters:
  className - Name of the class



setContainer
public void setContainer(ContainerMetaData conmd)(Code)
Method to set the container for this field (if this field represents a container (collection, map, array).
Parameters:
  conmd - The MetaData of the container for this field.



setDefaultFetchGroup
public void setDefaultFetchGroup(boolean dfg)(Code)
Convenience method to set the DFG if needing setting after construction.
Parameters:
  dfg - DFG string value



setDependent
public void setDependent(boolean dependent)(Code)
Mutator for dependent attribute.
Parameters:
  dependent - Whether it is dependent.



setElementMetaData
final public void setElementMetaData(ElementMetaData elementMetaData)(Code)
Mutator for the element MetaData
Parameters:
  elementMetaData - The elementMetaData to set.



setEmbeddedMetaData
final public void setEmbeddedMetaData(EmbeddedMetaData embeddedMetaData)(Code)
Mutator for the embedded MetaData
Parameters:
  embeddedMetaData - The embeddedMetaData to set.



setFieldId
void setFieldId(int field_id)(Code)
Mutator for the field id. Given package access since updated by ClassMetaData typically. Only used when the field is not an overriding field.
Parameters:
  field_id - Id of the field



setForeignKeyMetaData
final public void setForeignKeyMetaData(ForeignKeyMetaData foreignKeyMetaData)(Code)
Mutator for the foreignKey MetaData
Parameters:
  foreignKeyMetaData - The foreignKeyMetaData to set.



setIndexMetaData
final public void setIndexMetaData(IndexMetaData indexMetaData)(Code)
Mutator for the index MetaData
Parameters:
  indexMetaData - The indexMetaData to set.



setJoinMetaData
final public void setJoinMetaData(JoinMetaData joinMetaData)(Code)
Mutator for the join MetaData
Parameters:
  joinMetaData - The joinMetaData to set.



setKeyMetaData
final public void setKeyMetaData(KeyMetaData keyMetaData)(Code)
Mutator for the key MetaData
Parameters:
  keyMetaData - The keyMetaData to set.



setLoadFetchGroup
public void setLoadFetchGroup(String loadFetchGroup)(Code)
Convenience method to set the load fetch group if required after construction.
Parameters:
  loadFetchGroup - Name of the load fetch group



setMappedBy
public void setMappedBy(String mappedby)(Code)
Mutator for mappedBy
Parameters:
  mappedby - The mapped-by field.



setNotPersistent
public void setNotPersistent()(Code)
Convenience method to mark this field as not-persistent.



setOrderMetaData
final public void setOrderMetaData(OrderMetaData orderMetaData)(Code)
Mutator for the order MetaData
Parameters:
  orderMetaData - The orderMetaData to set.



setOrdered
public void setOrdered()(Code)
Mutator for whether the collection stored in this field is ordered. Only valid until the metadata is initialised.



setPrimaryKey
public void setPrimaryKey()(Code)
Convenience method to make this field (part of) the primary key.



setRelation
protected void setRelation(ClassLoaderResolver clr)(Code)
Convenience method that sets up the relation type of this field, and the reference to any related field when it is bidirectional. If the relation is bidirectional then will also set the other side of the relation (to relate to this side).
Parameters:
  clr - ClassLoader resolver
throws:
  JPOXUserException - If mapped-by doesnt exist at other side



setSchema
public void setSchema(String schema)(Code)
Mutator for the schema name
Parameters:
  schema - The schema name



setSequence
public void setSequence(String sequence)(Code)
If the value-strategy is sequence, the sequence attribute specifies the name of the sequence to use to automatically generate a value for the field.
Parameters:
  sequence - the sequence name



setSerialised
public void setSerialised()(Code)
Convenience method to mark this field to be stored serialised.



setStoreInLob
public void setStoreInLob()(Code)
Mutator for whetehr to store as a "lob".



setTable
public void setTable(String table)(Code)
Mutator for the table name
Parameters:
  table - The table name



setTargetClassName
public void setTargetClassName(String target)(Code)
Mutator for the target class name. Only valid until the metadata is initialised.
Parameters:
  target - Target class name



setTransactional
public void setTransactional()(Code)
Convenience method to mark this field as transactional.



setUniqueMetaData
final public void setUniqueMetaData(UniqueMetaData uniqueMetaData)(Code)
Mutator for the unique MetaData
Parameters:
  uniqueMetaData - The uniqueMetaData to set.



setValueGeneratorName
public void setValueGeneratorName(String generator)(Code)
Mutator for the name of the value generator to use for this strategy.
Parameters:
  generator - Name of value generator



setValueMetaData
final public void setValueMetaData(ValueMetaData valueMetaData)(Code)
Mutator for the value MetaData
Parameters:
  valueMetaData - The valueMetaData to set.



setValueStrategy
public void setValueStrategy(IdentityStrategy valueStrategy)(Code)
The value-strategy attribute specifies the strategy used to generate values for the field. This attribute has the same values and meaning as the strategy attribute in datastoreidentity.
Parameters:
  valueStrategy - the value strategy



toString
public String toString(String prefix, String indent)(Code)
Returns a string representation of the object using a prefix This can be used as part of a facility to output a MetaData file.
Parameters:
  prefix - prefix string
Parameters:
  indent - indent string a string representation of the object.



Fields inherited from org.jpox.metadata.MetaData
final public static String JPOX_VENDOR_NAME(Code)(Java Doc)
protected static Localiser LOCALISER(Code)(Java Doc)
final public static int METADATA_CREATED_STATE(Code)(Java Doc)
final public static int METADATA_INITIALISED_STATE(Code)(Java Doc)
final public static int METADATA_POPULATED_STATE(Code)(Java Doc)
final public static int METADATA_USED_STATE(Code)(Java Doc)
protected Collection extensions(Code)(Java Doc)
protected int metaDataState(Code)(Java Doc)
protected MetaData parent(Code)(Java Doc)

Methods inherited from org.jpox.metadata.MetaData
public void addExtension(String vendor, String key, String value)(Code)(Java Doc)
public void addExtension(String key, String value)(Code)(Java Doc)
public ExtensionMetaData[] getExtensions()(Code)(Java Doc)
public int getNoOfExtensions()(Code)(Java Doc)
public MetaData getParent()(Code)(Java Doc)
public String getValueForExtension(String key)(Code)(Java Doc)
public String[] getValuesForExtension(String key)(Code)(Java Doc)
public boolean hasExtension(String key)(Code)(Java Doc)
public void initialise()(Code)(Java Doc)
public boolean isInitialised()(Code)(Java Doc)
public boolean isPopulated()(Code)(Java Doc)
public boolean isUsed()(Code)(Java Doc)
public void populate()(Code)(Java Doc)
public void removeExtension(String key)(Code)(Java Doc)
public void setInitialised()(Code)(Java Doc)
public void setParent(MetaData md)(Code)(Java Doc)
public void setPopulated()(Code)(Java Doc)
public void setUsed()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String toString(String prefix, String indent)(Code)(Java Doc)

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.