jxDBCon 0.9z

org.sourceforge.jxdbcon.postgresql
Class PGStatement

java.lang.Object
  |
  +--org.sourceforge.jxdbcon.AbstractStatement
        |
        +--org.sourceforge.jxdbcon.postgresql.PGStatement
All Implemented Interfaces:
Statement

public final class PGStatement
extends AbstractStatement

PGStatement implements Statement

Version:
$Revision: 1.11 $
Author:
Keve Müller

Field Summary
private  PGExecResult res
          The result from the execution.
private  String sql
          The last SQL statement executed.
 
Fields inherited from class org.sourceforge.jxdbcon.AbstractStatement
batch, conn, cursorName, escapeProcessing, fetchDirection, fetchSize, maxFieldSize, maxRows, queryTimeout, warnings
 
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
PGStatement(PGConnection conn, int resultSetType)
           
 
Method Summary
 void cancel()
           
 void close()
           
 boolean execute(String sql)
           
 int[] executeBatch()
          Not supported.
 ResultSet getGeneratedKeys()
          Not supported.
 boolean getMoreResults()
          Get the next result.
 ResultSet getResultSet()
           
 int getUpdateCount()
           
 
Methods inherited from class org.sourceforge.jxdbcon.AbstractStatement
addBatch, clearBatch, clearWarnings, execute, execute, execute, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, finalize, getConnection, getCursorName, getFetchDirection, getFetchSize, getMaxFieldSize, getMaxRows, getMoreResults, getQueryTimeout, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getWarnings, isClosed, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

res

private PGExecResult res
The result from the execution.


sql

private String sql
The last SQL statement executed.

Constructor Detail

PGStatement

public PGStatement(PGConnection conn,
                   int resultSetType)
Method Detail

cancel

public void cancel()
            throws SQLException
Specified by:
cancel in interface Statement
Overrides:
cancel in class AbstractStatement
SQLException

close

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

execute

public boolean execute(String sql)
                throws SQLException
SQLException

executeBatch

public int[] executeBatch()
                   throws SQLException
Description copied from class: AbstractStatement
Not supported.

Specified by:
executeBatch in interface Statement
Overrides:
executeBatch in class AbstractStatement
SQLException

getGeneratedKeys

public ResultSet getGeneratedKeys()
                           throws SQLException
Description copied from class: AbstractStatement
Not supported.

Specified by:
getGeneratedKeys in interface Statement
Overrides:
getGeneratedKeys in class AbstractStatement
SQLException

getMoreResults

public boolean getMoreResults()
                       throws SQLException
Get the next result.

Specified by:
getMoreResults in interface Statement
Overrides:
getMoreResults in class AbstractStatement
SQLException

getResultSet

public ResultSet getResultSet()
                       throws SQLException
Specified by:
getResultSet in interface Statement
Specified by:
getResultSet in class AbstractStatement
SQLException

getUpdateCount

public int getUpdateCount()
                   throws SQLException
Specified by:
getUpdateCount in interface Statement
Specified by:
getUpdateCount in class AbstractStatement
SQLException

jxDBCon 0.9z

Copyright © 2001,2002 Keve Müller; see LICENSE file for details.