org.drizzle.jdbc.internal.common
Class DefaultParameterizedBatchHandler

java.lang.Object
  extended by org.drizzle.jdbc.internal.common.DefaultParameterizedBatchHandler
All Implemented Interfaces:
ParameterizedBatchHandler

public final class DefaultParameterizedBatchHandler
extends java.lang.Object
implements ParameterizedBatchHandler


Constructor Summary
DefaultParameterizedBatchHandler(Protocol protocol)
           
 
Method Summary
 void addToBatch(ParameterizedQuery query)
          called when a set of parameters are added to a batch.
 int[] executeBatch()
          execute the batch using protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultParameterizedBatchHandler

public DefaultParameterizedBatchHandler(Protocol protocol)
Method Detail

addToBatch

public void addToBatch(ParameterizedQuery query)
Description copied from interface: ParameterizedBatchHandler
called when a set of parameters are added to a batch.

Specified by:
addToBatch in interface ParameterizedBatchHandler
Parameters:
query - the parameterized query.

executeBatch

public int[] executeBatch()
                   throws QueryException
Description copied from interface: ParameterizedBatchHandler
execute the batch using protocol. Return an array of update counts or -2 (Statement.SUCCESS_NO_INFO) if the update count is unknown.

Specified by:
executeBatch in interface ParameterizedBatchHandler
Returns:
a list of update counts
Throws:
QueryException - if something goes wrong executing the query.


Copyright © 2012. All Rights Reserved.