com.onewebsql.util.jdbc
Class CallableStatementListParameterHandler<IP>

java.lang.Object
  extended by com.onewebsql.util.jdbc.CallableStatementListParameterHandler<IP>
All Implemented Interfaces:
CallableStatementParameterHandler<List<IP>,List<Integer>>

public class CallableStatementListParameterHandler<IP>
extends Object
implements CallableStatementParameterHandler<List<IP>,List<Integer>>

Binds input ('IN') and output ('OUT') parameters to the specified CallableStatement in the following way:


Constructor Summary
CallableStatementListParameterHandler()
          Creates a new CallableStatementListParameterHandler object.
 
Method Summary
 void bindParameters(CallableStatement callableStatement, List<IP> inputParameters, List<Integer> outputParameters)
          Binds input ('IN') and output ('OUT') parameters to the specified CallableStatement in the following way: the inputParameters value is a List of objects of type IP.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallableStatementListParameterHandler

public CallableStatementListParameterHandler()
Creates a new CallableStatementListParameterHandler object.

Method Detail

bindParameters

public void bindParameters(CallableStatement callableStatement,
                           List<IP> inputParameters,
                           List<Integer> outputParameters)
                    throws SQLException
Binds input ('IN') and output ('OUT') parameters to the specified CallableStatement in the following way:

Specified by:
bindParameters in interface CallableStatementParameterHandler<List<IP>,List<Integer>>
Parameters:
callableStatement - SQL statement
inputParameters - list of input parameters
outputParameters - list of JDBC types of consecutive 'OUT' parameters
Throws:
SQLException - if an exception is thrown while handling parameters


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