com.onewebsql.query.adapter
Class SetReaderParameterHandler

java.lang.Object
  extended by com.onewebsql.query.adapter.SetReaderParameterHandler
All Implemented Interfaces:
ParameterHandler<List<Value>>

public class SetReaderParameterHandler
extends Object
implements ParameterHandler<List<Value>>

Implementacja interfejsu ParameterHandler ustawiająca pierwszy parametr metodą PreparedStatement.setCharacterStream(int, java.io.Reader, int), pozostałe parametry zaś metodą PreparedStatement.setObject(int, java.lang.Object, int).


Field Summary
protected  int charactersToWrite
          Ilość znaków do zapisu.
 
Constructor Summary
SetReaderParameterHandler(int charactersToWrite)
          Konstruktor.
 
Method Summary
 void bindParameters(PreparedStatement statement, List<Value> parameters)
          Binds the specified parameters (using the methods set<Type>(int index, ...)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

charactersToWrite

protected int charactersToWrite
Ilość znaków do zapisu.

Constructor Detail

SetReaderParameterHandler

public SetReaderParameterHandler(int charactersToWrite)
Konstruktor.

Parameters:
charactersToWrite - ilość znaków do zapisu do strumienia.
Method Detail

bindParameters

public void bindParameters(PreparedStatement statement,
                           List<Value> parameters)
                    throws SQLException
Description copied from interface: ParameterHandler
Binds the specified parameters (using the methods set<Type>(int index, ...)) to the specified PreparedStatement.

Specified by:
bindParameters in interface ParameterHandler<List<Value>>
Parameters:
statement - SQL statement
parameters - parameters to be bound
Throws:
SQLException - if an error occurs while binding parameters


Copyright © 2011-2013 e-point SA. All Rights Reserved.