public final class ColumnInfo extends Object implements Cloneable
Modifier | Constructor and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.public String getName()
public int getIndex()
public int getType()
public boolean isStore()
public boolean isDirty()
Copyright © 2016. All rights reserved.