|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.metadata.MetaData
org.jpox.metadata.ExtendableMetaData
org.jpox.metadata.AbstractClassMetaData
Abstract representation of the MetaData of a class/interface. Has a parent PackageMetaData that can contain the metadata for several classes/interfaces. Is extended by ClassMetaData and InterfaceMetaData.
Field Summary | |
protected int[] |
allFieldNumbers
Field numbers of all fields (inc superclasses). |
protected java.lang.String |
catalog
Catalog name (O/R mapping). |
protected boolean[] |
defaultFetchGroupFieldFlags
Flags of the default fetch group state for all fields. |
protected int[] |
defaultFetchGroupFieldNumbers
Field numbers of the default fetch group fields (inc superclasses). |
protected boolean |
detachable
detachable tag value. |
protected boolean |
embeddedOnly
embedded-only tag value. |
protected FetchGroupMetaData[] |
fetchGroupMetaData
A contained fetch-group element indicates that the named group is to be included in the group being defined. |
protected java.util.Map |
fetchGroupMetaDataByName
|
protected java.util.List |
fetchGroups
List of fetch-group |
protected java.util.Map |
fieldNumbersByName
Field numbers mapped by the name of the field. |
protected ForeignKeyMetaData[] |
foreignKeyMetaData
ForeignKeyMetaData |
protected java.util.List |
foreignKeys
List of foreign-key |
protected java.lang.String |
fullName
Full name. |
protected IdentityMetaData |
identityMetaData
Identity MetaData |
protected boolean |
identitySpecified
Flag whether the identity was specified by the user. |
protected IdentityType |
identityType
Identity-type tag value. |
protected java.util.List |
indexes
List of indexes |
protected IndexMetaData[] |
indexMetaData
IndexMetaData |
protected InheritanceMetaData |
inheritanceMetaData
Inheritance MetaData |
protected JoinMetaData[] |
joinMetaData
JoinMetaData |
protected java.util.List |
joins
List of joins |
protected AbstractPropertyMetaData[] |
managedFields
JDO managed fields. |
protected java.lang.String |
name
Class name |
protected boolean[] |
nonPrimaryKeyFieldFlags
Field numbers of the non-primary key fields (inc superclasses). |
protected int[] |
nonPrimaryKeyFieldNumbers
Field numbers of the non-primary key fields (inc superclasses). |
protected int |
noOfInheritedManagedFields
No of managed fields in superclasses, that are inherited by this class. |
protected java.lang.String |
objectidClass
objectid-class tag value. |
protected AbstractPropertyMetaData[] |
overriddenFields
Fields for superclasse sthat are overridden in this class. |
protected AbstractClassMetaData |
pcSuperclassMetaData
Class MetaData for the Persistence-Capable superclass (if any) |
protected int[] |
persistenceCapableFieldNumbers
Field numbers of the PersistenceCapable fields (inc superclasses). |
protected java.lang.String |
persistenceCapableSuperclass
persistence-capable-superclas tag value. |
protected ClassPersistenceModifier |
persistenceModifier
persistence-modifier tag value. |
protected boolean |
persistentInterfaceImplNeedingTableFromSubclass
Implementation of "persistent-interface" needing table setting from subclass. |
protected boolean |
persistentInterfaceImplNeedingTableFromSuperclass
Implementation of "persistent-interface" needing table setting from superclass. |
protected int[] |
primaryKeyFieldNumbers
Field numbers of the primary key fields (inc superclasses). |
protected PrimaryKeyMetaData |
primaryKeyMetaData
PrimaryKey MetaData |
protected java.util.List |
properties
List of properties |
protected AbstractPropertyMetaData[] |
propertyMetaData
convenience PropertyMetaData |
protected java.util.List |
queries
List of named queries |
protected boolean |
requiresExtent
requires-extent tag value. |
protected java.lang.String |
schema
Schema name (O/R mapping). |
protected boolean[] |
secondClassMutableFieldFlags
Flags of the second class mutable state for all fields. |
protected int[] |
secondClassMutableFieldNumbers
Field numbers of the second class mutable fields (inc superclasses). |
protected java.lang.String |
table
Table name (O/R mapping). |
protected java.util.List |
uniqueConstraints
List of uniqueConstraints |
protected UniqueMetaData[] |
uniqueMetaData
UniqueMetaData |
protected java.util.List |
unmappedColumns
The columns that are present in the datastore yet not mapped to fields in this class. |
protected boolean |
usesSingleFieldIdentityClass
if this PersistenceCapable class uses SingleFieldIdentity |
protected VersionMetaData |
versionMetaData
Version MetaData |
Fields inherited from class org.jpox.metadata.ExtendableMetaData |
extensions, JPOX_VENDOR_NAME |
Fields inherited from class org.jpox.metadata.MetaData |
LOCALISER, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent |
Constructor Summary | |
|
AbstractClassMetaData(InterfaceMetaData imd,
java.lang.String implClassName,
boolean copyFields)
Constructor for creating the ClassMetaData for an implementation of a "persistent-interface". |
protected |
AbstractClassMetaData(PackageMetaData parent,
java.lang.String name,
java.lang.String identityType,
java.lang.String objectidClass,
java.lang.String requiresExtent,
java.lang.String detachable,
java.lang.String embeddedOnly,
java.lang.String modifier,
java.lang.String persistenceCapableSuperclass,
java.lang.String catalog,
java.lang.String schema,
java.lang.String table)
Constructor. |
Method Summary | |
void |
addFetchGroup(FetchGroupMetaData fgmd)
Method to add a fetch-group to this class. |
void |
addForeignKey(ForeignKeyMetaData fkmd)
Method to add an foreign-key to this class. |
void |
addIndex(IndexMetaData idxmd)
Method to add an index to this class. |
void |
addJoin(JoinMetaData jnmd)
Method to add a join to this class. |
protected void |
addPropertiesNotInMetaData(java.lang.Class cls)
Add PropertyMetaData of properties not declared in MetaData |
void |
addProperty(AbstractPropertyMetaData pmd)
Method to add a property (field) to this interface. |
void |
addQuery(QueryMetaData qmd)
Method to add a named query to this class. |
void |
addUniqueConstraint(UniqueMetaData unimd)
Method to add a unique constraint to this class. |
void |
addUnmappedColumn(ColumnMetaData colmd)
Method to add an unmapped column. |
protected void |
checkInitialised()
Method to check whether the Meta-Data has been initialised. |
protected void |
checkPopulated()
Method to check whether the Meta-Data has been populated. |
protected void |
copyFieldsFromInterface(InterfaceMetaData imd)
Convenience method to copy the fields from an existing interface |
protected void |
determineIdentity()
Determines the identity based on MetaData defaults or user defined MetaData |
protected void |
determineInheritanceMetaData()
Impose a default inheritance strategy to match the JDO 2 spec |
protected void |
determineObjectIdClass(ClassLoaderResolver clr)
Determine the object id class |
protected void |
determineSuperClassName(ClassLoaderResolver clr,
java.lang.Class cls)
Determine the super PersistenceCapable class. |
int |
getAbsoluteFieldNumberForRelativeFieldNumber(int relativeFieldNo)
Accessor for the Absolute field number for a relative field number |
int[] |
getAllFieldNumbers()
Accessor for all field numbers. |
AbstractClassMetaData |
getBaseAbstractClassMetaData()
Convenience accessor for the AbstractClassMetaData of the base object in this hierarchy. |
java.lang.String |
getCatalog()
Accessor for the catalog name. |
boolean[] |
getDefaultFetchGroupFieldFlags()
Accessor for the flags of the default fetch group fields (inc superclass fields). |
int[] |
getDefaultFetchGroupFieldNumbers()
Accessor for the absolute field numbers of the default fetch group fields (inc superclasses). |
DiscriminatorStrategy |
getDiscriminatorStrategy()
Convenience accessor for the discriminator strategy applying to this class. |
FetchGroupMetaData[] |
getFetchGroupMetaData()
Accessor for all MetaData defined for fetch groups for this class. |
FetchGroupMetaData[] |
getFetchGroupMetaData(java.util.Collection groupNames)
Accessor for fetch group metadata for the specified groups (if present). |
FetchGroupMetaData |
getFetchGroupMetaData(java.lang.String groupname)
Accessor for the fetch group metadata for the group specified. |
AbstractPropertyMetaData |
getField(int index)
Accessor for the metadata of a field. |
AbstractPropertyMetaData |
getField(java.lang.String name)
Accessor for the Meta-Data for a field. |
int |
getFieldNumber(java.lang.String field_name)
Accessor for the position of the field with the specified name. |
int |
getFieldNumberAbsolute(java.lang.String field_name)
Accessor for the absolute position of the field with the specified name. |
int |
getFieldNumberAbsolute(java.lang.String class_name,
java.lang.String field_name)
Accessor for the absolute position of the field with the specified name. |
ForeignKeyMetaData[] |
getForeignKeyMetaData()
Accessor for foreignKeyMetaData |
java.lang.String |
getFullClassName()
Accessor for the full class name. |
IdentityMetaData |
getIdentityMetaData()
Accessor for identityMetaData |
IdentityType |
getIdentityType()
Accessor for the identity-type. |
IndexMetaData[] |
getIndexMetaData()
Accessor for indexMetaData |
InheritanceMetaData |
getInheritanceMetaData()
Accessor for inheritanceMetaData |
JoinMetaData[] |
getJoinMetaData()
Accessor for joinMetaData |
AbstractPropertyMetaData |
getManagedField(int position)
Accessor for a managed field in this class. |
AbstractPropertyMetaData |
getManagedFieldAbsolute(int abs_position)
Accessor for a managed field including superclass fields. |
protected AbstractPropertyMetaData |
getManagedFieldAbsoluteInternal(int abs_position)
Internal method to get the field for an absolute field number. |
AbstractPropertyMetaData[] |
getManagedFields()
Accessor for the managed fields in this class (not including superclass). |
MetaDataManager |
getMetaDataManager()
Convenience accessor for the MetaData Manager in use. |
java.lang.String |
getName()
Accessor for the class name. |
boolean[] |
getNonPrimaryKeyFieldFlags()
Accessor for the flags of the non primary key fields (inc superclass fields). |
int[] |
getNonPrimaryKeyFieldNumbers()
Accessor for the field numbers of the non primary key fields (inc superclass fields). |
int |
getNoOfFields()
Accessor for the number of fields. |
int |
getNoOfInheritedManagedFields()
Accessor for the number of inherited managed fields in superclasses. |
int |
getNoOfManagedFields()
Accessor for the number of JDO managed fields. |
int |
getNoOfOverriddenFields()
Accessor for the number of JDO overridden fields. |
int |
getNoOfPrimaryKeyFields()
Accessor for the number of primary key fields. |
int |
getNoOfProperties()
Accessor for the number of properties |
int |
getNoOfQueries()
Accessor for the number of named queries. |
java.lang.String |
getObjectidClass()
Accessor for the objectid-class tag value. |
AbstractPropertyMetaData |
getOverriddenField(int position)
Accessor for an overridden field in this class. |
AbstractPropertyMetaData |
getOverriddenField(java.lang.String name)
Accessor for an overridden field with the specified name. |
AbstractPropertyMetaData[] |
getOverriddenFields()
Accessor for the overridden fields in this class. |
PackageMetaData |
getPackageMetaData()
Convenience accessor for the parent Package MetaData. |
java.lang.String |
getPackageName()
Convenience accessor for the package name. |
int[] |
getPersistenceCapableFieldNumbers()
Accessor for the absolute field numbers of the PersistenceCapable fields |
java.lang.String |
getPersistenceCapableSuperclass()
Accessor for the persistence-capable-superclass tag value. |
ClassPersistenceModifier |
getPersistenceModifier()
Accessor for the persistence-modifier |
int[] |
getPrimaryKeyFieldNumbers()
Accessor for the field numbers of the primary key fields. |
PrimaryKeyMetaData |
getPrimaryKeyMetaData()
Accessor for primaryKeyMetaData |
QueryMetaData |
getQuery(int index)
Accessor for the metadata of a named query. |
java.lang.String |
getSchema()
Accessor for the schema name. |
boolean[] |
getSecondClassMutableFieldFlags()
Accessor for the flags of the second class mutable fields (inc superclass fields). |
int[] |
getSecondClassMutableFieldNumbers()
Accessor for the absolute field numbers of the second class mutable fields |
AbstractClassMetaData |
getSuperAbstractClassMetaData()
Accessor for the Meta-Data for the superclass of this class. |
java.lang.String |
getTable()
Accessor for the table name. |
UniqueMetaData[] |
getUniqueMetaData()
Accessor for UniqueMetaData |
java.util.List |
getUnmappedColumns()
Accessor for the unmapped columns require for the datastore table. |
VersionMetaData |
getVersionMetaData()
Accessor for versionMetaData |
boolean |
hasField(java.lang.String fieldName)
Method to check if a field exists in this classes definition. |
protected void |
inheritDetachableSettings()
Inherit detach settings from super classes. |
protected void |
inheritIdentity()
Inherit the identity definition from super classes. |
void |
initialise()
Method to initialise the object, creating internal convenience arrays. |
boolean |
isDetachable()
Accessor for the detachable tag value. |
boolean |
isEmbeddedOnly()
Accessor for the embedded-only tag value. |
boolean |
isRequiresExtent()
Accessor for the requires-extent tag value. |
boolean |
isSameOrAncestorOf(AbstractClassMetaData cmd)
Check if the argument cmd is the same as this or a descedent. |
protected java.lang.Class |
loadClass(ClassLoaderResolver clr)
Load the persistent interface/class |
void |
mergeORMData(AbstractClassMetaData ormCmd)
Method to merge in the associated metadata from the ORM definition |
protected PropertyMetaData |
newDefaultedProperty(java.lang.String name)
Utility to add a defaulted PropertyMetaData to the class. |
abstract void |
populate(ClassLoaderResolver clr)
Method to provide the details of the class being represented by this MetaData. |
protected void |
populatePropertyMetaData(ClassLoaderResolver clr,
java.lang.Class cls)
Populate PropertyMetaData |
void |
setIdentityMetaData(IdentityMetaData identityMetaData)
Mutator for the identity MetaData. |
void |
setInheritanceMetaData(InheritanceMetaData inheritanceMetaData)
Mutator for the inheritance MetaData. |
void |
setPrimaryKeyMetaData(PrimaryKeyMetaData primaryKeyMetaData)
Mutator for the PrimaryKey MetaData. |
void |
setTable(java.lang.String table_name)
Mutator for the table name. |
void |
setVersionMetaData(VersionMetaData versionMetaData)
Mutator for the Version MetaData. |
boolean |
usesSingleFieldIdentityClass()
Whether this PersistenceCapable class uses SingleFieldIdentity |
protected void |
validateDeprecatedMetaData()
Check usage of deprecated MetaData |
protected void |
validateUserInputForIdentity()
Check for conflicts on super class and this class MetaData identity |
protected void |
validateUserInputForInheritanceMetaData()
Check if the inheritance MetaData is credible |
Methods inherited from class org.jpox.metadata.ExtendableMetaData |
addExtension, addExtension, getExtension, getExtensions, getNoOfExtensions, getValueForExtension, getValuesForExtension, getValuesForExtensionStartingWith, hasExtension, removeExtension, toString, toString |
Methods inherited from class org.jpox.metadata.MetaData |
getParent, isCreated, isInitialised, isPopulated, isUsed, populate, setInitialised, setPopulated, setUsed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.List queries
protected JoinMetaData[] joinMetaData
protected IndexMetaData[] indexMetaData
protected ForeignKeyMetaData[] foreignKeyMetaData
protected UniqueMetaData[] uniqueMetaData
protected IdentityType identityType
protected final java.lang.String name
protected ClassPersistenceModifier persistenceModifier
protected java.lang.String persistenceCapableSuperclass
protected java.lang.String objectidClass
protected boolean requiresExtent
protected boolean detachable
protected boolean embeddedOnly
protected java.lang.String catalog
protected java.lang.String schema
protected java.lang.String table
protected final java.lang.String fullName
protected VersionMetaData versionMetaData
protected IdentityMetaData identityMetaData
protected boolean identitySpecified
protected InheritanceMetaData inheritanceMetaData
protected PrimaryKeyMetaData primaryKeyMetaData
protected java.util.List properties
protected java.util.List unmappedColumns
protected java.util.List joins
protected java.util.List fetchGroups
protected java.util.List foreignKeys
protected java.util.List indexes
protected java.util.List uniqueConstraints
protected FetchGroupMetaData[] fetchGroupMetaData
protected java.util.Map fetchGroupMetaDataByName
protected AbstractClassMetaData pcSuperclassMetaData
protected AbstractPropertyMetaData[] propertyMetaData
protected AbstractPropertyMetaData[] managedFields
protected AbstractPropertyMetaData[] overriddenFields
protected java.util.Map fieldNumbersByName
protected int[] allFieldNumbers
protected int[] primaryKeyFieldNumbers
protected int[] nonPrimaryKeyFieldNumbers
protected boolean[] nonPrimaryKeyFieldFlags
protected int[] defaultFetchGroupFieldNumbers
protected boolean[] defaultFetchGroupFieldFlags
protected int[] secondClassMutableFieldNumbers
protected boolean[] secondClassMutableFieldFlags
protected int[] persistenceCapableFieldNumbers
protected int noOfInheritedManagedFields
protected boolean usesSingleFieldIdentityClass
protected transient boolean persistentInterfaceImplNeedingTableFromSuperclass
protected transient boolean persistentInterfaceImplNeedingTableFromSubclass
Constructor Detail |
protected AbstractClassMetaData(PackageMetaData parent, java.lang.String name, java.lang.String identityType, java.lang.String objectidClass, java.lang.String requiresExtent, java.lang.String detachable, java.lang.String embeddedOnly, java.lang.String modifier, java.lang.String persistenceCapableSuperclass, java.lang.String catalog, java.lang.String schema, java.lang.String table)
parent
- The package to which this class/interface belongsname
- Name of classidentityType
- identity-type flagobjectidClass
- Primary key class namerequiresExtent
- Whether the class requires an extentdetachable
- Whether the class can be detachedembeddedOnly
- embedded-only tagmodifier
- persistence-modifier tagcatalog
- The catalog name default for this classschema
- The schema name default for this classtable
- RDBMS table to store the class inpublic AbstractClassMetaData(InterfaceMetaData imd, java.lang.String implClassName, boolean copyFields)
imd
- MetaData for the "persistent-interface"implClassName
- Name of the implementation classcopyFields
- Whether to copy the fields of the interface tooMethod Detail |
protected void copyFieldsFromInterface(InterfaceMetaData imd)
imd
- The class/interface that we copy fromprotected void checkInitialised()
javax.jdo.JDOFatalInternalException
- Thrown if the Meta-Data hasn't been initialised.protected void checkPopulated() throws javax.jdo.JDOFatalInternalException
javax.jdo.JDOFatalInternalException
- Thrown if the Meta-Data hasn't been populated.protected java.lang.Class loadClass(ClassLoaderResolver clr)
clr
- the ClassLoader
protected void determineIdentity()
protected void addPropertiesNotInMetaData(java.lang.Class cls)
cls
- This classprotected void determineSuperClassName(ClassLoaderResolver clr, java.lang.Class cls)
clr
- The ClassLoaderResolvercls
- This class
InvalidMetaDataException
- if the declared persistence-capable-superclass
super class
cannot be loaded by the clr
.
InvalidMetaDataException
- if the declared persistence-capable-superclass
has
no reachable MetaDataprotected void validateUserInputForIdentity()
InvalidMetaDataException
- if the user tries to overwrite a super class identity / strategypublic AbstractClassMetaData getBaseAbstractClassMetaData()
protected void inheritDetachableSettings()
protected void inheritIdentity()
InvalidMetaDataException
- if the MetaData of this class conflicts with super classes definitionprotected PropertyMetaData newDefaultedProperty(java.lang.String name)
name
- name of field
public void mergeORMData(AbstractClassMetaData ormCmd)
ormCmd
- The ORM Class definitionprotected void populatePropertyMetaData(ClassLoaderResolver clr, java.lang.Class cls)
clr
- The ClassLoadercls
- This class
InvalidMetaDataException
- if the Class for a declared type in a field cannot be loaded by the clr
InvalidMetaDataException
- if a field declared in the MetaData does not exist in the Classprotected void validateUserInputForInheritanceMetaData()
InvalidMetaDataException
- if the strategy is superclass-table, yet there are no super class
InvalidMetaDataException
- if the strategy is superclass-table, yet the super class has not
specified a discriminator
InvalidMetaDataException
- if the strategy is superclass-table and discriminator is "value-map",
yet no value for the discriminator has been specifiedpublic AbstractClassMetaData getSuperAbstractClassMetaData()
public final DiscriminatorStrategy getDiscriminatorStrategy()
protected void determineObjectIdClass(ClassLoaderResolver clr)
clr
- the ClassLoader
InvalidMetaDataException
- if the class 0 or more that one primary key field and no objectid-class
has been declared in the MetaData
InvalidMetaDataException
- if the objectid-class
has not been set and the primary key field does
not match a supported SingleFieldIdentity
InvalidMetaDataException
- if the identity type is APPLICATION but not primary key fields have been set
InvalidMetaDataException
- if the objectid-class
cannot be loaded by the clr
public abstract void populate(ClassLoaderResolver clr)
This method must be invoked by subclasses during populate operations
clr
- ClassLoaderResolver to use in loading any classespublic void initialise()
initialise
in class MetaData
protected void determineInheritanceMetaData()
protected void validateDeprecatedMetaData()
InvalidMetaDataException
- if deprecated MetaData is usedpublic int getNoOfQueries()
public QueryMetaData getQuery(int index)
index
- query index
public final VersionMetaData getVersionMetaData()
public final JoinMetaData[] getJoinMetaData()
public final FetchGroupMetaData[] getFetchGroupMetaData()
public java.lang.String getFullClassName()
public FetchGroupMetaData[] getFetchGroupMetaData(java.util.Collection groupNames)
groupNames
- Names of the fetch groups
public IdentityType getIdentityType()
public final IndexMetaData[] getIndexMetaData()
public final ForeignKeyMetaData[] getForeignKeyMetaData()
public final UniqueMetaData[] getUniqueMetaData()
public final java.util.List getUnmappedColumns()
public int getNoOfProperties()
public java.lang.String getName()
public java.lang.String getObjectidClass()
public java.lang.String getCatalog()
public java.lang.String getSchema()
public java.lang.String getTable()
public boolean isRequiresExtent()
public boolean isDetachable()
public boolean isEmbeddedOnly()
public final IdentityMetaData getIdentityMetaData()
public final InheritanceMetaData getInheritanceMetaData()
public final PrimaryKeyMetaData getPrimaryKeyMetaData()
public MetaDataManager getMetaDataManager()
public PackageMetaData getPackageMetaData()
public java.lang.String getPackageName()
public int getNoOfFields()
public AbstractPropertyMetaData getField(int index)
index
- field index relative to this class only starting from 0
public ClassPersistenceModifier getPersistenceModifier()
public java.lang.String getPersistenceCapableSuperclass()
public boolean isSameOrAncestorOf(AbstractClassMetaData cmd)
cmd
- the AbstractClassMetaData to be verify if this is an ancestor
public FetchGroupMetaData getFetchGroupMetaData(java.lang.String groupname)
groupname
- Name of the fetch group
public boolean hasField(java.lang.String fieldName)
fieldName
- Nme of field
public AbstractPropertyMetaData getField(java.lang.String name)
name
- the name of the field
public int getNoOfManagedFields()
public AbstractPropertyMetaData[] getManagedFields()
public AbstractPropertyMetaData getManagedField(int position)
position
- The position of the managed field. 0 = first in the class
public int getNoOfOverriddenFields()
public AbstractPropertyMetaData[] getOverriddenFields()
public AbstractPropertyMetaData getOverriddenField(int position)
position
- The position of the overridden field.
public AbstractPropertyMetaData getOverriddenField(java.lang.String name)
name
- Name of the field
public int getNoOfInheritedManagedFields()
public AbstractPropertyMetaData getManagedFieldAbsolute(int abs_position)
abs_position
- The position of the managed field including the
superclass. Fields are numbered from 0 in the root superclass.
protected AbstractPropertyMetaData getManagedFieldAbsoluteInternal(int abs_position)
abs_position
- The position of the managed field including the
superclass. Fields are numbered from 0 in the root superclass.
public int getAbsoluteFieldNumberForRelativeFieldNumber(int relativeFieldNo)
relativeFieldNo
- The relative field number
public int getFieldNumber(java.lang.String field_name)
field_name
- Name of the field
public int getFieldNumberAbsolute(java.lang.String field_name)
field_name
- Name of the field
public int getFieldNumberAbsolute(java.lang.String class_name, java.lang.String field_name)
field_name
is of type given by class_name
.
class_name
- Name of the classfield_name
- Name of the field
public int getNoOfPrimaryKeyFields()
public int[] getAllFieldNumbers()
public int[] getPrimaryKeyFieldNumbers()
public int[] getNonPrimaryKeyFieldNumbers()
public boolean[] getNonPrimaryKeyFieldFlags()
public int[] getDefaultFetchGroupFieldNumbers()
public boolean[] getDefaultFetchGroupFieldFlags()
public int[] getSecondClassMutableFieldNumbers()
public int[] getPersistenceCapableFieldNumbers()
public boolean[] getSecondClassMutableFieldFlags()
public boolean usesSingleFieldIdentityClass()
public void addQuery(QueryMetaData qmd)
qmd
- Meta-Data for the query.public void addIndex(IndexMetaData idxmd)
idxmd
- Meta-Data for the index.public void addForeignKey(ForeignKeyMetaData fkmd)
fkmd
- Meta-Data for the foreign-key.public void addUniqueConstraint(UniqueMetaData unimd)
unimd
- Meta-Data for the unique constraint.public final void addUnmappedColumn(ColumnMetaData colmd)
colmd
- The metadata for the unmapped columnpublic void addProperty(AbstractPropertyMetaData pmd)
pmd
- Propertypublic void addFetchGroup(FetchGroupMetaData fgmd)
fgmd
- Meta-Data for the fetch-group.public void addJoin(JoinMetaData jnmd)
jnmd
- Meta-Data for the join.public final void setVersionMetaData(VersionMetaData versionMetaData)
versionMetaData
- The versionMetaData to set.public final void setIdentityMetaData(IdentityMetaData identityMetaData)
identityMetaData
- The identityMetaData to set.public final void setInheritanceMetaData(InheritanceMetaData inheritanceMetaData)
inheritanceMetaData
- The inheritanceMetaData to set.public final void setPrimaryKeyMetaData(PrimaryKeyMetaData primaryKeyMetaData)
primaryKeyMetaData
- The PrimaryKey MetaData to set.public final void setTable(java.lang.String table_name)
table_name
- Name of the table
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |