|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cpa.persistence.sql.engine.info.ColumnInfo
public final class ColumnInfo
Class representing columns belonging to a table.
| Constructor Summary | |
|---|---|
protected |
ColumnInfo(int fieldIndex,
String fieldName,
String name,
int type,
TypeConvertor convertFrom,
boolean primaryKey,
boolean store,
boolean dirty)
Constructor with all given values. |
| Method Summary | |
|---|---|
int |
getFieldIndex()
Get index of the field in array of field values. |
String |
getFieldName()
Get name of field in mapping. |
String |
getName()
Method returning name of this column. |
int |
getType()
Method returning SQL type currently set. |
boolean |
isDirty()
Method returning dirty flag. |
boolean |
isPrimaryKey()
Method returning primary flag. |
boolean |
isStore()
Method returning store flag. |
protected Object |
toSQL(Object object)
Method to translate java data types to sql data types. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ColumnInfo(int fieldIndex,
String fieldName,
String name,
int type,
TypeConvertor convertFrom,
boolean primaryKey,
boolean store,
boolean dirty)
fieldIndex - Index of the field in array of field values.fieldName - Name of field in mapping.name - Name of this column.type - SQL type of this column.convertFrom - Converter to convert value of this column.primaryKey - Flag telling if column belongs to primary key or not.store - Flag telling if column is persistent or not.dirty - Flag telling if this column was changed or not.| Method Detail |
|---|
public int getFieldIndex()
public String getFieldName()
public String getName()
public int getType()
public boolean isPrimaryKey()
public boolean isStore()
public boolean isDirty()
protected Object toSQL(Object object)
object - Object to be translated to sql data type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||