br.ufg.integrate.wrapper.jdbc
Class IntegrateStatement

java.lang.Object
  extended by br.ufg.integrate.wrapper.jdbc.IntegrateStatement
All Implemented Interfaces:
Statement, Wrapper
Direct Known Subclasses:
StatementImpl

public abstract class IntegrateStatement
extends Object
implements Statement

Version:
0.1 Classe abstrata que implementa a classe java.sql.Statement. Os métodos a serem implementados são os mais básicos da interface implementada, permitindo a implementação de classes para um driver JDBC básico, sem todos os recursos da API. os métodos que não são abstratos não estão implementados, e apenas lançam uma exceção. Extensões desta classe podem sobrepor os métodos que acharem necessários.
Author:
Rogerio

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
IntegrateStatement()
           
 
Method Summary
 void addBatch(String arg0)
           
 void cancel()
           
 void clearBatch()
           
 void clearWarnings()
           
abstract  void close()
          Releases this Statement object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.
abstract  boolean execute(String arg0)
           
 boolean execute(String arg0, int arg1)
           
 boolean execute(String arg0, int[] arg1)
           
 boolean execute(String arg0, String[] arg1)
           
 int[] executeBatch()
           
abstract  ResultSet executeQuery(String arg0)
           
abstract  int executeUpdate(String arg0)
           
 int executeUpdate(String arg0, int arg1)
           
 int executeUpdate(String arg0, int[] arg1)
           
 int executeUpdate(String arg0, String[] arg1)
           
abstract  Connection getConnection()
          Gets the connection attribute of the Satement object
 int getFetchDirection()
          Gets the fetchDirection attribute of the Satement object
 int getFetchSize()
          Gets the fetchSize attribute of the Satement object
 ResultSet getGeneratedKeys()
           
 int getMaxFieldSize()
          Gets the maxFieldSize attribute of the Satement object
 int getMaxRows()
          Gets the maxRows attribute of the Satement object
 boolean getMoreResults()
          Gets the moreResults attribute of the Satement object
 boolean getMoreResults(int arg0)
           
 int getQueryTimeout()
          Gets the queryTimeout attribute of the Satement object
 ResultSet getResultSet()
          Gets the resultSet attribute of the Satement object
 int getResultSetConcurrency()
          Gets the resultSetConcurrency attribute of the Satement object
 int getResultSetHoldability()
           
 int getResultSetType()
          Gets the resultSetType attribute of the Satement object
 int getUpdateCount()
          Gets the updateCount attribute of the Satement object
 SQLWarning getWarnings()
          Gets the warnings attribute of the Satement object
 boolean isClosed()
           
 boolean isPoolable()
           
 boolean isWrapperFor(Class<?> arg0)
           
 void setCursorName(String arg0)
          Sets the cursorName attribute of the Satement object
 void setEscapeProcessing(boolean arg0)
          Sets the escapeProcessing attribute of the Satement object
 void setFetchDirection(int arg0)
          Sets the fetchDirection attribute of the Satement object
 void setFetchSize(int arg0)
          Sets the fetchSize attribute of the Satement object
 void setMaxFieldSize(int arg0)
          Sets the maxFieldSize attribute of the Statement object
 void setMaxRows(int arg0)
          Sets the maxRows attribute of the Satement object
 void setPoolable(boolean arg0)
           
 void setQueryTimeout(int arg0)
          Sets the queryTimeout attribute of the Satement object
<T> T
unwrap(Class<T> arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegrateStatement

public IntegrateStatement()
Method Detail

addBatch

public void addBatch(String arg0)
              throws SQLException
Specified by:
addBatch in interface Statement
Throws:
SQLException
See Also:
Statement.addBatch(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 abstract void close()
                    throws SQLException
Releases this Statement object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed. It is generally good practice to release resources as soon as you are finished with them to avoid tying up database resources.

Calling the method close on a Statement object that is already closed has no effect.

Note: A Statement object is automatically closed when it is garbage collected. When a Statement object is closed, its current ResultSet object, if one exists, is also closed.

Specified by:
close in interface Statement
Throws:
SQLException - if a database access error occurs

execute

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

execute

public boolean execute(String arg0,
                       int arg1)
                throws SQLException
Specified by:
execute in interface Statement
Throws:
SQLException
See Also:
Statement.execute(java.lang.String)

execute

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

execute

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

executeBatch

public int[] executeBatch()
                   throws SQLException
Specified by:
executeBatch in interface Statement
Throws:
SQLException
See Also:
Statement.executeBatch()

executeQuery

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

executeUpdate

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

executeUpdate

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

executeUpdate

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

executeUpdate

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

getConnection

public abstract Connection getConnection()
                                  throws SQLException
Gets the connection attribute of the Satement object

Specified by:
getConnection in interface Statement
Returns:
The connection value
Throws:
SQLException - Description of Exception
Since:

getFetchDirection

public int getFetchDirection()
                      throws SQLException
Gets the fetchDirection attribute of the Satement object

Specified by:
getFetchDirection in interface Statement
Returns:
The fetchDirection value
Throws:
SQLException - Description of Exception
Since:

getFetchSize

public int getFetchSize()
                 throws SQLException
Gets the fetchSize attribute of the Satement object

Specified by:
getFetchSize in interface Statement
Returns:
The fetchSize value
Throws:
SQLException - Description of Exception
Since:

getGeneratedKeys

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

getMaxFieldSize

public int getMaxFieldSize()
                    throws SQLException
Gets the maxFieldSize attribute of the Satement object

Specified by:
getMaxFieldSize in interface Statement
Returns:
The maxFieldSize value
Throws:
SQLException - Description of Exception
Since:

getMaxRows

public int getMaxRows()
               throws SQLException
Gets the maxRows attribute of the Satement object

Specified by:
getMaxRows in interface Statement
Returns:
The maxRows value
Throws:
SQLException - Description of Exception
Since:

getMoreResults

public boolean getMoreResults()
                       throws SQLException
Gets the moreResults attribute of the Satement object

Specified by:
getMoreResults in interface Statement
Returns:
The moreResults value
Throws:
SQLException - Description of Exception
Since:

getMoreResults

public boolean getMoreResults(int arg0)
                       throws SQLException
Specified by:
getMoreResults in interface Statement
Throws:
SQLException
See Also:
Statement.getMoreResults()

getQueryTimeout

public int getQueryTimeout()
                    throws SQLException
Gets the queryTimeout attribute of the Satement object

Specified by:
getQueryTimeout in interface Statement
Returns:
The queryTimeout value
Throws:
SQLException - Description of Exception
Since:

getResultSet

public ResultSet getResultSet()
                       throws SQLException
Gets the resultSet attribute of the Satement object

Specified by:
getResultSet in interface Statement
Returns:
The resultSet value
Throws:
SQLException - Description of Exception
Since:

getResultSetConcurrency

public int getResultSetConcurrency()
                            throws SQLException
Gets the resultSetConcurrency attribute of the Satement object

Specified by:
getResultSetConcurrency in interface Statement
Returns:
The resultSetConcurrency value
Throws:
SQLException - Description of Exception
Since:

getResultSetHoldability

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

getResultSetType

public int getResultSetType()
                     throws SQLException
Gets the resultSetType attribute of the Satement object

Specified by:
getResultSetType in interface Statement
Returns:
The resultSetType value
Throws:
SQLException - Description of Exception
Since:

getUpdateCount

public int getUpdateCount()
                   throws SQLException
Gets the updateCount attribute of the Satement object

Specified by:
getUpdateCount in interface Statement
Returns:
The updateCount value
Throws:
SQLException - Description of Exception
Since:

getWarnings

public SQLWarning getWarnings()
                       throws SQLException
Gets the warnings attribute of the Satement object

Specified by:
getWarnings in interface Statement
Returns:
The warnings value
Throws:
SQLException - Description of Exception
Since:

isClosed

public boolean isClosed()
                 throws SQLException
Specified by:
isClosed in interface Statement
Throws:
SQLException
See Also:
Statement.isClosed()

isPoolable

public boolean isPoolable()
                   throws SQLException
Specified by:
isPoolable in interface Statement
Throws:
SQLException
See Also:
Statement.isPoolable()

setCursorName

public void setCursorName(String arg0)
                   throws SQLException
Sets the cursorName attribute of the Satement object

Specified by:
setCursorName in interface Statement
Parameters:
arg0 - The new cursorName value
Throws:
SQLException - Description of Exception
Since:

setEscapeProcessing

public void setEscapeProcessing(boolean arg0)
                         throws SQLException
Sets the escapeProcessing attribute of the Satement object

Specified by:
setEscapeProcessing in interface Statement
Parameters:
arg0 - The new escapeProcessing value
Throws:
SQLException - Description of Exception
Since:

setFetchDirection

public void setFetchDirection(int arg0)
                       throws SQLException
Sets the fetchDirection attribute of the Satement object

Specified by:
setFetchDirection in interface Statement
Parameters:
arg0 - The new fetchDirection value
Throws:
SQLException - Description of Exception
Since:

setFetchSize

public void setFetchSize(int arg0)
                  throws SQLException
Sets the fetchSize attribute of the Satement object

Specified by:
setFetchSize in interface Statement
Parameters:
arg0 - The new fetchSize value
Throws:
SQLException - Description of Exception
Since:

setMaxFieldSize

public void setMaxFieldSize(int arg0)
                     throws SQLException
Sets the maxFieldSize attribute of the Statement object

Specified by:
setMaxFieldSize in interface Statement
Parameters:
arg0 - The new maxFieldSize value
Throws:
SQLException - Description of Exception
Since:

setMaxRows

public void setMaxRows(int arg0)
                throws SQLException
Sets the maxRows attribute of the Satement object

Specified by:
setMaxRows in interface Statement
Parameters:
arg0 - The new maxRows value
Throws:
SQLException - Description of Exception
Since:

setPoolable

public void setPoolable(boolean arg0)
                 throws SQLException
Specified by:
setPoolable in interface Statement
Throws:
SQLException
See Also:
Statement.isPoolable()

setQueryTimeout

public void setQueryTimeout(int arg0)
                     throws SQLException
Sets the queryTimeout attribute of the Satement object

Specified by:
setQueryTimeout in interface Statement
Parameters:
arg0 - The new queryTimeout value
Throws:
SQLException - Description of Exception
Since:

isWrapperFor

public boolean isWrapperFor(Class<?> arg0)
                     throws SQLException
Specified by:
isWrapperFor in interface Wrapper
Throws:
SQLException
See Also:
Wrapper.isWrapperFor(java.lang.Class)

unwrap

public <T> T unwrap(Class<T> arg0)
         throws SQLException
Specified by:
unwrap in interface Wrapper
Throws:
SQLException
See Also:
Wrapper.unwrap(java.lang.Class)


Copyright © 2008 Rogério Arantes Gaioso. All Rights Reserved.