org.dbunit.database.statement
Class MockBatchStatement

java.lang.Object
  extended by org.dbunit.database.statement.MockBatchStatement
All Implemented Interfaces:
com.mockobjects.Verifiable, IBatchStatement

public class MockBatchStatement
extends Object
implements IBatchStatement, com.mockobjects.Verifiable

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

Constructor Summary
MockBatchStatement()
           
 
Method Summary
 void addBatch(String sql)
           
 void addExpectedBatchString(String sql)
           
 void addExpectedBatchStrings(String[] sql)
           
 void clearBatch()
           
 void close()
           
 int executeBatch()
           
 void setExpectedClearBatchCalls(int callsCount)
           
 void setExpectedCloseCalls(int callsCount)
           
 void setExpectedExecuteBatchCalls(int callsCount)
           
 void verify()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockBatchStatement

public MockBatchStatement()
Method Detail

addExpectedBatchString

public void addExpectedBatchString(String sql)

addExpectedBatchStrings

public void addExpectedBatchStrings(String[] sql)

setExpectedExecuteBatchCalls

public void setExpectedExecuteBatchCalls(int callsCount)

setExpectedClearBatchCalls

public void setExpectedClearBatchCalls(int callsCount)

setExpectedCloseCalls

public void setExpectedCloseCalls(int callsCount)

verify

public void verify()
Specified by:
verify in interface com.mockobjects.Verifiable

addBatch

public void addBatch(String sql)
              throws SQLException
Specified by:
addBatch in interface IBatchStatement
Throws:
SQLException

executeBatch

public int executeBatch()
                 throws SQLException
Specified by:
executeBatch in interface IBatchStatement
Throws:
SQLException

clearBatch

public void clearBatch()
                throws SQLException
Specified by:
clearBatch in interface IBatchStatement
Throws:
SQLException

close

public void close()
           throws SQLException
Specified by:
close in interface IBatchStatement
Throws:
SQLException


Copyright © 2002-2012. All Rights Reserved.