org.dbunit.database.statement
Class SimplePreparedStatement

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

public class SimplePreparedStatement
extends AbstractPreparedBatchStatement

Since:
Mar 16, 2002
Version:
$Revision: 1.14 $
Author:
Manuel Laflamme

Field Summary
 
Fields inherited from class org.dbunit.database.statement.AbstractPreparedBatchStatement
_statement
 
Constructor Summary
SimplePreparedStatement(java.lang.String sql, java.sql.Connection connection)
           
 
Method Summary
 void addBatch()
           
 void addValue(java.lang.Object value, DataType dataType)
           
 void clearBatch()
           
 int executeBatch()
           
 
Methods inherited from class org.dbunit.database.statement.AbstractPreparedBatchStatement
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePreparedStatement

public SimplePreparedStatement(java.lang.String sql,
                               java.sql.Connection connection)
                        throws java.sql.SQLException
Method Detail

addValue

public void addValue(java.lang.Object value,
                     DataType dataType)
              throws TypeCastException,
                     java.sql.SQLException
Throws:
TypeCastException
java.sql.SQLException

addBatch

public void addBatch()
              throws java.sql.SQLException
Throws:
java.sql.SQLException

executeBatch

public int executeBatch()
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

clearBatch

public void clearBatch()
                throws java.sql.SQLException
Throws:
java.sql.SQLException


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