| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private boolean | |
| public Agent | |
| public boolean | |
| private boolean | |
| pack-priv Hashtable | |
| private int | |
| public int | |
| pack-priv final WeakHashMap | |
| private String | currentSchemaName_
Cached copy of the schema name. |
| public ClientDatabaseMetaData | |
| public String | |
| public BasicClientDataSource | |
| private int | defaultIsolation
The default isolation level, enforced on connection resets. |
| private static String | |
| private static String | |
| private static String | |
| private static String | |
| private int | |
| private static final String | |
| protected EncryptionManager | |
| private ClientPreparedStatement | |
| private int | holdability
Holdabilty for created statements. |
| protected boolean | |
| private static final int | |
| private int | isolation_
Cached copy of the isolation level. |
| private final HashMap | |
| protected boolean | |
| private boolean | |
| private CallableLocatorProcedures | lobProcs
Reference to object with prepared statements for calling the locator procedures. |
| private int | |
| protected boolean | |
| pack-priv final WeakHashMap | |
| public int | |
| public String | |
| public boolean | |
| pack-priv boolean | |
| public String | |
| private static final int | TRANSACTION_UNKNOWN
Constant indicating that isolation_ has not been updated through piggy-backing, (or that the previously stored value was invalidated, e.g. by an XA state change). |
| private int | |
| protected final String | |
| private SqlWarning | |
| public static final int | XA_T0_NOT_ASSOCIATED
|
| public static final int | XA_T1_ASSOCIATED
|
| public int | |
| private int |
| Access | Constructor and Description |
|---|---|
| protected | ClientConnection(LogWriter logWriter, String user, String password, BasicClientDataSource dataSource)
|
| protected | ClientConnection(LogWriter logWriter, String user, String password, boolean isXAConn, BasicClientDataSource dataSource)
|
| protected | |
| protected | ClientConnection(LogWriter logWriter, int driverManagerLoginTimeout, String serverName, int portNumber, String databaseName, Properties properties)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | abort(Executor
The executor)Executor implementation which will
be used by abort.Implements java. |
| pack-priv void | |
| pack-priv void | |
| private void | |
| protected abstract boolean | |
| protected abstract boolean | |
| protected void | |
| protected void | |
| private void | |
| pack-priv void | checkForTransactionInProgress()
Check if the transaction is in progress and the connection cannot be closed. |
| public synchronized void | clearWarnings()
Implements java. Connection object.
|
| private void | |
| public synchronized void | close()
Implements java. Connection object's database and JDBC resources
immediately instead of waiting for them to be automatically released.
|
| pack-priv synchronized void | |
| public synchronized void | |
| private void | |
| private void | |
| public synchronized void | commit()
Implements java. Connection object.
|
| public void | |
| public void | completeAbnormalUnitOfWork(UnitOfWorkListener
The UnitOfWorkListener to be rolled back. uwl)Implements org. |
| public void | |
| public final void | |
| public void | completeInitialPiggyBackIsolation(int
isolation level as specified by
pbIsolation)java.sql.ConnectionSets the default isolation level of the connection upon connection initialization. |
| public void | completeInitialPiggyBackSchema(String
the schema name pbSchema)Sets the current schema upon connection initialization. |
| public void | |
| public void | |
| public void | completePiggyBackIsolation(int
new isolation level from the server pbIsolation)Implements org. |
| public void | completePiggyBackSchema(String
new current schema from the server pbSchema)Implements org. |
| protected void | completeReset(boolean
True if this is for a deferred reset isDeferredReset, boolean is used to differentiate between
cases where statement pooling is enabled or not. If closeStatementsOnClose, NetXAResource true, it
means statement pooling is disabled and the statements are fully
reset, which includes a re-prepare. If false, statement
pooling is enabled, and a more lightweight reset procedure is used.XA resource xares)We don't reset the isolation level to unknown unconditionally, as this forces us to go to the server all the time. |
| private void | completeSpecificRollback(UnitOfWorkListener
The UnitOfWorkLitener to be rolled back uwl)Rollback the specific UnitOfWorkListener. |
| public void | |
| pack-priv void | |
| public Blob | Returns: An object that implements theBlob interfaceImplements java. Blob interface.
|
| public Clob | Returns: An object that implements theClob interfaceImplements java. Clob interface.
|
| public synchronized Statement | createStatement()
Implements java. Statement object for sending
SQL statements to the database.
|
| public synchronized Statement | createStatement(int
a result set type; one of
resultSetType, int ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEa concurrency type; one of
resultSetConcurrency)ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEImplements java. Statement object that will generate
ResultSet objects with the given type and concurrency.
|
| public synchronized Statement | createStatement(int
one of the following resultSetType, int ResultSet
constants:
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEone of the following resultSetConcurrency, int ResultSet
constants:
ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEone of the following resultSetHoldability)ResultSet
constants:
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMITImplements java. Statement object that will generate
ResultSet objects with the given type, concurrency,
and holdability.
|
| private ClientStatement | |
| protected abstract boolean | |
| private int | |
| protected void | finalize()
Overrides java. |
| public boolean | |
| private void | |
| private void | |
| protected void | |
| public boolean | getAutoCommit()
Implements java. Connection
object.
|
| public String | getCatalog()
Implements java. Connection object's current catalog name.
|
| public String | Returns: the name of the current schemaReturns the current schema (the schema that would be used for compilation. |
| public int | getHoldability()
Implements java. ResultSet objects
created using this Connection object.
|
| public DatabaseMetaData | getMetaData()
Implements java. DatabaseMetaData object that contains
metadata about the database to which this
Connection object represents a connection.
|
| public int | getNetworkTimeout()
Implements java. |
| public String | |
| public int | |
| public int | Returns: the ID of the active transactionReturns the ID of the active transaction for this connection. |
| public int | getTransactionIsolation()
Implements java. Connection object's current
transaction isolation level.
|
| public int | |
| public Map | getTypeMap()
Implements java. Map object associated with this
Connection object.
|
| public SQLWarning | getWarnings()
Implements java. Connection object.
|
| public int | |
| pack-priv final int | |
| private void | |
| public boolean | Returns: true if we are in the middle of abortingReturn true if the connection is aborting |
| public boolean | isClosed()
Implements java. Connection object has been
closed.
|
| public boolean | |
| protected abstract boolean | |
| public boolean | Returns: true if physical connection still openReturn true if the physical connection is still open. |
| public boolean | isReadOnly()
Implements java. Connection
object is in read-only mode.
|
| public boolean | |
| public synchronized void | |
| pack-priv CallableLocatorProcedures | Returns: object with prepared statements for calling locator proceduresGet handle to the object that contains prepared statements for calling locator procedures for this connection. |
| private void | |
| protected abstract void | |
| private void | |
| private void | |
| public String | nativeSQL(String
an SQL statement that may contain one or more '?'
parameter placeholders sql)Implements java. |
| pack-priv synchronized String | |
| protected abstract Agent | |
| protected abstract ClientCallableStatement | |
| protected abstract ClientDatabaseMetaData | |
| protected abstract ClientPreparedStatement | |
| protected abstract ClientPreparedStatement | newPreparedStatement_(String sql, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames, int[] columnIndexes)
|
| public abstract SectionManager | |
| protected abstract ClientStatement | |
| public synchronized CallableStatement | prepareCall(String
an SQL statement that may contain one or more '?'
parameter placeholders. Typically this statement is specified using JDBC
call escape syntax. sql)Implements java. CallableStatement object for calling
database stored procedures.
|
| public synchronized CallableStatement | prepareCall(String
a sql, int String object that is the SQL statement to
be sent to the database; may contain on or more '?' parametersa result set type; one of
resultSetType, int ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEa concurrency type; one of
resultSetConcurrency)ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEImplements java. CallableStatement object that will generate
ResultSet objects with the given type and concurrency.
|
| public synchronized CallableStatement | prepareCall(String
a sql, int String object that is the SQL statement to
be sent to the database; may contain on or more '?' parametersone of the following resultSetType, int ResultSet
constants:
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEone of the following resultSetConcurrency, int ResultSet
constants:
ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEone of the following resultSetHoldability)ResultSet
constants:
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMITImplements java. CallableStatement object that will generate
ResultSet objects with the given type and concurrency.
|
| pack-priv ClientCallableStatement | |
| pack-priv synchronized ClientPreparedStatement | |
| pack-priv synchronized ClientCallableStatement | |
| pack-priv synchronized ClientPreparedStatement | |
| public synchronized PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders sql)Implements java. PreparedStatement object for sending
parameterized SQL statements to the database.
|
| public synchronized PreparedStatement | prepareStatement(String
a sql, int String object that is the SQL statement to
be sent to the database; may contain one or more '?' IN
parametersa result set type; one of
resultSetType, int ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEa concurrency type; one of
resultSetConcurrency)ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEImplements java. PreparedStatement object that will generate
ResultSet objects with the given type and concurrency.
|
| public synchronized PreparedStatement | prepareStatement(String
a sql, int String object that is the SQL statement to
be sent to the database; may contain one or more '?' IN
parametersone of the following resultSetType, int ResultSet
constants:
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEone of the following resultSetConcurrency, int ResultSet
constants:
ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEone of the following resultSetHoldability)ResultSet
constants:
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMITImplements java. PreparedStatement object that will generate
ResultSet objects with the given type, concurrency,
and holdability.
|
| public PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders sql, int a flag indicating whether auto-generated keys
should be returned; one of
autoGeneratedKeys)Statement.RETURN_GENERATED_KEYS or
Statement.NO_GENERATED_KEYSImplements java. PreparedStatement object that has
the capability to retrieve auto-generated keys.
|
| public PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders sql, int[] an array of column indexes indicating the columns
that should be returned from the inserted row or rows columnIndexes)Implements java. PreparedStatement object capable
of returning the auto-generated keys designated by the given array.
|
| public PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders sql, String[] an array of column names indicating the columns
that should be returned from the inserted row or rows columnNames)Implements java. PreparedStatement object capable
of returning the auto-generated keys designated by the given array.
|
| pack-priv ClientPreparedStatement | prepareStatementX(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability, int autoGeneratedKeys, String[] columnNames, int[] columnIndexes)
|
| pack-priv void | |
| private void | |
| pack-priv void | |
| public abstract void | |
| public abstract void | |
| public abstract void | |
| public abstract void | |
| public abstract void | |
| public abstract void | |
| private void | |
| public void | |
| protected abstract void | |
| protected abstract void | |
| public synchronized void | releaseSavepoint(Savepoint
the savepoint)Savepoint object to be removedImplements java. Savepoint and subsequent Savepoint objects from the current
transaction.
|
| public synchronized void | |
| protected abstract void | |
| protected abstract void | resetCallableStatement_(ClientCallableStatement cs, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
|
| protected void | |
| protected void | |
| protected abstract void | resetPreparedStatement_(ClientPreparedStatement ps, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability, int autoGeneratedKeys, String[] columnNames, int[] columnIndexes)
|
| protected void | |
| protected void | |
| protected abstract void | |
| public synchronized void | rollback()
Implements java. Connection object.
|
| public synchronized void | rollback(Savepoint
the savepoint)Savepoint object to roll back toImplements java. Savepoint object
was set.
|
| protected abstract boolean | Returns: true if LOB locators are supported.Checks whether the server supports locators for large objects. |
| protected abstract boolean | Returns: whether the server supports nanoseconds in timestampsReturn true if the server supports nanoseconds in timestamps |
| public synchronized void | setAutoCommit(boolean
true to enable auto-commit mode;
false to disable itImplements java. |
| public synchronized void | setCatalog(String
the name of a catalog (subspace in this
catalog)Connection object's database) in which to workImplements java. Connection object's database
in which to work.
|
| public synchronized void | setHoldability(int
a holdability)ResultSet holdability constant; one of
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMITImplements java. ResultSet objects
created using this Connection object to the given
holdability.
|
| public void | setNetworkTimeout(Executor
The executor, int Executor implementation which will
be used by setNetworkTimeout.The time in milliseconds to wait for the database
operation
to complete. If the JDBC driver does not support milliseconds, the
JDBC driver will round the value up to the nearest second. If the
timeout period expires before the operation
completes, a SQLException will be thrown.
A value of 0 indicates that there is not timeout for database operations. milliseconds)Implements java. Connection or
objects created from the Connection
will wait for the database to reply to any one request.
|
| public synchronized void | setReadOnly(boolean
true enables read-only mode;
false disables itImplements java. |
| public synchronized Savepoint | setSavepoint()
Implements java. Savepoint object that represents it.
|
| public synchronized Savepoint | setSavepoint(String
a name)String containing the name of the savepointImplements java. Savepoint object that represents it.
|
| private ClientSavepoint | |
| public void | setSchema(String
the name of a schema in which to work schemaName)Implements java. |
| public synchronized void | setTransactionIsolation(int
one of the following level)Connection constants:
Connection.TRANSACTION_READ_UNCOMMITTED,
Connection.TRANSACTION_READ_COMMITTED,
Connection.TRANSACTION_REPEATABLE_READ, or
Connection.TRANSACTION_SERIALIZABLE.
(Note that Connection.TRANSACTION_NONE cannot be used
because it specifies that transactions are not supported.)Implements java. Connection object to the one given.
|
| private void | |
| public synchronized void | setTypeMap(Map<K, V>
the map)java.util.Map object to install
as the replacement for this Connection
object's default type mapImplements java. TypeMap object as the type map for
this Connection object.
|
| public void | |
| protected abstract boolean | Returns: true if sessionData is supportedFinds out if the underlaying database connection supports session data caching. |
| public boolean | Returns: true if the connection cannot be closed due to
uncommitted operations in the transactionCheck if there are uncommitted operations in the current transaction that prevent us from closing the connection. |
| private int | Returns: isolation level as a JDBC integer valueSQL isolation string isolationStr)Translates the isolation level from a SQL string to the JDBC int value |
| public boolean | |
| pack-priv void | |
| private void | |
| pack-priv void | |
| public abstract void | |
| public abstract void | |
| public abstract void | |
| public abstract void | |
| public abstract void | |
| public abstract void | |
| private void | |
| public void | |
| protected abstract void | |
| protected abstract void | |
| protected abstract void |