simpledb.remote
Class SimpleConnection

java.lang.Object
  extended by simpledb.remote.ConnectionAdapter
      extended by simpledb.remote.SimpleConnection
All Implemented Interfaces:
Connection, Wrapper

public class SimpleConnection
extends ConnectionAdapter

An adapter class that wraps RemoteConnection. Its methods do nothing except transform RemoteExceptions into SQLExceptions.

Author:
Edward Sciore

Field Summary
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
SimpleConnection(RemoteConnection c)
           
 
Method Summary
 void close()
           
 Statement createStatement()
           
 
Methods inherited from class simpledb.remote.ConnectionAdapter
clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleConnection

public SimpleConnection(RemoteConnection c)
Method Detail

createStatement

public Statement createStatement()
                          throws SQLException
Specified by:
createStatement in interface Connection
Overrides:
createStatement in class ConnectionAdapter
Throws:
SQLException

close

public void close()
           throws SQLException
Specified by:
close in interface Connection
Overrides:
close in class ConnectionAdapter
Throws:
SQLException


Copyright © 2011. All Rights Reserved.