public class PrimitiveFieldInfo extends AbstractFieldInfo
Modifier and Type | Field and Description |
---|---|
protected String |
colname |
protected int |
sqltype |
cardinality, field, getter, index, is_collection, name, parent_cinfo, readonly, setter, value_class
MANY_TO_MANY, ONE_TO_MANY, ONE_TO_ONE
Modifier and Type | Method and Description |
---|---|
void |
bind(Object value,
PreparedStatement stm,
int stmt_index)
INTERNAL: Binds the object field value starting from the given
offset in the prepared statement.
|
int |
getColumnCount()
INTERNAL: Returns the number of columns that the field spans.
|
int |
getSQLType() |
ClassInfoIF |
getValueClassInfo()
INTERNAL: Gets the class info for the field's value type.
|
String[] |
getValueColumns()
INTERNAL: Returns the names of the columns that the field spans.
|
boolean |
isIdentityField()
INTERNAL: Returns true if the field handler references an object
identity field.
|
Object |
load(AccessRegistrarIF registrar,
TicketIF ticket,
ResultSet rs,
int rsindex,
boolean direct)
INTERNAL: Loads a single primitive value.
|
void |
retrieveFieldValues(Object value,
List<Object> field_values) |
void |
retrieveSQLValues(Object value,
List<SQLValueIF> sql_values) |
String |
toString() |
getCardinality, getDescriptor, getGetterMethod, getIndex, getJoinKeys, getJoinTable, getManyKeys, getName, getParentClassInfo, getSetterMethod, getTable, getValue, getValueClass, isAggregateField, isCollectionField, isPrimitiveField, isReadOnly, isReferenceField, setValue
protected String colname
protected int sqltype
public int getSQLType()
public ClassInfoIF getValueClassInfo()
FieldInfoIF
public int getColumnCount()
FieldHandlerIF
public boolean isIdentityField()
FieldHandlerIF
public String[] getValueColumns()
FieldInfoIF
public Object load(AccessRegistrarIF registrar, TicketIF ticket, ResultSet rs, int rsindex, boolean direct) throws SQLException
SQLException
public void bind(Object value, PreparedStatement stm, int stmt_index) throws SQLException
FieldHandlerIF
SQLException
public void retrieveSQLValues(Object value, List<SQLValueIF> sql_values)