br.ufg.integrate.jdbc
Class ConnectionImpl

java.lang.Object
  extended by br.ufg.integrate.jdbc.ConnectionImpl
All Implemented Interfaces:
Constants, Connection, Wrapper

public class ConnectionImpl
extends Object
implements Connection, Constants

Version:
0.1 Adapted from xlSQL.
Author:
Rogerio

Field Summary
protected  Connection dbCon
          DOCUMENT ME!
protected  String PASSWORD
           
protected  String SCHEMA
           
protected  String URL
           
protected  String USER
           
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Fields inherited from interface br.ufg.integrate.util.Constants
DB_MAJOR_VERSION, DB_MINOR_VERSION, DRIVER_CLASS, DRIVER_MAJOR_VERSION, DRIVER_MINOR_VERSION, DRIVER_NAME, DRIVER_RELEASE, INTEGRATE_CONFIG_FILE, JDBC_COMPLIANT, JDBC_MAJOR_VERSION, JDBC_MINOR_VERSION, PRODUCT_NAME, PRODUCT_RELEASE, URL_PREFIX
 
Constructor Summary
ConnectionImpl(Connection c, String url, String schema, Integration i)
           
 
Method Summary
 void clearWarnings()
          Implements method in interface java.sql.Connection
 void close()
          Implements method in interface java.sql.Connection
 void commit()
          Implements method in interface java.sql.Connection
 Array createArrayOf(String typeName, Object[] elements)
          Implements method in interface java.sql.Connection
 Blob createBlob()
          Implements method in interface java.sql.Connection
 Clob createClob()
          Implements method in interface java.sql.Connection
 NClob createNClob()
          Implements method in interface java.sql.Connection
 SQLXML createSQLXML()
          Implements method in interface java.sql.Connection
 Statement createStatement()
          Implements method in interface java.sql.Connection
 Statement createStatement(int resultSetType, int resultSetConcurrency)
          Implements method in interface java.sql.Connection
 Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
          Implements method in interface java.sql.Connection
 Struct createStruct(String typeName, Object[] attributes)
          Implements method in interface java.sql.Connection
 boolean getAutoCommit()
          Implements method in interface java.sql.Connection
 String getCatalog()
          Implements method in interface java.sql.Connection
 Properties getClientInfo()
          Implements method in interface java.sql.Connection
 String getClientInfo(String name)
          Implements method in interface java.sql.Connection
 Connection getConnection()
          Retorna a esta conexão.
 int getHoldability()
          Implements method in interface java.sql.Connection
 DatabaseMetaData getMetaData()
          Implements method in interface java.sql.Connection
 int getTransactionIsolation()
          Implements method in interface java.sql.Connection
 Map getTypeMap()
          Implements method in interface java.sql.Connection
 SQLWarning getWarnings()
          Implements method in interface java.sql.Connection
 boolean isClosed()
          Implements method in interface java.sql.Connection
 boolean isReadOnly()
          Implements method in interface java.sql.Connection
 boolean isValid(int timeout)
          Implements method in interface java.sql.Connection
 boolean isWrapperFor(Class iface)
          Implements method in interface java.sql.Connection
 String nativeSQL(String sql)
          Implements method in interface java.sql.Connection
 CallableStatement prepareCall(String sql)
          Implements method in interface java.sql.Connection
 CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency)
          Implements method in interface java.sql.Connection
 CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
          Implements method in interface java.sql.Connection
 PreparedStatement prepareStatement(String sql)
          Implements method in interface java.sql.Connection
 PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
          Implements method in interface java.sql.Connection
 PreparedStatement prepareStatement(String sql, int[] columnIndexes)
          Implements method in interface java.sql.Connection
 PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency)
          Implements method in interface java.sql.Connection
 PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
          Implements method in interface java.sql.Connection
 PreparedStatement prepareStatement(String sql, String[] columnNames)
          Implements method in interface java.sql.Connection
 void releaseSavepoint(Savepoint savepoint)
          Implements method in interface java.sql.Connection
 void rollback()
          Implements method in interface java.sql.Connection
 void rollback(Savepoint savepoint)
          Implements method in interface java.sql.Connection
 void setAutoCommit(boolean autoCommit)
          Implements method in interface java.sql.Connection
 void setCatalog(String catalog)
          Implements method in interface java.sql.Connection
 void setClientInfo(Properties properties)
          Implements method in interface java.sql.Connection
 void setClientInfo(String properties, String value)
          Implements method in interface java.sql.Connection
 void setHoldability(int holdability)
          Implements method in interface java.sql.Connection
 void setReadOnly(boolean readOnly)
          Implements method in interface java.sql.Connection
 Savepoint setSavepoint()
          Implements method in interface java.sql.Connection
 Savepoint setSavepoint(String name)
          Implements method in interface java.sql.Connection
 void setTransactionIsolation(int level)
          Implements method in interface java.sql.Connection
 void setTypeMap(Map map)
          Implements method in interface java.sql.Connection
 Object unwrap(Class iface)
          Implements method in interface java.sql.Connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbCon

protected Connection dbCon
DOCUMENT ME!


PASSWORD

protected String PASSWORD

SCHEMA

protected String SCHEMA

URL

protected String URL

USER

protected String USER
Constructor Detail

ConnectionImpl

public ConnectionImpl(Connection c,
                      String url,
                      String schema,
                      Integration i)
               throws SQLException
Throws:
SQLException
Method Detail

clearWarnings

public void clearWarnings()
                   throws SQLException
Implements method in interface java.sql.Connection

Specified by:
clearWarnings in interface Connection
Throws:
SQLException
See Also:
Connection.clearWarnings()

close

public void close()
           throws SQLException
Implements method in interface java.sql.Connection

Specified by:
close in interface Connection
Throws:
SQLException
See Also:
Connection.close()

commit

public void commit()
            throws SQLException
Implements method in interface java.sql.Connection

Specified by:
commit in interface Connection
Throws:
SQLException
See Also:
Connection.commit()

createArrayOf

public Array createArrayOf(String typeName,
                           Object[] elements)
                    throws SQLException
Implements method in interface java.sql.Connection

Specified by:
createArrayOf in interface Connection
Throws:
SQLException
See Also:
Connection.createArrayOf(java.lang.String, java.lang.Object[])

createBlob

public Blob createBlob()
                throws SQLException
Implements method in interface java.sql.Connection

Specified by:
createBlob in interface Connection
Throws:
SQLException
See Also:
Connection.createBlob()

createClob

public Clob createClob()
                throws SQLException
Implements method in interface java.sql.Connection

Specified by:
createClob in interface Connection
Throws:
SQLException
See Also:
Connection.createClob()

createNClob

public NClob createNClob()
                  throws SQLException
Implements method in interface java.sql.Connection

Specified by:
createNClob in interface Connection
Throws:
SQLException
See Also:
Connection.createNClob()

createSQLXML

public SQLXML createSQLXML()
                    throws SQLException
Implements method in interface java.sql.Connection

Specified by:
createSQLXML in interface Connection
Throws:
SQLException
See Also:
Connection.createSQLXML()

createStatement

public Statement createStatement()
                          throws SQLException
Implements method in interface java.sql.Connection

Specified by:
createStatement in interface Connection
Throws:
SQLException
See Also:
Connection.createStatement()

createStatement

public Statement createStatement(int resultSetType,
                                 int resultSetConcurrency)
                          throws SQLException
Implements method in interface java.sql.Connection

Specified by:
createStatement in interface Connection
Throws:
SQLException
See Also:
Connection.createStatement()

createStatement

public Statement createStatement(int resultSetType,
                                 int resultSetConcurrency,
                                 int resultSetHoldability)
                          throws SQLException
Implements method in interface java.sql.Connection

Specified by:
createStatement in interface Connection
Throws:
SQLException
See Also:
Connection.createStatement()

createStruct

public Struct createStruct(String typeName,
                           Object[] attributes)
                    throws SQLException
Implements method in interface java.sql.Connection

Specified by:
createStruct in interface Connection
Throws:
SQLException
See Also:
Connection.createStruct(java.lang.String, java.lang.Object[])

getAutoCommit

public boolean getAutoCommit()
                      throws SQLException
Implements method in interface java.sql.Connection

Specified by:
getAutoCommit in interface Connection
Throws:
SQLException
See Also:
Connection.getAutoCommit()

getCatalog

public String getCatalog()
                  throws SQLException
Implements method in interface java.sql.Connection

Specified by:
getCatalog in interface Connection
Throws:
SQLException
See Also:
Connection.getCatalog()

getClientInfo

public Properties getClientInfo()
                         throws SQLException
Implements method in interface java.sql.Connection

Specified by:
getClientInfo in interface Connection
Throws:
SQLException
See Also:
Connection.getClientInfo(java.lang.String)

getClientInfo

public String getClientInfo(String name)
                     throws SQLException
Implements method in interface java.sql.Connection

Specified by:
getClientInfo in interface Connection
Throws:
SQLException
See Also:
Connection.getClientInfo(java.lang.String)

getConnection

public Connection getConnection()
Retorna a esta conexão.


getHoldability

public int getHoldability()
                   throws SQLException
Implements method in interface java.sql.Connection

Specified by:
getHoldability in interface Connection
Throws:
SQLException
See Also:
Connection.getHoldability()

getMetaData

public DatabaseMetaData getMetaData()
                             throws SQLException
Implements method in interface java.sql.Connection

Specified by:
getMetaData in interface Connection
Throws:
SQLException
See Also:
Connection.getMetaData()

getTransactionIsolation

public int getTransactionIsolation()
                            throws SQLException
Implements method in interface java.sql.Connection

Specified by:
getTransactionIsolation in interface Connection
Throws:
SQLException
See Also:
Connection.getTransactionIsolation()

getTypeMap

public Map getTypeMap()
               throws SQLException
Implements method in interface java.sql.Connection

Specified by:
getTypeMap in interface Connection
Throws:
SQLException
See Also:
Connection.getTypeMap()

getWarnings

public SQLWarning getWarnings()
                       throws SQLException
Implements method in interface java.sql.Connection

Specified by:
getWarnings in interface Connection
Throws:
SQLException
See Also:
Connection.getWarnings()

isClosed

public boolean isClosed()
                 throws SQLException
Implements method in interface java.sql.Connection

Specified by:
isClosed in interface Connection
Throws:
SQLException
See Also:
Connection.isClosed()

isReadOnly

public boolean isReadOnly()
                   throws SQLException
Implements method in interface java.sql.Connection

Specified by:
isReadOnly in interface Connection
Throws:
SQLException
See Also:
Connection.isReadOnly()

isValid

public boolean isValid(int timeout)
                throws SQLException
Implements method in interface java.sql.Connection

Specified by:
isValid in interface Connection
Throws:
SQLException
See Also:
Connection.isValid(int)

isWrapperFor

public boolean isWrapperFor(Class iface)
                     throws SQLException
Implements method in interface java.sql.Connection

Specified by:
isWrapperFor in interface Wrapper
Throws:
SQLException
See Also:
Wrapper.isWrapperFor(java.lang.Class)

nativeSQL

public String nativeSQL(String sql)
                 throws SQLException
Implements method in interface java.sql.Connection

Specified by:
nativeSQL in interface Connection
Throws:
SQLException
See Also:
Connection.nativeSQL(java.lang.String)

prepareCall

public CallableStatement prepareCall(String sql)
                              throws SQLException
Implements method in interface java.sql.Connection

Specified by:
prepareCall in interface Connection
Throws:
SQLException
See Also:
Connection.prepareCall(java.lang.String)

prepareCall

public CallableStatement prepareCall(String sql,
                                     int resultSetType,
                                     int resultSetConcurrency)
                              throws SQLException
Implements method in interface java.sql.Connection

Specified by:
prepareCall in interface Connection
Throws:
SQLException
See Also:
Connection.prepareCall(java.lang.String)

prepareCall

public CallableStatement prepareCall(String sql,
                                     int resultSetType,
                                     int resultSetConcurrency,
                                     int resultSetHoldability)
                              throws SQLException
Implements method in interface java.sql.Connection

Specified by:
prepareCall in interface Connection
Throws:
SQLException
See Also:
Connection.prepareCall(java.lang.String)

prepareStatement

public PreparedStatement prepareStatement(String sql)
                                   throws SQLException
Implements method in interface java.sql.Connection

Specified by:
prepareStatement in interface Connection
Throws:
SQLException
See Also:
Connection.prepareStatement(java.lang.String)

prepareStatement

public PreparedStatement prepareStatement(String sql,
                                          int autoGeneratedKeys)
                                   throws SQLException
Implements method in interface java.sql.Connection

Specified by:
prepareStatement in interface Connection
Throws:
SQLException
See Also:
Connection.prepareStatement(java.lang.String)

prepareStatement

public PreparedStatement prepareStatement(String sql,
                                          int resultSetType,
                                          int resultSetConcurrency)
                                   throws SQLException
Implements method in interface java.sql.Connection

Specified by:
prepareStatement in interface Connection
Throws:
SQLException
See Also:
Connection.prepareStatement(java.lang.String)

prepareStatement

public PreparedStatement prepareStatement(String sql,
                                          int resultSetType,
                                          int resultSetConcurrency,
                                          int resultSetHoldability)
                                   throws SQLException
Implements method in interface java.sql.Connection

Specified by:
prepareStatement in interface Connection
Throws:
SQLException
See Also:
Connection.prepareStatement(java.lang.String)

prepareStatement

public PreparedStatement prepareStatement(String sql,
                                          int[] columnIndexes)
                                   throws SQLException
Implements method in interface java.sql.Connection

Specified by:
prepareStatement in interface Connection
Throws:
SQLException
See Also:
Connection.prepareStatement(java.lang.String)

prepareStatement

public PreparedStatement prepareStatement(String sql,
                                          String[] columnNames)
                                   throws SQLException
Implements method in interface java.sql.Connection

Specified by:
prepareStatement in interface Connection
Throws:
SQLException
See Also:
Connection.prepareStatement(java.lang.String)

releaseSavepoint

public void releaseSavepoint(Savepoint savepoint)
                      throws SQLException
Implements method in interface java.sql.Connection

Specified by:
releaseSavepoint in interface Connection
Throws:
SQLException
See Also:
Connection.releaseSavepoint(java.sql.Savepoint)

rollback

public void rollback()
              throws SQLException
Implements method in interface java.sql.Connection

Specified by:
rollback in interface Connection
Throws:
SQLException
See Also:
Connection.rollback()

rollback

public void rollback(Savepoint savepoint)
              throws SQLException
Implements method in interface java.sql.Connection

Specified by:
rollback in interface Connection
Throws:
SQLException
See Also:
Connection.rollback()

setAutoCommit

public void setAutoCommit(boolean autoCommit)
                   throws SQLException
Implements method in interface java.sql.Connection

Specified by:
setAutoCommit in interface Connection
Throws:
SQLException
See Also:
Connection.rollback()

setCatalog

public void setCatalog(String catalog)
                throws SQLException
Implements method in interface java.sql.Connection

Specified by:
setCatalog in interface Connection
Throws:
SQLException
See Also:
Connection.setCatalog(java.lang.String)

setHoldability

public void setHoldability(int holdability)
                    throws SQLException
Implements method in interface java.sql.Connection

Specified by:
setHoldability in interface Connection
Throws:
SQLException
See Also:
Connection.setHoldability(int)

setReadOnly

public void setReadOnly(boolean readOnly)
                 throws SQLException
Implements method in interface java.sql.Connection

Specified by:
setReadOnly in interface Connection
Throws:
SQLException
See Also:
Connection.setReadOnly(boolean)

setSavepoint

public Savepoint setSavepoint()
                       throws SQLException
Implements method in interface java.sql.Connection

Specified by:
setSavepoint in interface Connection
Throws:
SQLException
See Also:
Connection.setSavepoint()

setSavepoint

public Savepoint setSavepoint(String name)
                       throws SQLException
Implements method in interface java.sql.Connection

Specified by:
setSavepoint in interface Connection
Throws:
SQLException
See Also:
Connection.setSavepoint()

setTransactionIsolation

public void setTransactionIsolation(int level)
                             throws SQLException
Implements method in interface java.sql.Connection

Specified by:
setTransactionIsolation in interface Connection
Throws:
SQLException
See Also:
Connection.setTransactionIsolation(int)

setTypeMap

public void setTypeMap(Map map)
                throws SQLException
Implements method in interface java.sql.Connection

Specified by:
setTypeMap in interface Connection
Throws:
SQLException
See Also:
Connection.setTypeMap(java.util.Map>)

setClientInfo

public void setClientInfo(Properties properties)
                   throws SQLClientInfoException
Implements method in interface java.sql.Connection

Specified by:
setClientInfo in interface Connection
Throws:
SQLClientInfoException
See Also:
Connection.setClientInfo(java.lang.String, java.lang.String)

setClientInfo

public void setClientInfo(String properties,
                          String value)
                   throws SQLClientInfoException
Implements method in interface java.sql.Connection

Specified by:
setClientInfo in interface Connection
Throws:
SQLClientInfoException
See Also:
Connection.setClientInfo(java.lang.String, java.lang.String)

unwrap

public Object unwrap(Class iface)
              throws SQLException
Implements method in interface java.sql.Connection

Specified by:
unwrap in interface Wrapper
Throws:
SQLException
See Also:
Wrapper.unwrap(java.lang.Class)


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