org.exolab.castor.jdo.engine

Class JDOFieldDescriptor

Implemented Interfaces:
FieldDescriptor

public class JDOFieldDescriptor
extends FieldDescriptorImpl

JDO field descriptor. Wraps FieldDescriptor and adds SQL-related information, type conversion, and set/get for JDBC.
Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:17 $
Author:
Assaf Arkin

Constructor Summary

JDOFieldDescriptor(FieldDescriptorImpl fieldDesc, String[] sqlName, int[] sqlType, boolean dirtyCheck, String manyTable, String[] manyKey, boolean readonly)
Construct a new field descriptor for the specified field.

Method Summary

String[]
getManyKey()
String
getManyTable()
String[]
getSQLName()
Returns the SQL name of this field.
int[]
getSQLType()
Returns the SQL type of this field.
boolean
isDirtyCheck()
Returns true if dirty checking is required for this field.
boolean
isReadonly()
String
toString()

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

getClassDescriptor, getContainingClassDescriptor, getConvertor, getConvertorParam, getFieldName, getFieldType, getHandler, isImmutable, isMultivalued, isRequired, isTransient, setClassDescriptor, setContainingClassDescriptor, setHandler, setRequired, toString

Constructor Details

JDOFieldDescriptor

public JDOFieldDescriptor(FieldDescriptorImpl fieldDesc,
                          String[] sqlName,
                          int[] sqlType,
                          boolean dirtyCheck,
                          String manyTable,
                          String[] manyKey,
                          boolean readonly)
            throws MappingException
Construct a new field descriptor for the specified field. This is a JDO field descriptor wrapping a field descriptor and adding JDO related properties and methods.
Parameters:
fieldDesc - The field descriptor
Throws:
MappingException - Invalid mapping information

Method Details

getManyKey

public String[] getManyKey()

getManyTable

public String getManyTable()

getSQLName

public String[] getSQLName()
Returns the SQL name of this field.
Returns:
The SQL name of this field

getSQLType

public int[] getSQLType()
Returns the SQL type of this field.
Returns:
The SQL type of this field

isDirtyCheck

public boolean isDirtyCheck()
Returns true if dirty checking is required for this field.
Returns:
True if dirty checking required

isReadonly

public boolean isReadonly()

toString

public String toString()
Overrides:
toString in interface FieldDescriptorImpl

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