org.dbunit.database.statement
Class MockStatementFactory

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

public class MockStatementFactory
extends Object
implements IStatementFactory, com.mockobjects.Verifiable

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

Constructor Summary
MockStatementFactory()
           
 
Method Summary
 IBatchStatement createBatchStatement(IDatabaseConnection connection)
           
 IPreparedBatchStatement createPreparedBatchStatement(String sql, IDatabaseConnection connection)
           
 void setExpectedCreatePreparedStatementCalls(int callsCount)
           
 void setExpectedCreateStatementCalls(int callsCount)
           
 void setupStatement(IBatchStatement batchStatement)
           
 void verify()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockStatementFactory

public MockStatementFactory()
Method Detail

setupStatement

public void setupStatement(IBatchStatement batchStatement)

setExpectedCreateStatementCalls

public void setExpectedCreateStatementCalls(int callsCount)

setExpectedCreatePreparedStatementCalls

public void setExpectedCreatePreparedStatementCalls(int callsCount)

verify

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

createBatchStatement

public IBatchStatement createBatchStatement(IDatabaseConnection connection)
                                     throws SQLException
Specified by:
createBatchStatement in interface IStatementFactory
Throws:
SQLException

createPreparedBatchStatement

public IPreparedBatchStatement createPreparedBatchStatement(String sql,
                                                            IDatabaseConnection connection)
                                                     throws SQLException
Specified by:
createPreparedBatchStatement in interface IStatementFactory
Throws:
SQLException


Copyright © 2002-2012. All Rights Reserved.