org.exolab.castor.jdo.engine
Class JDOClassDescriptor
- ClassDescriptor
public class JDOClassDescriptor
JDO class descriptors. Extends
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).
$Revision: 7099 $ $Date: 2006-04-10 16:39:24 -0600 (Mon, 10 Apr 2006) $
addExtended , getDepends , getExtended , getExtends , getFields , getIdentities , getIdentity , getJavaClass , getMapping , setDepends , setExtends , setFields , setIdentities , setJavaClass , setMapping , toString |
JDOClassDescriptor
public JDOClassDescriptor()
addCacheParam
protected void addCacheParam(String key,
String value)
addNamedQuery
protected void addNamedQuery(String name,
String query)
getCacheParams
public Properties getCacheParams()
getField
public JDOFieldDescriptor getField(String name)
Returns a JDOFieldDescriptor for the field with the name passed. null
if named field does not exist.
name
- Name of the field to return.
- Field if it exists, otherwise
null
.
getKeyGeneratorDescriptor
public KeyGeneratorDescriptor getKeyGeneratorDescriptor()
Get key generator specified for this class.
- Key generator descriptor.
getNamedQueries
public Map getNamedQueries()
Get map of named query strings associated with their names.
- Map of named query strings associated with their names.
getTableName
public String getTableName()
Returns the table name to which this object maps.
setAccessMode
protected void setAccessMode(AccessMode accessMode)
setKeyGeneratorDescriptor
protected void setKeyGeneratorDescriptor(KeyGeneratorDescriptor keyGenDesc)
Set key generator specified for this class.
keyGenDesc
- Key generator descriptor.
setTableName
protected void setTableName(String tableName)
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com