com.onewebsql.query.adapter
Class DB2ValueListParameterHandler

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

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

Implementacja interfejsu ParameterHandler dla bazy DB2, ustawiająca parametry obiektu PreparedStatement na podstawie listy obiektów klasy Value. Listy takie generowane są przez standardowe klasy O/R Mapping'u.

See Also:
SelectQuery, InsertQuery, UpdateQuery, DeleteQuery

Constructor Summary
DB2ValueListParameterHandler()
          Create a new DB2ValueListParameterHandler object.
 
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
 

Constructor Detail

DB2ValueListParameterHandler

public DB2ValueListParameterHandler()
Create a new DB2ValueListParameterHandler object.

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.