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()
FieldHandlerIFgetColumnCount in interface FieldHandlerIFpublic boolean isIdentityField()
FieldHandlerIFisIdentityField in interface FieldHandlerIFprotected void registerCommonFieldHandler(Class<?> indicated_klass)
protected FieldHandlerIF getCommonFieldHandler()
public 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