Package net.ontopia.persistence.proxy
Class IndicatorFieldHandler
- java.lang.Object
-
- net.ontopia.persistence.proxy.IndicatorFieldHandler
-
- All Implemented Interfaces:
FieldHandlerIF
public class IndicatorFieldHandler extends Object implements FieldHandlerIF
INTERNAL: The indicator field handler implementation that is able to...
-
-
Field Summary
Fields Modifier and Type Field Description protected FieldHandlerIFcommon_handlerprotected Map<Object,Class<?>>indicatorsprotected ObjectRelationalMappingIFmapping
-
Constructor Summary
Constructors Constructor Description IndicatorFieldHandler(ObjectRelationalMappingIF mapping, Map<Object,Class<?>> indicators)INTERNAL:
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(Object value, PreparedStatement stm, int stmt_index)INTERNAL: Binds the object field value starting from the given offset in the prepared statement.intgetColumnCount()INTERNAL: Returns the number of columns that the field spans.protected FieldHandlerIFgetCommonFieldHandler()booleanisIdentityField()INTERNAL: Returns true if the field handler references an object identity field.Objectload(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 voidregisterCommonFieldHandler(Class<?> indicated_klass)voidretrieveFieldValues(Object value, List<Object> field_values)voidretrieveSQLValues(Object value, List<SQLValueIF> sql_values)StringtoString()
-
-
-
Field Detail
-
mapping
protected final ObjectRelationalMappingIF mapping
-
common_handler
protected FieldHandlerIF common_handler
-
-
Constructor Detail
-
IndicatorFieldHandler
public IndicatorFieldHandler(ObjectRelationalMappingIF mapping, Map<Object,Class<?>> indicators)
INTERNAL:
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
Description copied from interface:FieldHandlerIFINTERNAL: Returns the number of columns that the field spans.- Specified by:
getColumnCountin interfaceFieldHandlerIF
-
isIdentityField
public boolean isIdentityField()
Description copied from interface:FieldHandlerIFINTERNAL: Returns true if the field handler references an object identity field.- Specified by:
isIdentityFieldin interfaceFieldHandlerIF
-
registerCommonFieldHandler
protected void registerCommonFieldHandler(Class<?> indicated_klass)
-
getCommonFieldHandler
protected FieldHandlerIF getCommonFieldHandler()
-
load
public Object load(AccessRegistrarIF registrar, TicketIF ticket, ResultSet rs, int rsindex, boolean direct) throws SQLException
Description copied from interface:FieldHandlerIFINTERNAL: Reads the value beginning at the given offset in the current ResultSet row. The number of columns actually read depends on the type of object field.- Specified by:
loadin interfaceFieldHandlerIF- Throws:
SQLException
-
bind
public void bind(Object value, PreparedStatement stm, int stmt_index) throws SQLException
Description copied from interface:FieldHandlerIFINTERNAL: Binds the object field value starting from the given offset in the prepared statement. The number of columns actually bound depends on the type of object field.- Specified by:
bindin interfaceFieldHandlerIF- Throws:
SQLException
-
retrieveFieldValues
public void retrieveFieldValues(Object value, List<Object> field_values)
- Specified by:
retrieveFieldValuesin interfaceFieldHandlerIF
-
retrieveSQLValues
public void retrieveSQLValues(Object value, List<SQLValueIF> sql_values)
- Specified by:
retrieveSQLValuesin interfaceFieldHandlerIF
-
-