org.exolab.castor.jdo.engine.nature
Class FieldDescriptorJDONature

java.lang.Object
  extended by BaseNature
      extended by org.exolab.castor.jdo.engine.nature.FieldDescriptorJDONature

public class FieldDescriptorJDONature
extends BaseNature


Constructor Summary
FieldDescriptorJDONature(PropertyHolder holder)
          Creates an instance of FieldDescriptorJDONature.
 
Method Summary
 TypeConvertor getConvertor()
          TODO improve Returns the convertor from the field type to an external type.
 java.lang.String getId()
           
 java.lang.String[] getManyKey()
          Returns the SQL many key of the field.
 java.lang.String getManyTable()
          Returns the SQL many table of the field.
 java.lang.String[] getSQLName()
          Returns the SQL (column) name of the field.
 int[] getSQLType()
          Returns the SQL type of this field.
 boolean isDirtyCheck()
          Returns true if dirty checking is required for this field.
 boolean isReadonly()
          Returns true if field access is read only.
 void setDirtyCheck(boolean dirtyCheck)
           
 void setManyKey(java.lang.String[] manyKey)
          Sets the SQL many key of the field.
 void setManyTable(java.lang.String manyTable)
          Sets the SQL many table of the field.
 void setReadOnly(boolean readOnly)
           
 void setSQLName(java.lang.String[] sqlName)
          Sets the SQL (column) name of the field.
 void setSQLType(int[] sqlType)
           
 void setTypeConvertor(TypeConvertor typeConvertor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldDescriptorJDONature

public FieldDescriptorJDONature(PropertyHolder holder)
Creates an instance of FieldDescriptorJDONature.

Parameters:
holder - The PropertyHolder to 'view upon'.
Method Detail

getId

public java.lang.String getId()
See Also:
org.castor.core.nature.Nature#getId()

getSQLName

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

Returns:
The SQL (column) name.

setSQLName

public void setSQLName(java.lang.String[] sqlName)
Sets the SQL (column) name of the field.

Parameters:
sqlName - The SQL (column) name.

getManyKey

public java.lang.String[] getManyKey()
Returns the SQL many key of the field.

Returns:
The SQL many key.

setManyKey

public void setManyKey(java.lang.String[] manyKey)
Sets the SQL many key of the field.

Parameters:
sqlName - The SQL (many key.

getManyTable

public java.lang.String getManyTable()
Returns the SQL many table of the field.

Returns:
The SQL many table.

setManyTable

public void setManyTable(java.lang.String manyTable)
Sets the SQL many table of the field.

Parameters:
sqlName - The SQL many table.

isReadonly

public boolean isReadonly()
Returns true if field access is read only.

Returns:
True if field access is read-only.

setReadOnly

public void setReadOnly(boolean readOnly)

isDirtyCheck

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

Returns:
True if dirty checking required

setDirtyCheck

public void setDirtyCheck(boolean dirtyCheck)

getConvertor

public TypeConvertor getConvertor()
TODO improve Returns the convertor from the field type to an external type.

Returns:
Convertor from field type

setTypeConvertor

public void setTypeConvertor(TypeConvertor typeConvertor)

getSQLType

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

Returns:
The SQL type of this field

setSQLType

public void setSQLType(int[] sqlType)


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