package corbajdbc; import java.util.Properties; import java.sql.*; public class C_Connection implements Connection { CorbaConnection connectRef; private boolean bAutoCommit; private boolean bReadOnly; private int iIsolation; public C_Connection(CorbaConnection connectRef) throws SQLException { this.connectRef = connectRef; this.bAutoCommit = true; this.bReadOnly = false; this.iIsolation = TRANSACTION_READ_COMMITTED; } public Statement createStatement() throws SQLException { CorbaStatement stmtRef; stmtRef = connectRef.createStatement(); System.out.println(stmtRef.sayhello()); return new C_Statement(stmtRef); } public DatabaseMetaData getMetaData() throws SQLException {return null;} public PreparedStatement prepareStatement(String sSQL) throws SQLException {return null;} public CallableStatement prepareCall(String sSQL) throws SQLException {return null;} public String nativeSQL(String sSQL) throws SQLException {return sSQL;} public void setAutoCommit(boolean bAutoCommit) throws SQLException {this.bAutoCommit = bAutoCommit;} public boolean getAutoCommit() throws SQLException {return bAutoCommit;} public void setReadOnly(boolean bReadOnly) throws SQLException {this.bReadOnly = bReadOnly;} public boolean isReadOnly() throws SQLException {return bReadOnly;} public void setCatalog(String sCatalog) throws SQLException {} public String getCatalog() throws SQLException {return "";} public void setTransactionIsolation(int iIsolation) throws SQLException {this.iIsolation = iIsolation;} public int getTransactionIsolation() throws SQLException {return iIsolation;} public void clearWarnings() throws SQLException {} public SQLWarning getWarnings() throws SQLException {return null;} public void commit() throws SQLException {} public void rollback() throws SQLException {} public boolean isClosed() throws SQLException {return false;} public void close() throws SQLException {} }