net.ontopia.persistence.proxy
Class IndicatorFieldHandler

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

public class IndicatorFieldHandler
extends Object
implements FieldHandlerIF

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


Field Summary
protected  FieldHandlerIF common_handler
           
protected  Map indicators
           
protected  ObjectRelationalMappingIF mapping
           
 
Constructor Summary
IndicatorFieldHandler(ObjectRelationalMappingIF mapping, Map indicators)
          INTERNAL:
 
Method Summary
 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.
protected  FieldHandlerIF getCommonFieldHandler()
           
 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.
protected  void registerCommonFieldHandler(Class indicated_klass)
           
 void retrieveFieldValues(Object value, List field_values)
           
 void retrieveSQLValues(Object value, List sql_values)
           
 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 Map indicators

common_handler

protected FieldHandlerIF common_handler
Constructor Detail

IndicatorFieldHandler

public IndicatorFieldHandler(ObjectRelationalMappingIF mapping,
                             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(Class indicated_klass)

getCommonFieldHandler

protected FieldHandlerIF getCommonFieldHandler()

load

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

bind

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

retrieveFieldValues

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

retrieveSQLValues

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2000-2012 Ontopia.