org.dbunit.database.statement
Class AutomaticPreparedBatchStatement

java.lang.Object
  extended byorg.dbunit.database.statement.AutomaticPreparedBatchStatement
All Implemented Interfaces:
IPreparedBatchStatement

public class AutomaticPreparedBatchStatement
extends java.lang.Object
implements IPreparedBatchStatement

Since:
Jun 12, 2003
Version:
$Revision: 1.4 $
Author:
Manuel Laflamme

Constructor Summary
AutomaticPreparedBatchStatement(IPreparedBatchStatement statement, int threshold)
           
 
Method Summary
 void addBatch()
           
 void addValue(java.lang.Object value, DataType dataType)
           
 void clearBatch()
           
 void close()
           
 int executeBatch()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomaticPreparedBatchStatement

public AutomaticPreparedBatchStatement(IPreparedBatchStatement statement,
                                       int threshold)
Method Detail

addValue

public void addValue(java.lang.Object value,
                     DataType dataType)
              throws TypeCastException,
                     java.sql.SQLException
Specified by:
addValue in interface IPreparedBatchStatement
Throws:
TypeCastException
java.sql.SQLException

addBatch

public void addBatch()
              throws java.sql.SQLException
Specified by:
addBatch in interface IPreparedBatchStatement
Throws:
java.sql.SQLException

executeBatch

public int executeBatch()
                 throws java.sql.SQLException
Specified by:
executeBatch in interface IPreparedBatchStatement
Throws:
java.sql.SQLException

clearBatch

public void clearBatch()
                throws java.sql.SQLException
Specified by:
clearBatch in interface IPreparedBatchStatement
Throws:
java.sql.SQLException

close

public void close()
           throws java.sql.SQLException
Specified by:
close in interface IPreparedBatchStatement
Throws:
java.sql.SQLException


Copyright © 2002-2005 DbUnit.org. All Rights Reserved.