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 FieldHandlerIF
common_handler
protected Map<Object,Class<?>>
indicators
protected ObjectRelationalMappingIF
mapping
-
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 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()
-
-
-
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:FieldHandlerIF
INTERNAL: Returns the number of columns that the field spans.- Specified by:
getColumnCount
in interfaceFieldHandlerIF
-
isIdentityField
public boolean isIdentityField()
Description copied from interface:FieldHandlerIF
INTERNAL: Returns true if the field handler references an object identity field.- Specified by:
isIdentityField
in 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:FieldHandlerIF
INTERNAL: 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:
load
in interfaceFieldHandlerIF
- Throws:
SQLException
-
bind
public void bind(Object value, PreparedStatement stm, int stmt_index) throws SQLException
Description copied from interface:FieldHandlerIF
INTERNAL: 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:
bind
in interfaceFieldHandlerIF
- Throws:
SQLException
-
retrieveFieldValues
public void retrieveFieldValues(Object value, List<Object> field_values)
- Specified by:
retrieveFieldValues
in interfaceFieldHandlerIF
-
retrieveSQLValues
public void retrieveSQLValues(Object value, List<SQLValueIF> sql_values)
- Specified by:
retrieveSQLValues
in interfaceFieldHandlerIF
-
-