|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.idms.io.TraceObject
ca.idms.jdbc.IdmsJdbcObject
ca.idms.jdbc.IdmsLogicalConnection
public class IdmsLogicalConnection
Logical connection implementation for the CA IDMS JDBC Driver. When connection pooling is used with the CA IDMS JDBC Driver the IdmsPooledConnection.getConnection method returns an instance of this class, which serves as the "object handle" for the connection. All methods other than close() and isClosed() invoke the corresponding methods in the physical IdmsConnection object (even when not supported).
IdmsConnection,
IdmsPooledConnection| Field Summary |
|---|
| Fields inherited from class ca.idms.jdbc.IdmsJdbcObject |
|---|
FAKE_METHODS, FAKE_SUPPORT, fakeSupport, MESSAGES |
| Fields inherited from class ca.idms.io.TraceObject |
|---|
exclude, EXCLUDE, FALSE, include, INCLUDE, logWriter, PREFIX, PROPERTIES_FILE, PROPERTIES_KEY, snap, SNAP, SNAP_BYTES, SNAP_NATIVE, SNAP_OBJECT, SNAP_SQL, snapBytes, snapNative, snapObject, snapSql, stub, trace, TRACE, TRACE_FILE, TRACE_LIFE, TRACE_NATIVE, TRACE_PRODUCT, traceLife, traceNative, traceStream, TRUE |
| Fields inherited from interface java.sql.Connection |
|---|
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
| Fields inherited from interface ca.idms.qcli.SQLState |
|---|
SQL_00000, SQL_01000, SQL_01004, SQL_07001, SQL_07009, SQL_08001, SQL_08002, SQL_08003, SQL_08004, SQL_08006, SQL_08007, SQL_0A000, SQL_21000, SQL_22000, SQL_22001, SQL_22003, SQL_22005, SQL_22007, SQL_24000, SQL_25000, SQL_3C000, SQL_40000, SQL_42000, SQL_HY000, SQL_HY004, SQL_HY009, SQL_HY010, SQL_HY024, SQL_HY106, SQL_HYC00 |
| Method Summary | |
|---|---|
void |
clearWarnings()
Sets the warning chain to null. |
void |
close()
Closes the logical connection. |
void |
commit()
Invokes IdmsConnection.commit(). |
java.sql.Array |
createArrayOf(java.lang.String arg0,
java.lang.Object[] arg1)
IDMS does not support the ARRAY type. |
java.sql.Blob |
createBlob()
IDMS does not support the BLOB type. |
java.sql.Clob |
createClob()
IDMS does not support the CLOB type. |
java.sql.NClob |
createNClob()
IDMS does not support the NCLOB type. |
java.sql.SQLXML |
createSQLXML()
IDMS does not support the SQLMXL type. |
java.sql.Statement |
createStatement()
Invokes IdmsConnection.createStatement(). |
java.sql.Statement |
createStatement(int type,
int conc)
Invokes IdmsConnection.createStatement(int,int). |
java.sql.Statement |
createStatement(int type,
int conc,
int hold)
Invokes IdmsConnection.createStatement(int,int,int). |
java.sql.Struct |
createStruct(java.lang.String arg0,
java.lang.Object[] arg1)
IDMS does not support the STRUCT type. |
protected java.lang.Object |
get(java.lang.reflect.Field f)
Allows the default snap method access to non-public variables. |
boolean |
getAutoCommit()
Invokes IdmsConnection.getAutoCommit(). |
java.lang.String |
getCatalog()
Invokes IdmsConnection.getCatalog(). |
java.util.Properties |
getClientInfo()
Returns the set of ClientInfo properties and their associated values. |
java.lang.String |
getClientInfo(java.lang.String s)
Returns the current value of a ClientInfo property, or null if the property doesn't exist. |
int |
getHoldability()
Invokes IdmsConnection.getHoldability(). |
java.sql.DatabaseMetaData |
getMetaData()
Invokes IdmsConnection.getMetaData(). |
int |
getTransactionIsolation()
Invokes IdmsConnection.getTransactionIsolation(). |
java.util.Map<java.lang.String,java.lang.Class<?>> |
getTypeMap()
Invokes IdmsConnection.getTypeMap(). |
java.sql.SQLWarning |
getWarnings()
The first warning reported by calls on this object is returned. |
boolean |
isClosed()
Tests to see if the logical connection has been closed. |
boolean |
isReadOnly()
Invokes IdmsConnection.isReadOnly(). |
boolean |
isValid(int t)
Returns true if the connection has not been closed and is still valid. |
java.lang.String |
nativeSQL(java.lang.String sql)
Invokes IdmsConnection.nativeSQL(String). |
java.sql.CallableStatement |
prepareCall(java.lang.String sql)
Invokes IdmsConnection.prepareCall(String). |
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int type,
int conc)
Invokes IdmsConnection.prepareCall(String,int,int). |
java.sql.CallableStatement |
prepareCall(java.lang.String sql,
int type,
int conc,
int hold)
Invokes IdmsConnection.prepareCall(String,int,int,int). |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql)
Invokes IdmsConnection.prepareStatement(String). |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int key)
Invokes IdmsConnection.prepareStatement(String,int). |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int[] index)
Invokes IdmsConnection.prepareStatement(String,int[]). |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int type,
int conc)
Invokes IdmsConnection.prepareStatement(String,int,int). |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
int type,
int conc,
int hold)
Invokes IdmsConnection.prepareStatement(String,int,int,int). |
java.sql.PreparedStatement |
prepareStatement(java.lang.String sql,
java.lang.String[] names)
Invokes IdmsConnection.prepareStatement(String,String[]). |
void |
releaseSavepoint(java.sql.Savepoint savepoint)
Invokes IdmsConnection.releaseSavepoint(Savepoint). |
void |
rollback()
Invokes IdmsConnection.rollback(). |
void |
rollback(java.sql.Savepoint savepoint)
Invokes IdmsConnection.rollback(Savepoint). |
void |
setAutoCommit(boolean autoCommit)
Invokes IdmsConnection.setAutoCommit(boolean). |
void |
setCatalog(java.lang.String catalog)
Invokes IdmsConnection.setCatalog(String). |
void |
setClientInfo(java.util.Properties p)
Sets ClientInfo properties to those passed by the application. |
void |
setClientInfo(java.lang.String k,
java.lang.String v)
Sets a ClientInfo property as requested by the application. |
void |
setHoldability(int hold)
Invokes IdmsConnection.setHoldability(int). |
void |
setReadOnly(boolean readOnly)
Invokes IdmsConnection.setReadOnly(boolean). |
java.sql.Savepoint |
setSavepoint()
Invokes IdmsConnection.setSavepoint(). |
java.sql.Savepoint |
setSavepoint(java.lang.String name)
Invokes IdmsConnection.setSavepoint(String). |
void |
setTransactionIsolation(int level)
Invokes IdmsConnection.setTransactionIsolation(int). |
void |
setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map)
Invokes IdmsConnection.setTypeMap(Map). |
void |
WASclose()
Special close method for WebSphere. |
| Methods inherited from class ca.idms.jdbc.IdmsJdbcObject |
|---|
hasCursor, hasUpdate, isStarted, isSuspended, isWrapperFor, notifyStatementError, unwrap |
| Methods inherited from class ca.idms.io.TraceObject |
|---|
finalize, getBoolean, getClasses, getInteger, getProperty, listProperties, message, parseList, print, print, print, println, println, snap, snap, snap, snap, snap, snap, snap, toHex, toHex, toHex, toHex, toHex, toString, trace, trace, trace, trace, trace, trace, traceEntry, unloadProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Method Detail |
|---|
protected java.lang.Object get(java.lang.reflect.Field f)
throws java.lang.IllegalAccessException
get in class IdmsJdbcObjectf - a Field returned by Class.getDeclaredFields
java.lang.IllegalAccessException - should not happenTraceObject.snap,
TraceObject.snap()
public void close()
throws java.sql.SQLException
close in interface java.sql.Connectionjava.sql.SQLException - if the session fails on suspend or commit
public boolean isClosed()
throws java.sql.SQLException
isClosed in interface java.sql.Connectionjava.sql.SQLException - notIdmsConnection.isClosed()
public void clearWarnings()
throws java.sql.SQLException
clearWarnings in interface java.sql.ConnectionclearWarnings in class IdmsJdbcObjectjava.sql.SQLException - if the logical connection is closed
public java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
getWarnings in interface java.sql.ConnectiongetWarnings in class IdmsJdbcObjectjava.sql.SQLException - if the logical connection is closed
public java.sql.Statement createStatement()
throws java.sql.SQLException
IdmsConnection.createStatement().
createStatement in interface java.sql.Connectionjava.sql.SQLException - if a database error occurs.
public java.sql.PreparedStatement prepareStatement(java.lang.String sql)
throws java.sql.SQLException
IdmsConnection.prepareStatement(String).
prepareStatement in interface java.sql.Connectionsql - an SQL statement
java.sql.SQLException - if a database error occurs.
public java.sql.CallableStatement prepareCall(java.lang.String sql)
throws java.sql.SQLException
IdmsConnection.prepareCall(String).
prepareCall in interface java.sql.Connectionsql - an SQL statement
java.sql.SQLException
public java.lang.String nativeSQL(java.lang.String sql)
throws java.sql.SQLException
IdmsConnection.nativeSQL(String).
nativeSQL in interface java.sql.Connectionsql - an SQL statement
java.sql.SQLException - if an error occurs.
public void commit()
throws java.sql.SQLException
IdmsConnection.commit().
commit in interface java.sql.Connectionjava.sql.SQLException - if a database error occurs.
public void rollback()
throws java.sql.SQLException
IdmsConnection.rollback().
rollback in interface java.sql.Connectionjava.sql.SQLException - if a database error occurs.
public void setCatalog(java.lang.String catalog)
throws java.sql.SQLException
IdmsConnection.setCatalog(String).
setCatalog in interface java.sql.Connectioncatalog - name, ignored.
java.sql.SQLException - NOT!
public java.lang.String getCatalog()
throws java.sql.SQLException
IdmsConnection.getCatalog().
getCatalog in interface java.sql.Connectionjava.sql.SQLException - does not happen.
public java.sql.DatabaseMetaData getMetaData()
throws java.sql.SQLException
IdmsConnection.getMetaData().
getMetaData in interface java.sql.Connectionjava.sql.SQLException - if a database error occurs.
public void setAutoCommit(boolean autoCommit)
throws java.sql.SQLException
IdmsConnection.setAutoCommit(boolean).
setAutoCommit in interface java.sql.ConnectionautoCommit - true or false
java.sql.SQLException - if a database error occurs.
public boolean getAutoCommit()
throws java.sql.SQLException
IdmsConnection.getAutoCommit().
getAutoCommit in interface java.sql.Connectionjava.sql.SQLException - if a database error occurs.
public void setReadOnly(boolean readOnly)
throws java.sql.SQLException
IdmsConnection.setReadOnly(boolean).
setReadOnly in interface java.sql.ConnectionreadOnly - true or false
java.sql.SQLException - if a database error occurs.
public boolean isReadOnly()
throws java.sql.SQLException
IdmsConnection.isReadOnly().
isReadOnly in interface java.sql.Connectionjava.sql.SQLException - if a database error occurs.
public void setTransactionIsolation(int level)
throws java.sql.SQLException
IdmsConnection.setTransactionIsolation(int).
setTransactionIsolation in interface java.sql.Connectionlevel - one of the TRANSACTION_* isolation values
java.sql.SQLException - if a database error occurs.
public int getTransactionIsolation()
throws java.sql.SQLException
IdmsConnection.getTransactionIsolation().
getTransactionIsolation in interface java.sql.Connectionjava.sql.SQLException - if a database error occurs.
public java.sql.Statement createStatement(int type,
int conc)
throws java.sql.SQLException
IdmsConnection.createStatement(int,int).
createStatement in interface java.sql.Connectiontype - ResultSet typeconc - ResultSet concurrency
java.sql.SQLException - if an error occurs
public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int type,
int conc)
throws java.sql.SQLException
IdmsConnection.prepareStatement(String,int,int).
prepareStatement in interface java.sql.Connectionsql - SQL statement to preparetype - ResultSet typeconc - ResultSet concurrency
java.sql.SQLException - if an error occurs
public java.sql.CallableStatement prepareCall(java.lang.String sql,
int type,
int conc)
throws java.sql.SQLException
IdmsConnection.prepareCall(String,int,int).
prepareCall in interface java.sql.Connectionsql - SQL statement to preparetype - ResultSet typeconc - ResultSet concurrency
java.sql.SQLException - if an error occurs
public java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMap()
throws java.sql.SQLException
IdmsConnection.getTypeMap().
getTypeMap in interface java.sql.Connectionjava.sql.SQLException - never
public void setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map)
throws java.sql.SQLException
IdmsConnection.setTypeMap(Map).
setTypeMap in interface java.sql.Connectionmap - the Map object, which we won't really use
java.sql.SQLException - never
public void setHoldability(int hold)
throws java.sql.SQLException
IdmsConnection.setHoldability(int).
setHoldability in interface java.sql.Connectionhold - ResultSet holdability option
java.sql.SQLException - if an invalid option is specifiedcreateStatement(int,int),
prepareStatement(String,int,int),
prepareCall(String,int,int)
public int getHoldability()
throws java.sql.SQLException
IdmsConnection.getHoldability().
getHoldability in interface java.sql.Connectionjava.sql.SQLException - neversetHoldability(int)
public java.sql.Savepoint setSavepoint()
throws java.sql.SQLException
IdmsConnection.setSavepoint().
setSavepoint in interface java.sql.Connectionjava.sql.SQLException - alwaysIdmsJdbcObject.fakeSupport
public java.sql.Savepoint setSavepoint(java.lang.String name)
throws java.sql.SQLException
IdmsConnection.setSavepoint(String).
setSavepoint in interface java.sql.Connectionname - Savepoint name
java.sql.SQLException - alwaysIdmsJdbcObject.fakeSupport
public void rollback(java.sql.Savepoint savepoint)
throws java.sql.SQLException
IdmsConnection.rollback(Savepoint).
rollback in interface java.sql.Connectionsavepoint - Savepoint object, ignored
java.sql.SQLException - alwaysIdmsJdbcObject.fakeSupport
public void releaseSavepoint(java.sql.Savepoint savepoint)
throws java.sql.SQLException
IdmsConnection.releaseSavepoint(Savepoint).
releaseSavepoint in interface java.sql.Connectionsavepoint - Savepoint object, ignored
java.sql.SQLException - alwaysIdmsJdbcObject.fakeSupport
public java.sql.Statement createStatement(int type,
int conc,
int hold)
throws java.sql.SQLException
IdmsConnection.createStatement(int,int,int).
createStatement in interface java.sql.Connectiontype - ResultSet typeconc - ResultSet concurrencyhold - ResultSet holdability
java.sql.SQLException - if an error occurssetHoldability(int),
createStatement(int, int)
public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int type,
int conc,
int hold)
throws java.sql.SQLException
IdmsConnection.prepareStatement(String,int,int,int).
prepareStatement in interface java.sql.Connectionsql - SQL statement to preparetype - ResultSet typeconc - ResultSet concurrencyhold - ResultSet holdability, sets for all
java.sql.SQLException - if an error occurssetHoldability(int)
public java.sql.CallableStatement prepareCall(java.lang.String sql,
int type,
int conc,
int hold)
throws java.sql.SQLException
IdmsConnection.prepareCall(String,int,int,int).
prepareCall in interface java.sql.Connectionsql - SQL CALL statement to preparetype - ResultSet typeconc - ResultSet concurrencyhold - ResultSet holdability, sets for all
java.sql.SQLException - if an error occurssetHoldability(int)
public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int key)
throws java.sql.SQLException
IdmsConnection.prepareStatement(String,int).
prepareStatement in interface java.sql.Connectionsql - SQL statementkey - auto generated key flag, ignored
java.sql.SQLException - if an error occurs
public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
int[] index)
throws java.sql.SQLException
IdmsConnection.prepareStatement(String,int[]).
prepareStatement in interface java.sql.Connectionsql - SQL statementindex - auto generated key ordinal array, ignored
java.sql.SQLException - if an error occurs
public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
java.lang.String[] names)
throws java.sql.SQLException
IdmsConnection.prepareStatement(String,String[]).
prepareStatement in interface java.sql.Connectionsql - SQL statementnames - auto generated key column name array, ignored
java.sql.SQLException - if we can't do it or an error occurs
public java.sql.Array createArrayOf(java.lang.String arg0,
java.lang.Object[] arg1)
throws java.sql.SQLException
createArrayOf in interface java.sql.Connectionjava.sql.SQLException - always
public java.sql.Blob createBlob()
throws java.sql.SQLException
createBlob in interface java.sql.Connectionjava.sql.SQLException - always
public java.sql.Clob createClob()
throws java.sql.SQLException
createClob in interface java.sql.Connectionjava.sql.SQLException - always
public java.sql.NClob createNClob()
throws java.sql.SQLException
createNClob in interface java.sql.Connectionjava.sql.SQLException - always
public java.sql.SQLXML createSQLXML()
throws java.sql.SQLException
createSQLXML in interface java.sql.Connectionjava.sql.SQLException - always
public java.sql.Struct createStruct(java.lang.String arg0,
java.lang.Object[] arg1)
throws java.sql.SQLException
createStruct in interface java.sql.Connectionjava.sql.SQLException - always
public java.util.Properties getClientInfo()
throws java.sql.SQLException
getClientInfo in interface java.sql.Connectionjava.sql.SQLException - if connection is closed
public java.lang.String getClientInfo(java.lang.String s)
throws java.sql.SQLException
getClientInfo in interface java.sql.Connections - the property key
java.sql.SQLException - if connection is closed
public boolean isValid(int t)
throws java.sql.SQLException
isValid in interface java.sql.Connectiont - the number of seconds to wait for completion of the validating
query to the IDMS system.
java.sql.SQLException - if the requested timeout value is less than zero.
public void setClientInfo(java.util.Properties p)
throws java.sql.SQLClientInfoException
setClientInfo in interface java.sql.Connectionp - collection of ClientInfo properties to be set.
java.sql.SQLClientInfoException - - if one or more of the properties fails
to be set, or this method is called on a closed connection.
public void setClientInfo(java.lang.String k,
java.lang.String v)
throws java.sql.SQLClientInfoException
setClientInfo in interface java.sql.Connectionk - property keyv - property value
java.sql.SQLClientInfoException - - the property fails to be set.
public void WASclose()
throws java.sql.SQLException
java.sql.SQLException - if the session fails on suspend or commit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||