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
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.booleanINTERNAL: 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.voidretrieveFieldValues(Object value, List<Object> field_values) voidretrieveSQLValues(Object value, List<SQLValueIF> sql_values)
-
Method Details
-
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
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
-
retrieveFieldValues
-
retrieveSQLValues
-