public class JDOClassDescriptor extends ClassDescriptorImpl
ClassDescriptor to include the
table name and other SQL-related information. All fields are of
type JDOFieldDescriptor, identity field is not included in the
returned field list, and contained fields are flattened out for
efficiency (thus all fields are directly accessible)._fields, _identities| Constructor and Description |
|---|
JDOClassDescriptor(ClassDescriptor clsDesc,
KeyGeneratorDescriptor keyGenDesc) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNamedQuery(java.lang.String name,
java.lang.String namedQuery)
Adds a new named query for the given name for future usage (through Database.getNamedQuery()).
|
java.util.Properties |
getCacheParams() |
JDOFieldDescriptor |
getField(java.lang.String name)
Returns a JDOFieldDescriptor for the field with the name passed.
|
java.lang.String[] |
getIdentityColumnNames() |
KeyGeneratorDescriptor |
getKeyGeneratorDescriptor()
Returns the key generator specified for this class.
|
java.lang.String |
getNamedQuery(java.lang.String name)
Returns the OQL statement from a named query instance associated with the given name
|
java.lang.String |
getTableName()
Returns the table name to which this object maps.
|
java.lang.String |
toString() |
addExtendedBy, checkValidity, getAccessMode, getDepends, getExtendedBy, getExtends, getFields, getIdentities, getIdentity, getJavaClass, getMapping, isExtended, isExtendingpublic JDOClassDescriptor(ClassDescriptor clsDesc, KeyGeneratorDescriptor keyGenDesc) throws MappingException
MappingExceptionpublic java.lang.String getTableName()
public java.util.Properties getCacheParams()
public JDOFieldDescriptor getField(java.lang.String name)
name - The name of the field to returnpublic KeyGeneratorDescriptor getKeyGeneratorDescriptor()
public java.lang.String[] getIdentityColumnNames()
public java.lang.String toString()
toString in class ClassDescriptorImplpublic java.lang.String getNamedQuery(java.lang.String name)
name - Name of the named querypublic void addNamedQuery(java.lang.String name,
java.lang.String namedQuery)
throws QueryException
name - Name of the named query.namedQuery - Named query to be associated with the given nameQueryException - If there's already a named query for the given nameIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com