org.datanucleus.store.rdbms.fieldmanager
Class ParameterSetter

java.lang.Object
  extended by org.datanucleus.store.fieldmanager.AbstractFieldManager
      extended by org.datanucleus.store.rdbms.fieldmanager.ParameterSetter
All Implemented Interfaces:
org.datanucleus.store.fieldmanager.FieldConsumer, org.datanucleus.store.fieldmanager.FieldManager, org.datanucleus.store.fieldmanager.FieldSupplier

public class ParameterSetter
extends org.datanucleus.store.fieldmanager.AbstractFieldManager

Parameter setter implementation of a field manager.


Constructor Summary
ParameterSetter(org.datanucleus.StateManager sm, java.lang.Object stmt, org.datanucleus.store.mapped.StatementClassMapping stmtMappings, boolean checkNonNullable)
          Constructor.
 
Method Summary
 void storeBooleanField(int fieldNumber, boolean value)
           
 void storeByteField(int fieldNumber, byte value)
           
 void storeCharField(int fieldNumber, char value)
           
 void storeDoubleField(int fieldNumber, double value)
           
 void storeFloatField(int fieldNumber, float value)
           
 void storeIntField(int fieldNumber, int value)
           
 void storeLongField(int fieldNumber, long value)
           
 void storeObjectField(int fieldNumber, java.lang.Object value)
           
 void storeShortField(int fieldNumber, short value)
           
 void storeStringField(int fieldNumber, java.lang.String value)
           
 
Methods inherited from class org.datanucleus.store.fieldmanager.AbstractFieldManager
fetchBooleanField, fetchByteField, fetchCharField, fetchDoubleField, fetchFloatField, fetchIntField, fetchLongField, fetchObjectField, fetchShortField, fetchStringField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterSetter

public ParameterSetter(org.datanucleus.StateManager sm,
                       java.lang.Object stmt,
                       org.datanucleus.store.mapped.StatementClassMapping stmtMappings,
                       boolean checkNonNullable)
Constructor.

Parameters:
sm - The state manager for the object.
stmt - The Statement to set values on.
stmtMappings - mappings for parameters in the statement.
checkNonNullable - Whether to check for nullability
Method Detail

storeBooleanField

public void storeBooleanField(int fieldNumber,
                              boolean value)
Specified by:
storeBooleanField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeBooleanField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeCharField

public void storeCharField(int fieldNumber,
                           char value)
Specified by:
storeCharField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeCharField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeByteField

public void storeByteField(int fieldNumber,
                           byte value)
Specified by:
storeByteField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeByteField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeShortField

public void storeShortField(int fieldNumber,
                            short value)
Specified by:
storeShortField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeShortField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeIntField

public void storeIntField(int fieldNumber,
                          int value)
Specified by:
storeIntField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeIntField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeLongField

public void storeLongField(int fieldNumber,
                           long value)
Specified by:
storeLongField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeLongField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeFloatField

public void storeFloatField(int fieldNumber,
                            float value)
Specified by:
storeFloatField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeFloatField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeDoubleField

public void storeDoubleField(int fieldNumber,
                             double value)
Specified by:
storeDoubleField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeDoubleField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeStringField

public void storeStringField(int fieldNumber,
                             java.lang.String value)
Specified by:
storeStringField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeStringField in class org.datanucleus.store.fieldmanager.AbstractFieldManager

storeObjectField

public void storeObjectField(int fieldNumber,
                             java.lang.Object value)
Specified by:
storeObjectField in interface org.datanucleus.store.fieldmanager.FieldConsumer
Overrides:
storeObjectField in class org.datanucleus.store.fieldmanager.AbstractFieldManager


Copyright © 2009. All Rights Reserved.