org.dbforms.conprovider
Class SingleConnectionWrapper

java.lang.Object
  extended by org.dbforms.conprovider.SingleConnectionWrapper
All Implemented Interfaces:
Connection

public class SingleConnectionWrapper
extends Object
implements Connection

DOCUMENT ME!

Version:
$Revision: 1.14 $
Author:
$author$

Field Summary
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
SingleConnectionWrapper(Connection con)
          Creates a new SingleConnectionWrapper object.
 
Method Summary
 void clearWarnings()
          DOCUMENT ME!
 void close()
          Close only statements of this connection!
 void closeReally()
          DOCUMENT ME!
 void commit()
          DOCUMENT ME!
 Statement createStatement()
          DOCUMENT ME!
 Statement createStatement(int resultSetType, int resultSetConcurrency)
          DOCUMENT ME!
 Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
          DOCUMENT ME!
 boolean getAutoCommit()
          DOCUMENT ME!
 String getCatalog()
          DOCUMENT ME!
 int getHoldability()
          DOCUMENT ME!
 DatabaseMetaData getMetaData()
          DOCUMENT ME!
 int getTransactionIsolation()
          DOCUMENT ME!
 Map getTypeMap()
          DOCUMENT ME!
 SQLWarning getWarnings()
          DOCUMENT ME!
 boolean isClosed()
          DOCUMENT ME!
 boolean isReadOnly()
          DOCUMENT ME!
 String nativeSQL(String sql)
          DOCUMENT ME!
 CallableStatement prepareCall(String sql)
          DOCUMENT ME!
 CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency)
          DOCUMENT ME!
 CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
          DOCUMENT ME!
 PreparedStatement prepareStatement(String sql)
          DOCUMENT ME!
 PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
          DOCUMENT ME!
 PreparedStatement prepareStatement(String sql, int[] columnIndexes)
          DOCUMENT ME!
 PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency)
          DOCUMENT ME!
 PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
          DOCUMENT ME!
 PreparedStatement prepareStatement(String sql, String[] columnNames)
          DOCUMENT ME!
 void releaseSavepoint(Savepoint savepoint)
          DOCUMENT ME!
 void rollback()
          DOCUMENT ME!
 void rollback(Savepoint savepoint)
          DOCUMENT ME!
 void setAutoCommit(boolean autoCommit)
          DOCUMENT ME!
 void setCatalog(String catalog)
          DOCUMENT ME!
 void setHoldability(int holdability)
          DOCUMENT ME!
 void setReadOnly(boolean readOnly)
          DOCUMENT ME!
 Savepoint setSavepoint()
          DOCUMENT ME!
 Savepoint setSavepoint(String name)
          DOCUMENT ME!
 void setTransactionIsolation(int level)
          DOCUMENT ME!
 void setTypeMap(Map map)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleConnectionWrapper

public SingleConnectionWrapper(Connection con)
Creates a new SingleConnectionWrapper object.

Parameters:
con - DOCUMENT ME!
Method Detail

setAutoCommit

public void setAutoCommit(boolean autoCommit)
                   throws SQLException
DOCUMENT ME!

Specified by:
setAutoCommit in interface Connection
Parameters:
autoCommit - DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

getAutoCommit

public boolean getAutoCommit()
                      throws SQLException
DOCUMENT ME!

Specified by:
getAutoCommit in interface Connection
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

setCatalog

public void setCatalog(String catalog)
                throws SQLException
DOCUMENT ME!

Specified by:
setCatalog in interface Connection
Parameters:
catalog - DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

getCatalog

public String getCatalog()
                  throws SQLException
DOCUMENT ME!

Specified by:
getCatalog in interface Connection
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

isClosed

public boolean isClosed()
                 throws SQLException
DOCUMENT ME!

Specified by:
isClosed in interface Connection
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

setHoldability

public void setHoldability(int holdability)
                    throws SQLException
DOCUMENT ME!

Specified by:
setHoldability in interface Connection
Parameters:
holdability - DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

getHoldability

public int getHoldability()
                   throws SQLException
DOCUMENT ME!

Specified by:
getHoldability in interface Connection
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

getMetaData

public DatabaseMetaData getMetaData()
                             throws SQLException
DOCUMENT ME!

Specified by:
getMetaData in interface Connection
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

setReadOnly

public void setReadOnly(boolean readOnly)
                 throws SQLException
DOCUMENT ME!

Specified by:
setReadOnly in interface Connection
Parameters:
readOnly - DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

isReadOnly

public boolean isReadOnly()
                   throws SQLException
DOCUMENT ME!

Specified by:
isReadOnly in interface Connection
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

setSavepoint

public Savepoint setSavepoint()
                       throws SQLException
DOCUMENT ME!

Specified by:
setSavepoint in interface Connection
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

setSavepoint

public Savepoint setSavepoint(String name)
                       throws SQLException
DOCUMENT ME!

Specified by:
setSavepoint in interface Connection
Parameters:
name - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

setTransactionIsolation

public void setTransactionIsolation(int level)
                             throws SQLException
DOCUMENT ME!

Specified by:
setTransactionIsolation in interface Connection
Parameters:
level - DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

getTransactionIsolation

public int getTransactionIsolation()
                            throws SQLException
DOCUMENT ME!

Specified by:
getTransactionIsolation in interface Connection
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

setTypeMap

public void setTypeMap(Map map)
                throws SQLException
DOCUMENT ME!

Specified by:
setTypeMap in interface Connection
Parameters:
map - DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

getTypeMap

public Map getTypeMap()
               throws SQLException
DOCUMENT ME!

Specified by:
getTypeMap in interface Connection
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

getWarnings

public SQLWarning getWarnings()
                       throws SQLException
DOCUMENT ME!

Specified by:
getWarnings in interface Connection
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

clearWarnings

public void clearWarnings()
                   throws SQLException
DOCUMENT ME!

Specified by:
clearWarnings in interface Connection
Throws:
SQLException - DOCUMENT ME!

close

public void close()
           throws SQLException
Close only statements of this connection! do not close the connection!

Specified by:
close in interface Connection
Throws:
SQLException

closeReally

public void closeReally()
                 throws SQLException
DOCUMENT ME!

Throws:
SQLException - DOCUMENT ME!

commit

public void commit()
            throws SQLException
DOCUMENT ME!

Specified by:
commit in interface Connection
Throws:
SQLException - DOCUMENT ME!

createStatement

public Statement createStatement()
                          throws SQLException
DOCUMENT ME!

Specified by:
createStatement in interface Connection
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

createStatement

public Statement createStatement(int resultSetType,
                                 int resultSetConcurrency)
                          throws SQLException
DOCUMENT ME!

Specified by:
createStatement in interface Connection
Parameters:
resultSetType - DOCUMENT ME!
resultSetConcurrency - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

createStatement

public Statement createStatement(int resultSetType,
                                 int resultSetConcurrency,
                                 int resultSetHoldability)
                          throws SQLException
DOCUMENT ME!

Specified by:
createStatement in interface Connection
Parameters:
resultSetType - DOCUMENT ME!
resultSetConcurrency - DOCUMENT ME!
resultSetHoldability - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

nativeSQL

public String nativeSQL(String sql)
                 throws SQLException
DOCUMENT ME!

Specified by:
nativeSQL in interface Connection
Parameters:
sql - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

prepareCall

public CallableStatement prepareCall(String sql)
                              throws SQLException
DOCUMENT ME!

Specified by:
prepareCall in interface Connection
Parameters:
sql - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

prepareCall

public CallableStatement prepareCall(String sql,
                                     int resultSetType,
                                     int resultSetConcurrency)
                              throws SQLException
DOCUMENT ME!

Specified by:
prepareCall in interface Connection
Parameters:
sql - DOCUMENT ME!
resultSetType - DOCUMENT ME!
resultSetConcurrency - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

prepareCall

public CallableStatement prepareCall(String sql,
                                     int resultSetType,
                                     int resultSetConcurrency,
                                     int resultSetHoldability)
                              throws SQLException
DOCUMENT ME!

Specified by:
prepareCall in interface Connection
Parameters:
sql - DOCUMENT ME!
resultSetType - DOCUMENT ME!
resultSetConcurrency - DOCUMENT ME!
resultSetHoldability - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

prepareStatement

public PreparedStatement prepareStatement(String sql)
                                   throws SQLException
DOCUMENT ME!

Specified by:
prepareStatement in interface Connection
Parameters:
sql - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

prepareStatement

public PreparedStatement prepareStatement(String sql,
                                          int resultSetType,
                                          int resultSetConcurrency)
                                   throws SQLException
DOCUMENT ME!

Specified by:
prepareStatement in interface Connection
Parameters:
sql - DOCUMENT ME!
resultSetType - DOCUMENT ME!
resultSetConcurrency - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

prepareStatement

public PreparedStatement prepareStatement(String sql,
                                          int resultSetType,
                                          int resultSetConcurrency,
                                          int resultSetHoldability)
                                   throws SQLException
DOCUMENT ME!

Specified by:
prepareStatement in interface Connection
Parameters:
sql - DOCUMENT ME!
resultSetType - DOCUMENT ME!
resultSetConcurrency - DOCUMENT ME!
resultSetHoldability - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

prepareStatement

public PreparedStatement prepareStatement(String sql,
                                          int autoGeneratedKeys)
                                   throws SQLException
DOCUMENT ME!

Specified by:
prepareStatement in interface Connection
Parameters:
sql - DOCUMENT ME!
autoGeneratedKeys - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

prepareStatement

public PreparedStatement prepareStatement(String sql,
                                          int[] columnIndexes)
                                   throws SQLException
DOCUMENT ME!

Specified by:
prepareStatement in interface Connection
Parameters:
sql - DOCUMENT ME!
columnIndexes - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

prepareStatement

public PreparedStatement prepareStatement(String sql,
                                          String[] columnNames)
                                   throws SQLException
DOCUMENT ME!

Specified by:
prepareStatement in interface Connection
Parameters:
sql - DOCUMENT ME!
columnNames - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

releaseSavepoint

public void releaseSavepoint(Savepoint savepoint)
                      throws SQLException
DOCUMENT ME!

Specified by:
releaseSavepoint in interface Connection
Parameters:
savepoint - DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!

rollback

public void rollback()
              throws SQLException
DOCUMENT ME!

Specified by:
rollback in interface Connection
Throws:
SQLException - DOCUMENT ME!

rollback

public void rollback(Savepoint savepoint)
              throws SQLException
DOCUMENT ME!

Specified by:
rollback in interface Connection
Parameters:
savepoint - DOCUMENT ME!
Throws:
SQLException - DOCUMENT ME!


Copyright © 2002-2006 DbForms. All Rights Reserved.