com.elvyx
Class ExtStatement

java.lang.Object
  extended by com.elvyx.Relayer
      extended by com.elvyx.ExtStatement
All Implemented Interfaces:
java.sql.Statement
Direct Known Subclasses:
CallableStatement, PreparedStatement, Statement

public abstract class ExtStatement
extends Relayer
implements java.sql.Statement

CallableStatement wrapper

Since:
1.24
Version:
$Revision: 1.1 $
Author:
Armando Perdomo

Field Summary
protected  Connection connection
           
protected  java.lang.String extra
           
protected  java.lang.String sql
           
 
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
 
Method Summary
abstract  void addBatch(java.lang.String sql)
           
abstract  void cancel()
           
abstract  void clearBatch()
           
abstract  void clearWarnings()
           
abstract  void close()
           
abstract  boolean execute(java.lang.String sql)
           
abstract  boolean execute(java.lang.String sql, int autoGeneratedKeys)
           
abstract  boolean execute(java.lang.String sql, int[] columnIndexes)
           
abstract  boolean execute(java.lang.String sql, java.lang.String[] columnNames)
           
abstract  int[] executeBatch()
           
abstract  java.sql.ResultSet executeQuery(java.lang.String sql)
           
abstract  int executeUpdate(java.lang.String sql)
           
abstract  int executeUpdate(java.lang.String sql, int autoGeneratedKeys)
           
abstract  int executeUpdate(java.lang.String sql, int[] columnIndexes)
           
abstract  int executeUpdate(java.lang.String sql, java.lang.String[] columnNames)
           
abstract  java.sql.Connection getConnection()
           
abstract  int getFetchDirection()
           
abstract  int getFetchSize()
           
abstract  java.sql.ResultSet getGeneratedKeys()
           
abstract  int getMaxFieldSize()
           
abstract  int getMaxRows()
           
abstract  boolean getMoreResults()
           
abstract  boolean getMoreResults(int current)
           
abstract  int getQueryTimeout()
           
abstract  java.sql.ResultSet getResultSet()
           
abstract  int getResultSetConcurrency()
           
abstract  int getResultSetHoldability()
           
abstract  int getResultSetType()
           
 java.lang.String getSql()
           
abstract  int getUpdateCount()
           
abstract  java.sql.SQLWarning getWarnings()
           
abstract  void setCursorName(java.lang.String name)
           
abstract  void setEscapeProcessing(boolean enable)
           
abstract  void setFetchDirection(int direction)
           
abstract  void setFetchSize(int rows)
           
abstract  void setMaxFieldSize(int max)
           
abstract  void setMaxRows(int max)
           
abstract  void setQueryTimeout(int seconds)
           
protected  void submit(java.lang.String extra)
           
 
Methods inherited from class com.elvyx.Relayer
beforeSubmit, getCloseDate, getInitDate, setCloseDate, setInitDate, startTimer, stopTimer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

protected Connection connection

sql

protected java.lang.String sql

extra

protected java.lang.String extra
Method Detail

submit

protected void submit(java.lang.String extra)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

getSql

public java.lang.String getSql()

addBatch

public abstract void addBatch(java.lang.String sql)
                       throws java.sql.SQLException
Specified by:
addBatch in interface java.sql.Statement
Throws:
java.sql.SQLException

cancel

public abstract void cancel()
                     throws java.sql.SQLException
Specified by:
cancel in interface java.sql.Statement
Throws:
java.sql.SQLException

clearBatch

public abstract void clearBatch()
                         throws java.sql.SQLException
Specified by:
clearBatch in interface java.sql.Statement
Throws:
java.sql.SQLException

clearWarnings

public abstract void clearWarnings()
                            throws java.sql.SQLException
Specified by:
clearWarnings in interface java.sql.Statement
Throws:
java.sql.SQLException

close

public abstract void close()
                    throws java.sql.SQLException
Specified by:
close in interface java.sql.Statement
Throws:
java.sql.SQLException

execute

public abstract boolean execute(java.lang.String sql)
                         throws java.sql.SQLException
Specified by:
execute in interface java.sql.Statement
Throws:
java.sql.SQLException

execute

public abstract boolean execute(java.lang.String sql,
                                int autoGeneratedKeys)
Specified by:
execute in interface java.sql.Statement

execute

public abstract boolean execute(java.lang.String sql,
                                int[] columnIndexes)
                         throws java.sql.SQLException
Specified by:
execute in interface java.sql.Statement
Throws:
java.sql.SQLException

execute

public abstract boolean execute(java.lang.String sql,
                                java.lang.String[] columnNames)
Specified by:
execute in interface java.sql.Statement

executeBatch

public abstract int[] executeBatch()
                            throws java.sql.SQLException
Specified by:
executeBatch in interface java.sql.Statement
Throws:
java.sql.SQLException

executeQuery

public abstract java.sql.ResultSet executeQuery(java.lang.String sql)
                                         throws java.sql.SQLException
Specified by:
executeQuery in interface java.sql.Statement
Throws:
java.sql.SQLException

executeUpdate

public abstract int executeUpdate(java.lang.String sql)
                           throws java.sql.SQLException
Specified by:
executeUpdate in interface java.sql.Statement
Throws:
java.sql.SQLException

executeUpdate

public abstract int executeUpdate(java.lang.String sql,
                                  int autoGeneratedKeys)
Specified by:
executeUpdate in interface java.sql.Statement

executeUpdate

public abstract int executeUpdate(java.lang.String sql,
                                  int[] columnIndexes)
Specified by:
executeUpdate in interface java.sql.Statement

executeUpdate

public abstract int executeUpdate(java.lang.String sql,
                                  java.lang.String[] columnNames)
Specified by:
executeUpdate in interface java.sql.Statement

getConnection

public abstract java.sql.Connection getConnection()
                                           throws java.sql.SQLException
Specified by:
getConnection in interface java.sql.Statement
Throws:
java.sql.SQLException

getFetchDirection

public abstract int getFetchDirection()
                               throws java.sql.SQLException
Specified by:
getFetchDirection in interface java.sql.Statement
Throws:
java.sql.SQLException

getFetchSize

public abstract int getFetchSize()
                          throws java.sql.SQLException
Specified by:
getFetchSize in interface java.sql.Statement
Throws:
java.sql.SQLException

getGeneratedKeys

public abstract java.sql.ResultSet getGeneratedKeys()
                                             throws java.sql.SQLException
Specified by:
getGeneratedKeys in interface java.sql.Statement
Throws:
java.sql.SQLException

getMaxFieldSize

public abstract int getMaxFieldSize()
                             throws java.sql.SQLException
Specified by:
getMaxFieldSize in interface java.sql.Statement
Throws:
java.sql.SQLException

getMaxRows

public abstract int getMaxRows()
                        throws java.sql.SQLException
Specified by:
getMaxRows in interface java.sql.Statement
Throws:
java.sql.SQLException

getMoreResults

public abstract boolean getMoreResults()
                                throws java.sql.SQLException
Specified by:
getMoreResults in interface java.sql.Statement
Throws:
java.sql.SQLException

getMoreResults

public abstract boolean getMoreResults(int current)
                                throws java.sql.SQLException
Specified by:
getMoreResults in interface java.sql.Statement
Throws:
java.sql.SQLException

getQueryTimeout

public abstract int getQueryTimeout()
                             throws java.sql.SQLException
Specified by:
getQueryTimeout in interface java.sql.Statement
Throws:
java.sql.SQLException

getResultSet

public abstract java.sql.ResultSet getResultSet()
                                         throws java.sql.SQLException
Specified by:
getResultSet in interface java.sql.Statement
Throws:
java.sql.SQLException

getResultSetConcurrency

public abstract int getResultSetConcurrency()
                                     throws java.sql.SQLException
Specified by:
getResultSetConcurrency in interface java.sql.Statement
Throws:
java.sql.SQLException

getResultSetHoldability

public abstract int getResultSetHoldability()
                                     throws java.sql.SQLException
Specified by:
getResultSetHoldability in interface java.sql.Statement
Throws:
java.sql.SQLException

getResultSetType

public abstract int getResultSetType()
                              throws java.sql.SQLException
Specified by:
getResultSetType in interface java.sql.Statement
Throws:
java.sql.SQLException

getUpdateCount

public abstract int getUpdateCount()
                            throws java.sql.SQLException
Specified by:
getUpdateCount in interface java.sql.Statement
Throws:
java.sql.SQLException

getWarnings

public abstract java.sql.SQLWarning getWarnings()
                                         throws java.sql.SQLException
Specified by:
getWarnings in interface java.sql.Statement
Throws:
java.sql.SQLException

setCursorName

public abstract void setCursorName(java.lang.String name)
                            throws java.sql.SQLException
Specified by:
setCursorName in interface java.sql.Statement
Throws:
java.sql.SQLException

setEscapeProcessing

public abstract void setEscapeProcessing(boolean enable)
                                  throws java.sql.SQLException
Specified by:
setEscapeProcessing in interface java.sql.Statement
Throws:
java.sql.SQLException

setFetchDirection

public abstract void setFetchDirection(int direction)
                                throws java.sql.SQLException
Specified by:
setFetchDirection in interface java.sql.Statement
Throws:
java.sql.SQLException

setFetchSize

public abstract void setFetchSize(int rows)
                           throws java.sql.SQLException
Specified by:
setFetchSize in interface java.sql.Statement
Throws:
java.sql.SQLException

setMaxFieldSize

public abstract void setMaxFieldSize(int max)
                              throws java.sql.SQLException
Specified by:
setMaxFieldSize in interface java.sql.Statement
Throws:
java.sql.SQLException

setMaxRows

public abstract void setMaxRows(int max)
                         throws java.sql.SQLException
Specified by:
setMaxRows in interface java.sql.Statement
Throws:
java.sql.SQLException

setQueryTimeout

public abstract void setQueryTimeout(int seconds)
                              throws java.sql.SQLException
Specified by:
setQueryTimeout in interface java.sql.Statement
Throws:
java.sql.SQLException


Copyright © 2006-2008 Armando Perdomo. All Rights Reserved.