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()
FieldHandlerIF
getColumnCount
in interface FieldHandlerIF
public boolean isIdentityField()
FieldHandlerIF
isIdentityField
in interface FieldHandlerIF
public Object load(AccessRegistrarIF registrar, TicketIF ticket, ResultSet rs, int rsindex, boolean direct) throws SQLException
FieldHandlerIF
load
in interface FieldHandlerIF
SQLException
public void bind(Object value, PreparedStatement stm, int stmt_index) throws SQLException
FieldHandlerIF
bind
in interface FieldHandlerIF
SQLException
public void retrieveFieldValues(Object value, List<Object> field_values)
retrieveFieldValues
in interface FieldHandlerIF
public void retrieveSQLValues(Object value, List<SQLValueIF> sql_values)
retrieveSQLValues
in interface FieldHandlerIF