public class IndicatorFieldHandler extends Object implements FieldHandlerIF
Modifier and Type | Field and Description |
---|---|
protected FieldHandlerIF |
common_handler |
protected Map<Object,Class<?>> |
indicators |
protected ObjectRelationalMappingIF |
mapping |
Constructor and Description |
---|
IndicatorFieldHandler(ObjectRelationalMappingIF mapping,
Map<Object,Class<?>> indicators)
INTERNAL:
|
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.
|
protected FieldHandlerIF |
getCommonFieldHandler() |
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.
|
protected void |
registerCommonFieldHandler(Class<?> indicated_klass) |
void |
retrieveFieldValues(Object value,
List<Object> field_values) |
void |
retrieveSQLValues(Object value,
List<SQLValueIF> sql_values) |
String |
toString() |
protected final ObjectRelationalMappingIF mapping
protected FieldHandlerIF common_handler
public IndicatorFieldHandler(ObjectRelationalMappingIF mapping, Map<Object,Class<?>> indicators)
public int getColumnCount()
FieldHandlerIF
getColumnCount
in interface FieldHandlerIF
public boolean isIdentityField()
FieldHandlerIF
isIdentityField
in interface FieldHandlerIF
protected void registerCommonFieldHandler(Class<?> indicated_klass)
protected FieldHandlerIF getCommonFieldHandler()
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