org.exolab.castor.jdo.engine

Class JDOClassDescriptor

Implemented Interfaces:
ClassDescriptor

public class JDOClassDescriptor
extends ClassDescriptorImpl

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).
Version:
$Revision: 7099 $ $Date: 2006-04-10 16:39:24 -0600 (Mon, 10 Apr 2006) $
Authors:
Assaf Arkin
Ralf Joachim

Constructor Summary

JDOClassDescriptor()

Method Summary

protected void
addCacheParam(String key, String value)
protected void
addNamedQuery(String name, String query)
AccessMode
getAccessMode()
Properties
getCacheParams()
JDOFieldDescriptor
getField(String name)
Returns a JDOFieldDescriptor for the field with the name passed.
KeyGeneratorDescriptor
getKeyGeneratorDescriptor()
Get key generator specified for this class.
Map
getNamedQueries()
Get map of named query strings associated with their names.
String
getTableName()
Returns the table name to which this object maps.
protected void
setAccessMode(AccessMode accessMode)
protected void
setKeyGeneratorDescriptor(KeyGeneratorDescriptor keyGenDesc)
Set key generator specified for this class.
protected void
setTableName(String tableName)
String
toString()

Methods inherited from class org.exolab.castor.mapping.loader.ClassDescriptorImpl

addExtended, getDepends, getExtended, getExtends, getFields, getIdentities, getIdentity, getJavaClass, getMapping, setDepends, setExtends, setFields, setIdentities, setJavaClass, setMapping, toString

Constructor Details

JDOClassDescriptor

public JDOClassDescriptor()

Method Details

addCacheParam

protected void addCacheParam(String key,
                             String value)

addNamedQuery

protected void addNamedQuery(String name,
                             String query)

getAccessMode

public AccessMode getAccessMode()

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.
Parameters:
name - Name of the field to return.
Returns:
Field if it exists, otherwise null.

getKeyGeneratorDescriptor

public KeyGeneratorDescriptor getKeyGeneratorDescriptor()
Get key generator specified for this class.
Returns:
Key generator descriptor.

getNamedQueries

public Map getNamedQueries()
Get map of named query strings associated with their names.
Returns:
Map of named query strings associated with their names.

getTableName

public String getTableName()
Returns the table name to which this object maps.
Returns:
Table name

setAccessMode

protected void setAccessMode(AccessMode accessMode)

setKeyGeneratorDescriptor

protected void setKeyGeneratorDescriptor(KeyGeneratorDescriptor keyGenDesc)
Set key generator specified for this class.
Parameters:
keyGenDesc - Key generator descriptor.

setTableName

protected void setTableName(String tableName)

toString

public String toString()
Overrides:
toString in interface ClassDescriptorImpl

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com