|
||||||||||
| 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(String name)
Constructor creating new column with only name set. |
protected |
ColumnInfo(String name,
int index,
int type,
TypeConvertor convertFrom,
boolean store,
boolean dirty)
Constructor with all given values. |
| Method Summary | |
|---|---|
int |
getIndex()
Method returning the field index of this column. |
String |
getName()
Method returning name of this column. |
int |
getType()
Method returning SQL type currently set. |
boolean |
isDirty()
Method returning dirty 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(String name,
int index,
int type,
TypeConvertor convertFrom,
boolean store,
boolean dirty)
name - Name of this column.index - Index of the field this column belongs to.type - SQL type of this column.convertFrom - Converter to convert value of this column.store - Flag telling if column is persistent or not.dirty - Flag telling if this column was changed or not.protected ColumnInfo(String name)
name - Name to be set.| Method Detail |
|---|
public String getName()
public int getIndex()
public int getType()
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 | |||||||||