org.exolab.castor.jdo.engine
Class JDOFieldDescriptor

java.lang.Object
  extended by org.exolab.castor.mapping.loader.FieldDescriptorImpl
      extended by org.exolab.castor.jdo.engine.JDOFieldDescriptor
All Implemented Interfaces:
FieldDescriptor

public class JDOFieldDescriptor
extends FieldDescriptorImpl

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

Version:
$Revision: 1.4 $ $Date: 2005/06/16 12:14:28 $
Author:
Assaf Arkin

Constructor Summary
JDOFieldDescriptor(FieldDescriptorImpl fieldDesc, java.lang.String[] sqlName, int[] sqlType, boolean dirtyCheck, java.lang.String manyTable, java.lang.String[] manyKey, boolean readonly)
          Construct a new field descriptor for the specified field.
 
Method Summary
 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.FieldDescriptorImpl
getClassDescriptor, getContainingClassDescriptor, getConvertor, getConvertorParam, getFieldName, getFieldType, getHandler, isImmutable, isMultivalued, isRequired, isTransient, setContainingClassDescriptor, setRequired, setTransient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDOFieldDescriptor

public JDOFieldDescriptor(FieldDescriptorImpl fieldDesc,
                          java.lang.String[] sqlName,
                          int[] sqlType,
                          boolean dirtyCheck,
                          java.lang.String manyTable,
                          java.lang.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 Detail

getManyTable

public java.lang.String getManyTable()

getManyKey

public java.lang.String[] getManyKey()

getSQLName

public java.lang.String[] getSQLName()
Returns the SQL name of this field.

Returns:
The SQL name of this field

isDirtyCheck

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

Returns:
True if dirty checking required

getSQLType

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

Returns:
The SQL type of this field

toString

public java.lang.String toString()
Overrides:
toString in class FieldDescriptorImpl

isReadonly

public boolean isReadonly()


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