net.ontopia.persistence.proxy
Class IndicatorFieldHandler

java.lang.Object
  extended by net.ontopia.persistence.proxy.IndicatorFieldHandler
All Implemented Interfaces:
FieldHandlerIF

public class IndicatorFieldHandler
extends java.lang.Object
implements FieldHandlerIF

INTERNAL: The indicator field handler implementation that is able to...


Field Summary
protected  FieldHandlerIF common_handler
           
protected  java.util.Map indicators
           
protected  ObjectRelationalMappingIF mapping
           
 
Constructor Summary
IndicatorFieldHandler(ObjectRelationalMappingIF mapping, java.util.Map indicators)
          INTERNAL:
 
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.
protected  FieldHandlerIF getCommonFieldHandler()
           
 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.
protected  void registerCommonFieldHandler(java.lang.Class indicated_klass)
           
 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

mapping

protected ObjectRelationalMappingIF mapping

indicators

protected java.util.Map indicators

common_handler

protected FieldHandlerIF common_handler
Constructor Detail

IndicatorFieldHandler

public IndicatorFieldHandler(ObjectRelationalMappingIF mapping,
                             java.util.Map indicators)
INTERNAL:

Method Detail

getColumnCount

public int getColumnCount()
Description copied from interface: FieldHandlerIF
INTERNAL: Returns the number of columns that the field spans.

Specified by:
getColumnCount in interface FieldHandlerIF

isIdentityField

public boolean isIdentityField()
Description copied from interface: FieldHandlerIF
INTERNAL: Returns true if the field handler references an object identity field.

Specified by:
isIdentityField in interface FieldHandlerIF

registerCommonFieldHandler

protected void registerCommonFieldHandler(java.lang.Class indicated_klass)

getCommonFieldHandler

protected FieldHandlerIF getCommonFieldHandler()

load

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

Specified by:
load in interface FieldHandlerIF
Throws:
java.sql.SQLException

bind

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

Specified by:
bind in interface FieldHandlerIF
Throws:
java.sql.SQLException

retrieveFieldValues

public void retrieveFieldValues(java.lang.Object value,
                                java.util.List field_values)
Specified by:
retrieveFieldValues in interface FieldHandlerIF

retrieveSQLValues

public void retrieveSQLValues(java.lang.Object value,
                              java.util.List sql_values)
Specified by:
retrieveSQLValues in interface FieldHandlerIF

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2012 Ontopia.