org.melati.poem.dbms.test.sql
Class ThrowingStatementJdbc3

Package class diagram package ThrowingStatementJdbc3
java.lang.Object
  extended by org.melati.poem.dbms.test.sql.Thrower
      extended by org.melati.poem.dbms.test.sql.ThrowingStatementJdbc3
All Implemented Interfaces:
Statement, Wrapper
Direct Known Subclasses:
ThrowingStatementJdbc4

public abstract class ThrowingStatementJdbc3
extends Thrower
implements Statement

The JDBC3 members of a Statement, decorated to throw SQLException on command.

Since:
5 Feb 2008
Author:
timp

Field Summary
 
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
ThrowingStatementJdbc3()
           
 
Method Summary
 void addBatch(String sql)
          
 void cancel()
          
 void clearBatch()
          
 void clearWarnings()
          
 void close()
          
 boolean execute(String sql)
          
 boolean execute(String sql, int autoGeneratedKeys)
          
 boolean execute(String sql, int[] columnIndexes)
          
 boolean execute(String sql, String[] columnNames)
          
 int[] executeBatch()
          
 ResultSet executeQuery(String sql)
          
 int executeUpdate(String sql)
          
 int executeUpdate(String sql, int autoGeneratedKeys)
          
 int executeUpdate(String sql, int[] columnIndexes)
          
 int executeUpdate(String sql, String[] columnNames)
          
 Connection getConnection()
          
 int getFetchDirection()
          
 int getFetchSize()
          
 ResultSet getGeneratedKeys()
          
 int getMaxFieldSize()
          
 int getMaxRows()
          
 boolean getMoreResults()
          
 boolean getMoreResults(int current)
          
 int getQueryTimeout()
          
 ResultSet getResultSet()
          
 int getResultSetConcurrency()
          
 int getResultSetHoldability()
          
 int getResultSetType()
          
 int getUpdateCount()
          
 SQLWarning getWarnings()
          
 void setCursorName(String name)
          
 void setEscapeProcessing(boolean enable)
          
 void setFetchDirection(int direction)
          
 void setFetchSize(int rows)
          
 void setMaxFieldSize(int max)
          
 void setMaxRows(int max)
          
 void setQueryTimeout(int seconds)
          
 
Methods inherited from class org.melati.poem.dbms.test.sql.Thrower
shouldThrow, startThrowing, startThrowingAfter, stopThrowing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.Statement
isClosed, isPoolable, setPoolable
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Constructor Detail

ThrowingStatementJdbc3

public ThrowingStatementJdbc3()
Method Detail

addBatch

public void addBatch(String sql)
              throws SQLException

Specified by:
addBatch in interface Statement
Throws:
SQLException
See Also:
Statement.addBatch(java.lang.String)

cancel

public void cancel()
            throws SQLException

Specified by:
cancel in interface Statement
Throws:
SQLException
See Also:
Statement.cancel()

clearBatch

public void clearBatch()
                throws SQLException

Specified by:
clearBatch in interface Statement
Throws:
SQLException
See Also:
Statement.clearBatch()

clearWarnings

public void clearWarnings()
                   throws SQLException

Specified by:
clearWarnings in interface Statement
Throws:
SQLException
See Also:
Statement.clearWarnings()

close

public void close()
           throws SQLException

Specified by:
close in interface Statement
Throws:
SQLException
See Also:
Statement.close()

execute

public boolean execute(String sql)
                throws SQLException

Specified by:
execute in interface Statement
Throws:
SQLException
See Also:
Statement.execute(java.lang.String)

execute

public boolean execute(String sql,
                       int autoGeneratedKeys)
                throws SQLException

Specified by:
execute in interface Statement
Throws:
SQLException
See Also:
Statement.execute(java.lang.String, int)

execute

public boolean execute(String sql,
                       int[] columnIndexes)
                throws SQLException

Specified by:
execute in interface Statement
Throws:
SQLException
See Also:
Statement.execute(java.lang.String, int[])

execute

public boolean execute(String sql,
                       String[] columnNames)
                throws SQLException

Specified by:
execute in interface Statement
Throws:
SQLException
See Also:
Statement.execute(java.lang.String, java.lang.String[])

executeBatch

public int[] executeBatch()
                   throws SQLException

Specified by:
executeBatch in interface Statement
Throws:
SQLException
See Also:
Statement.executeBatch()

executeQuery

public ResultSet executeQuery(String sql)
                       throws SQLException

Specified by:
executeQuery in interface Statement
Throws:
SQLException
See Also:
Statement.executeQuery(java.lang.String)

executeUpdate

public int executeUpdate(String sql)
                  throws SQLException

Specified by:
executeUpdate in interface Statement
Throws:
SQLException
See Also:
Statement.executeUpdate(java.lang.String)

executeUpdate

public int executeUpdate(String sql,
                         int autoGeneratedKeys)
                  throws SQLException

Specified by:
executeUpdate in interface Statement
Throws:
SQLException
See Also:
Statement.executeUpdate(java.lang.String, int)

executeUpdate

public int executeUpdate(String sql,
                         int[] columnIndexes)
                  throws SQLException

Specified by:
executeUpdate in interface Statement
Throws:
SQLException
See Also:
Statement.executeUpdate(java.lang.String, int[])

executeUpdate

public int executeUpdate(String sql,
                         String[] columnNames)
                  throws SQLException

Specified by:
executeUpdate in interface Statement
Throws:
SQLException
See Also:
Statement.executeUpdate(java.lang.String, java.lang.String[])

getConnection

public Connection getConnection()
                         throws SQLException

Specified by:
getConnection in interface Statement
Throws:
SQLException
See Also:
Statement.getConnection()

getFetchDirection

public int getFetchDirection()
                      throws SQLException

Specified by:
getFetchDirection in interface Statement
Throws:
SQLException
See Also:
Statement.getFetchDirection()

getFetchSize

public int getFetchSize()
                 throws SQLException

Specified by:
getFetchSize in interface Statement
Throws:
SQLException
See Also:
Statement.getFetchSize()

getGeneratedKeys

public ResultSet getGeneratedKeys()
                           throws SQLException

Specified by:
getGeneratedKeys in interface Statement
Throws:
SQLException
See Also:
Statement.getGeneratedKeys()

getMaxFieldSize

public int getMaxFieldSize()
                    throws SQLException

Specified by:
getMaxFieldSize in interface Statement
Throws:
SQLException
See Also:
Statement.getMaxFieldSize()

getMaxRows

public int getMaxRows()
               throws SQLException

Specified by:
getMaxRows in interface Statement
Throws:
SQLException
See Also:
Statement.getMaxRows()

getMoreResults

public boolean getMoreResults()
                       throws SQLException

Specified by:
getMoreResults in interface Statement
Throws:
SQLException
See Also:
Statement.getMoreResults()

getMoreResults

public boolean getMoreResults(int current)
                       throws SQLException

Specified by:
getMoreResults in interface Statement
Throws:
SQLException
See Also:
Statement.getMoreResults(int)

getQueryTimeout

public int getQueryTimeout()
                    throws SQLException

Specified by:
getQueryTimeout in interface Statement
Throws:
SQLException
See Also:
Statement.getQueryTimeout()

getResultSet

public ResultSet getResultSet()
                       throws SQLException

Specified by:
getResultSet in interface Statement
Throws:
SQLException
See Also:
Statement.getResultSet()

getResultSetConcurrency

public int getResultSetConcurrency()
                            throws SQLException

Specified by:
getResultSetConcurrency in interface Statement
Throws:
SQLException
See Also:
Statement.getResultSetConcurrency()

getResultSetHoldability

public int getResultSetHoldability()
                            throws SQLException

Specified by:
getResultSetHoldability in interface Statement
Throws:
SQLException
See Also:
Statement.getResultSetHoldability()

getResultSetType

public int getResultSetType()
                     throws SQLException

Specified by:
getResultSetType in interface Statement
Throws:
SQLException
See Also:
Statement.getResultSetType()

getUpdateCount

public int getUpdateCount()
                   throws SQLException

Specified by:
getUpdateCount in interface Statement
Throws:
SQLException
See Also:
Statement.getUpdateCount()

getWarnings

public SQLWarning getWarnings()
                       throws SQLException

Specified by:
getWarnings in interface Statement
Throws:
SQLException
See Also:
Statement.getWarnings()

setCursorName

public void setCursorName(String name)
                   throws SQLException

Specified by:
setCursorName in interface Statement
Throws:
SQLException
See Also:
Statement.setCursorName(java.lang.String)

setEscapeProcessing

public void setEscapeProcessing(boolean enable)
                         throws SQLException

Specified by:
setEscapeProcessing in interface Statement
Throws:
SQLException
See Also:
Statement.setEscapeProcessing(boolean)

setFetchDirection

public void setFetchDirection(int direction)
                       throws SQLException

Specified by:
setFetchDirection in interface Statement
Throws:
SQLException
See Also:
Statement.setFetchDirection(int)

setFetchSize

public void setFetchSize(int rows)
                  throws SQLException

Specified by:
setFetchSize in interface Statement
Throws:
SQLException
See Also:
Statement.setFetchSize(int)

setMaxFieldSize

public void setMaxFieldSize(int max)
                     throws SQLException

Specified by:
setMaxFieldSize in interface Statement
Throws:
SQLException
See Also:
Statement.setMaxFieldSize(int)

setMaxRows

public void setMaxRows(int max)
                throws SQLException

Specified by:
setMaxRows in interface Statement
Throws:
SQLException
See Also:
Statement.setMaxRows(int)

setQueryTimeout

public void setQueryTimeout(int seconds)
                     throws SQLException

Specified by:
setQueryTimeout in interface Statement
Throws:
SQLException
See Also:
Statement.setQueryTimeout(int)


Copyright © 2000-2010 PanEris. All Rights Reserved.