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
 void bind(java.lang.Object value, java.sql.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.
 java.lang.Object load(AccessRegistrarIF registrar, TicketIF ticket, java.sql.ResultSet rs, int rsindex, boolean direct)
          INTERNAL: Reads the value beginning at the given offset in the current ResultSet row.
 void retrieveFieldValues(java.lang.Object value, java.util.List field_values)
           
 void retrieveSQLValues(java.lang.Object value, java.util.List 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

java.lang.Object load(AccessRegistrarIF registrar,
                      TicketIF ticket,
                      java.sql.ResultSet rs,
                      int rsindex,
                      boolean direct)
                      throws java.sql.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:
java.sql.SQLException

bind

void bind(java.lang.Object value,
          java.sql.PreparedStatement stm,
          int stmt_index)
          throws java.sql.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:
java.sql.SQLException

retrieveFieldValues

void retrieveFieldValues(java.lang.Object value,
                         java.util.List field_values)

retrieveSQLValues

void retrieveSQLValues(java.lang.Object value,
                       java.util.List sql_values)


Copyright © 2000-2012 Ontopia.