Package net.ontopia.persistence.proxy
Class IndicatorFieldHandler
java.lang.Object
net.ontopia.persistence.proxy.IndicatorFieldHandler
- All Implemented Interfaces:
FieldHandlerIF
INTERNAL: The indicator field handler implementation that is able
to...
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FieldHandlerIFprotected final ObjectRelationalMappingIF -
Constructor Summary
ConstructorsConstructorDescriptionIndicatorFieldHandler(ObjectRelationalMappingIF mapping, Map<Object, Class<?>> indicators) INTERNAL: -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(Object value, PreparedStatement stm, int stmt_index) INTERNAL: Binds the object field value starting from the given offset in the prepared statement.intINTERNAL: Returns the number of columns that the field spans.protected FieldHandlerIFbooleanINTERNAL: Returns true if the field handler references an object identity field.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 voidregisterCommonFieldHandler(Class<?> indicated_klass) voidretrieveFieldValues(Object value, List<Object> field_values) voidretrieveSQLValues(Object value, List<SQLValueIF> sql_values) toString()
-
Field Details
-
mapping
-
indicators
-
common_handler
-
-
Constructor Details
-
IndicatorFieldHandler
INTERNAL:
-
-
Method Details
-
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
-
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
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
- Specified by:
retrieveFieldValuesin interfaceFieldHandlerIF
-
retrieveSQLValues
- Specified by:
retrieveSQLValuesin interfaceFieldHandlerIF
-
toString
-