org.dbunit.database.statement
Class MockPreparedStatement

java.lang.Object
  extended by com.mockobjects.MockObject
      extended by com.mockobjects.sql.MockPreparedStatement
          extended by org.dbunit.database.statement.MockPreparedStatement
All Implemented Interfaces:
com.mockobjects.Verifiable, PreparedStatement, Statement, Wrapper

public class MockPreparedStatement
extends com.mockobjects.sql.MockPreparedStatement

Since:
2.3.0
Version:
$Revision: 754 $
Author:
gommma

Field Summary
protected  com.mockobjects.ExpectationCounter myCloseCalls
           
 
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
Constructor Summary
MockPreparedStatement()
           
 
Method Summary
 int getLastSetObjectParamIndex()
           
 Object getLastSetObjectParamValue()
           
 int getLastSetObjectTargetSqlType()
           
protected  void innerExecute()
           
 void setObject(int parameterIndex, Object value, int targetSqlType)
           
 
Methods inherited from class com.mockobjects.sql.MockPreparedStatement
execute, execute, execute, executeUpdate, executeUpdate, executeUpdate, getGeneratedKeys, getMoreResults, getParameterMetaData, getResultSetHoldability, isClosed, isPoolable, isWrapperFor, setAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setCharacterStream, setCharacterStream, setClob, setClob, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setObject, setPoolable, setRowId, setSQLXML, setURL, unwrap
 
Methods inherited from class com.mockobjects.MockObject
assertEquals, assertEquals, assertTrue, fail, notImplemented, notYetImplemented, notYetImplemented, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myCloseCalls

protected final com.mockobjects.ExpectationCounter myCloseCalls
Constructor Detail

MockPreparedStatement

public MockPreparedStatement()
Method Detail

setObject

public void setObject(int parameterIndex,
                      Object value,
                      int targetSqlType)
               throws SQLException
Specified by:
setObject in interface PreparedStatement
Overrides:
setObject in class com.mockobjects.sql.MockPreparedStatement
Throws:
SQLException

getLastSetObjectParamIndex

public int getLastSetObjectParamIndex()

getLastSetObjectParamValue

public Object getLastSetObjectParamValue()

getLastSetObjectTargetSqlType

public int getLastSetObjectTargetSqlType()

innerExecute

protected void innerExecute()
                     throws SQLException
Throws:
SQLException


Copyright © 2002-2012. All Rights Reserved.