Package net.ontopia.persistence.proxy
Interface FieldHandlerIF
-
- All Known Subinterfaces:
FieldInfoIF
- All Known Implementing Classes:
AbstractFieldInfo
,AggregateFieldInfo
,DefaultFieldHandler
,IdentityFieldInfo
,IndicatorFieldHandler
,PrimitiveFieldInfo
,ReferenceFieldInfo
public interface FieldHandlerIF
INTERNAL: Interface for use by classes that retrieve field values from result sets and bind values in prepared statements. This interface is JDBC specific.
-
-
Method Summary
All Methods Instance Methods Abstract 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.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.void
retrieveFieldValues(Object value, List<Object> field_values)
void
retrieveSQLValues(Object value, List<SQLValueIF> sql_values)
-
-
-
Method Detail
-
getColumnCount
int getColumnCount()
INTERNAL: Returns the number of columns that the field spans.
-
isIdentityField
boolean isIdentityField()
INTERNAL: Returns true if the field handler references an object identity field.
-
load
Object load(AccessRegistrarIF registrar, TicketIF ticket, ResultSet rs, int rsindex, boolean direct) throws SQLException
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.- Throws:
SQLException
-
bind
void bind(Object value, PreparedStatement stm, int stmt_index) throws SQLException
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.- Throws:
SQLException
-
retrieveSQLValues
void retrieveSQLValues(Object value, List<SQLValueIF> sql_values)
-
-