public class DefaultFieldHandler extends Object implements FieldHandlerIF
| Modifier and Type | Field and Description |
|---|---|
protected int |
sql_type |
| Constructor and Description |
|---|
DefaultFieldHandler(int sql_type)
Creates a instance of the default field handler by passing the
SQL type to used for reading and storing column values.
|
| 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.
|
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: Reads the value beginning at the given offset in the
current ResultSet row.
|
void |
retrieveFieldValues(Object value,
List<Object> field_values) |
void |
retrieveSQLValues(Object value,
List<SQLValueIF> sql_values) |
String |
toString() |
public DefaultFieldHandler(int sql_type)
public int getColumnCount()
FieldHandlerIFgetColumnCount in interface FieldHandlerIFpublic boolean isIdentityField()
FieldHandlerIFisIdentityField in interface FieldHandlerIFpublic Object load(AccessRegistrarIF registrar, TicketIF ticket, ResultSet rs, int rsindex, boolean direct) throws SQLException
FieldHandlerIFload in interface FieldHandlerIFSQLExceptionpublic void bind(Object value, PreparedStatement stm, int stmt_index) throws SQLException
FieldHandlerIFbind in interface FieldHandlerIFSQLExceptionpublic void retrieveFieldValues(Object value, List<Object> field_values)
retrieveFieldValues in interface FieldHandlerIFpublic void retrieveSQLValues(Object value, List<SQLValueIF> sql_values)
retrieveSQLValues in interface FieldHandlerIF