org.exolab.castor.jdo.engine

Class JDOFieldDescriptorImpl

Implemented Interfaces:
FieldDescriptor, JDOFieldDescriptor

public final class JDOFieldDescriptorImpl
extends FieldDescriptorImpl
implements JDOFieldDescriptor

JDO field descriptor. Wraps FieldDescriptorImpl and adds SQL-related information, type conversion, and set/get for JDBC.
Version:
$Revision: 6071 $ $Date: 2005-12-06 14:55:28 -0700 (Tue, 06 Dec 2005) $
Authors:
Assaf Arkin
Ralf Joachim

Constructor Summary

JDOFieldDescriptorImpl(String fieldName, TypeInfo typeInfo, FieldHandler handler, boolean trans, String[] sqlName, int[] sqlType, String manyTable, String[] manyKey, boolean dirtyCheck, boolean readonly)
Construct a new field descriptor for the specified field.

Method Summary

TypeConvertor
getConvertor()
String
getConvertorParam()
String[]
getManyKey()
String
getManyTable()
String[]
getSQLName()
int[]
getSQLType()
boolean
isDirtyCheck()
boolean
isReadonly()
String
toString()

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

toString

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

getClassDescriptor, getContainingClassDescriptor, getFieldName, getFieldType, getHandler, isImmutable, isMultivalued, isRequired, isTransient, setClassDescriptor, setContainingClassDescriptor, setFieldName, setFieldType, setHandler, setImmutable, setMultivalued, setRequired, setTransient

Constructor Details

JDOFieldDescriptorImpl

public JDOFieldDescriptorImpl(String fieldName,
                              TypeInfo typeInfo,
                              FieldHandler handler,
                              boolean trans,
                              String[] sqlName,
                              int[] sqlType,
                              String manyTable,
                              String[] manyKey,
                              boolean dirtyCheck,
                              boolean readonly)
Construct a new field descriptor for the specified field.
Parameters:
fieldName - The field name
typeInfo - The field type information
handler - The field handler (may be null)
trans - True if the field is transient

Method Details

getConvertor

public TypeConvertor getConvertor()
Specified by:
getConvertor in interface JDOFieldDescriptor
See Also:
{@inheritDoc}

getConvertorParam

public String getConvertorParam()
Specified by:
getConvertorParam in interface JDOFieldDescriptor
See Also:
{@inheritDoc}

getManyKey

public String[] getManyKey()
Specified by:
getManyKey in interface JDOFieldDescriptor
See Also:
{@inheritDoc}

getManyTable

public String getManyTable()
Specified by:
getManyTable in interface JDOFieldDescriptor
See Also:
{@inheritDoc}

getSQLName

public String[] getSQLName()
Specified by:
getSQLName in interface JDOFieldDescriptor
See Also:
{@inheritDoc}

getSQLType

public int[] getSQLType()
Specified by:
getSQLType in interface JDOFieldDescriptor
See Also:
{@inheritDoc}

isDirtyCheck

public boolean isDirtyCheck()
Specified by:
isDirtyCheck in interface JDOFieldDescriptor
See Also:
{@inheritDoc}

isReadonly

public boolean isReadonly()
Specified by:
isReadonly in interface JDOFieldDescriptor
See Also:
{@inheritDoc}

toString

public String toString()
Overrides:
toString in interface FieldDescriptorImpl

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