org.exolab.castor.jdo.engine
Class JDOFieldDescriptorImpl

java.lang.Object
  extended byorg.exolab.castor.mapping.loader.AbstractFieldDescriptor
      extended byorg.exolab.castor.mapping.loader.FieldDescriptorImpl
          extended byorg.exolab.castor.jdo.engine.JDOFieldDescriptorImpl
All Implemented Interfaces:
org.exolab.castor.mapping.FieldDescriptor, JDOFieldDescriptor

public final class JDOFieldDescriptorImpl
extends org.exolab.castor.mapping.loader.FieldDescriptorImpl
implements JDOFieldDescriptor

JDO field descriptor. Wraps FieldDescriptorImpl and adds SQL-related information, type conversion, and set/get for JDBC.

Version:
$Revision: 7272 $ $Date: 2005-12-06 14:55:28 -0700 (Tue, 06 Dec 2005) $
Author:
Assaf Arkin, Ralf Joachim

Constructor Summary
JDOFieldDescriptorImpl(java.lang.String fieldName, org.exolab.castor.mapping.loader.TypeInfo typeInfo, org.exolab.castor.mapping.FieldHandler handler, boolean trans, java.lang.String[] sqlName, int[] sqlType, java.lang.String manyTable, java.lang.String[] manyKey, boolean dirtyCheck, boolean readonly)
          Construct a new field descriptor for the specified field.
 
Method Summary
 org.exolab.castor.mapping.TypeConvertor getConvertor()
          Returns the convertor from the field type to an external type.
 java.lang.String[] getManyKey()
           
 java.lang.String getManyTable()
           
 java.lang.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()
           
 java.lang.String toString()
           
 
Methods inherited from class org.exolab.castor.mapping.loader.AbstractFieldDescriptor
getClassDescriptor, getContainingClassDescriptor, getFieldName, getFieldType, getHandler, isIdentity, isImmutable, isMultivalued, isRequired, isTransient, setClassDescriptor, setContainingClassDescriptor, setFieldName, setFieldType, setHandler, setIdentity, setImmutable, setMultivalued, setRequired, setTransient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.exolab.castor.mapping.FieldDescriptor
getClassDescriptor, getContainingClassDescriptor, getFieldName, getFieldType, getHandler, isImmutable, isMultivalued, isRequired, isTransient, setContainingClassDescriptor
 

Constructor Detail

JDOFieldDescriptorImpl

public JDOFieldDescriptorImpl(java.lang.String fieldName,
                              org.exolab.castor.mapping.loader.TypeInfo typeInfo,
                              org.exolab.castor.mapping.FieldHandler handler,
                              boolean trans,
                              java.lang.String[] sqlName,
                              int[] sqlType,
                              java.lang.String manyTable,
                              java.lang.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 Detail

getConvertor

public org.exolab.castor.mapping.TypeConvertor getConvertor()
Description copied from interface: JDOFieldDescriptor
Returns the convertor from the field type to an external type.

Specified by:
getConvertor in interface JDOFieldDescriptor
Returns:
Convertor from field type
See Also:
{@inheritDoc}

getSQLName

public java.lang.String[] getSQLName()
Description copied from interface: JDOFieldDescriptor
Returns the SQL name of this field.

Specified by:
getSQLName in interface JDOFieldDescriptor
Returns:
The SQL name of this field
See Also:
{@inheritDoc}

getSQLType

public int[] getSQLType()
Description copied from interface: JDOFieldDescriptor
Returns the SQL type of this field.

Specified by:
getSQLType in interface JDOFieldDescriptor
Returns:
The SQL type of this field
See Also:
{@inheritDoc}

getManyTable

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

getManyKey

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

isDirtyCheck

public boolean isDirtyCheck()
Description copied from interface: JDOFieldDescriptor
Returns true if dirty checking is required for this field.

Specified by:
isDirtyCheck in interface JDOFieldDescriptor
Returns:
True if dirty checking required
See Also:
{@inheritDoc}

isReadonly

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

toString

public java.lang.String toString()


Copyright 2008 null. All Rights Reserved.