|
jxDBCon 0.9z | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourceforge.jxdbcon.AbstractConnection | +--org.sourceforge.jxdbcon.db2.DB2Connection
The DB2Connection manages a JDBC Connection to a DB2 database server.
Field Summary | |
protected boolean |
autoCommit
Are we in autoCommit mode?. |
private DatabaseMetaData |
dbMeta
The metadata instance. |
private DB2Protocol |
proto
The Protocol instance that talks to the backend. |
Fields inherited from class org.sourceforge.jxdbcon.AbstractConnection |
info, typeMap, warning |
Fields inherited from interface java.sql.Connection |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Fields inherited from interface org.sourceforge.jxdbcon.InfoKeys |
CATALOG, DESCRIPTION, DRIVER, HOST, PASSWORD, PORT, SUBDRIVER, USER |
Constructor Summary | |
DB2Connection()
|
Method Summary | |
void |
close()
Close the connection. |
protected abstract DB2Protocol |
connect(Properties info)
Open a connection. |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency)
Create a statement. |
boolean |
getAutoCommit()
Return the auto commit state. |
EscapeContext |
getEscapeContext(Object obj,
ConversionContext ctx)
Create an EscapeContext. |
DatabaseMetaData |
getMetaData()
|
protected void |
open(String url,
Properties uinfo)
Open a connection. |
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency)
|
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency)
|
Methods inherited from class org.sourceforge.jxdbcon.AbstractConnection |
clearWarnings, clone, commit, createStatement, createStatement, duplicate, fillPropertyInfo, finalize, getCatalog, getHoldability, getInfo, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap, takeOver, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected boolean autoCommit
private DatabaseMetaData dbMeta
private DB2Protocol proto
Constructor Detail |
public DB2Connection()
Method Detail |
public void close() throws SQLException
AbstractConnection
close
in interface Connection
close
in class AbstractConnection
SQLException
- if an error occursprotected abstract DB2Protocol connect(Properties info) throws SQLException
SQLException
public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
AbstractConnection
createStatement
in interface Connection
createStatement
in class AbstractConnection
SQLException
public boolean getAutoCommit()
getAutoCommit
in interface Connection
getAutoCommit
in class AbstractConnection
public EscapeContext getEscapeContext(Object obj, ConversionContext ctx)
AbstractConnection
getEscapeContext
in class AbstractConnection
public DatabaseMetaData getMetaData()
protected final void open(String url, Properties uinfo) throws SQLException
open
in class AbstractConnection
SQLException
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareCall
in interface Connection
prepareCall
in class AbstractConnection
SQLException
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareStatement
in interface Connection
prepareStatement
in class AbstractConnection
SQLException
|
jxDBCon 0.9z | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |