com.holub.database.jdbc
Class JDBCStatement

java.lang.Object
  extended by com.holub.database.jdbc.adapters.StatementAdapter
      extended by com.holub.database.jdbc.JDBCStatement
All Implemented Interfaces:
Statement

public class JDBCStatement
extends StatementAdapter

©2004 Allen I. Holub. All rights reserved.

This code may be used freely by yourself with the following restrictions:

  1. Your splash screen, about box, or equivalent, must include Allen Holub's name, copyright, and URL. For example:

    This program contains Allen Holub's SQL package.
    (c) 2005 Allen I. Holub. All Rights Reserved.
    http://www.holub.com


    If your program does not run interactively, then the foregoing notice must appear in your documentation.
  2. You may not redistribute (or mirror) the source code.
  3. You must report any bugs that you find to me. Use the form at http://www.holub.com/company/contact.html or send email.
  4. The software is supplied as is. Neither Allen Holub nor Holub Associates are responsible for any bugs (or any problems caused by bugs, including lost productivity or data) in any of this code.

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
JDBCStatement(Database database)
           
 
Method Summary
 void close()
           
 ResultSet executeQuery(String sqlQuery)
           
 int executeUpdate(String sqlString)
           
 
Methods inherited from class com.holub.database.jdbc.adapters.StatementAdapter
addBatch, cancel, checkClosed, clearBatch, clearWarnings, execute, execute, execute, execute, executeBatch, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCStatement

public JDBCStatement(Database database)
Method Detail

executeUpdate

public int executeUpdate(String sqlString)
                  throws SQLException
Specified by:
executeUpdate in interface Statement
Overrides:
executeUpdate in class StatementAdapter
Throws:
SQLException

executeQuery

public ResultSet executeQuery(String sqlQuery)
                       throws SQLException
Specified by:
executeQuery in interface Statement
Overrides:
executeQuery in class StatementAdapter
Throws:
SQLException

close

public void close()
           throws SQLException
Specified by:
close in interface Statement
Overrides:
close in class StatementAdapter
Throws:
SQLException