|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.proxy.DefaultFieldHandler
public class DefaultFieldHandler
INTERNAL: The default field handler implementation that is able to read values from result sets and bind values in prepared statements without any particular knowledge about fields. The field handler only works with single columns of the type specified in the class constructor.
Field Summary | |
---|---|
protected int |
sql_type
|
Constructor Summary | |
---|---|
DefaultFieldHandler(int sql_type)
Creates a instance of the default field handler by passing the SQL type to used for reading and storing column values. |
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)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int sql_type
Constructor Detail |
---|
public DefaultFieldHandler(int sql_type)
Method Detail |
---|
public int getColumnCount()
FieldHandlerIF
getColumnCount
in interface FieldHandlerIF
public boolean isIdentityField()
FieldHandlerIF
isIdentityField
in interface FieldHandlerIF
public java.lang.Object load(AccessRegistrarIF registrar, TicketIF ticket, java.sql.ResultSet rs, int rsindex, boolean direct) throws java.sql.SQLException
FieldHandlerIF
load
in interface FieldHandlerIF
java.sql.SQLException
public void bind(java.lang.Object value, java.sql.PreparedStatement stm, int stmt_index) throws java.sql.SQLException
FieldHandlerIF
bind
in interface FieldHandlerIF
java.sql.SQLException
public void retrieveFieldValues(java.lang.Object value, java.util.List field_values)
retrieveFieldValues
in interface FieldHandlerIF
public void retrieveSQLValues(java.lang.Object value, java.util.List sql_values)
retrieveSQLValues
in interface FieldHandlerIF
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |