| Modifier and Type | Field and Description |
|---|---|
| pack-priv ConnectionEventListener | |
| protected Connection | |
| pack-priv ReentrantLock | |
| private static final MLogger | |
| pack-priv DatabaseMetaData | |
| pack-priv volatile NewPooledConnection | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public final void | abort(Executor
The a)Executor implementation which will
be used by abort.Implements java. Terminates an open connection. |
| pack-priv void | |
| public final void | beginRequest()
Overrides default java. Hints to the driver that a request, an independent unit of work, is beginning on this connection. |
| public final void | clearWarnings()
Implements java. Clears all warnings reported for this |
| public final void | close()
Implements java. Releases this |
| public final void | commit()
Implements java. Makes all changes made since the previous
commit/rollback permanent and releases any database locks
currently held by this |
| public final Array | createArrayOf(String
the SQL name of the type the elements of the array map to. The typeName is a
database-specific name which may be the name of a built-in type, a user-defined type or a standard SQL type supported by this database. This
is the value returned by a, Object[] Array.getBaseTypeNamethe elements that populate the returned object b)Implements java. Factory method for creating Array objects. |
| public final Blob | createBlob()
Implements java. Constructs an object that implements the |
| public final Clob | createClob()
Implements java. Constructs an object that implements the |
| public final NClob | createNClob()
Implements java. Constructs an object that implements the |
| public final SQLXML | createSQLXML()
Implements java. Constructs an object that implements the |
| public final Statement | createStatement()
Implements java. Creates a |
| public final Statement | createStatement(int
a result set type; one of
a, int ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEa concurrency type; one of
b)ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEImplements java. Creates a |
| public final Statement | createStatement(int
one of the following a, int ResultSet
constants:
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEone of the following b, int ResultSet
constants:
ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEone of the following c)ResultSet
constants:
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMITImplements java. Creates a |
| public final Struct | createStruct(String
the SQL type name of the SQL structured type that this a, Object[] Struct
object maps to. The typeName is the name of a user-defined type that
has been defined for this database. It is the value returned by
Struct.getSQLTypeName.the attributes that populate the returned object b)Implements java. Factory method for creating Struct objects. |
| private void | |
| public final void | endRequest()
Overrides default java. Hints to the driver that a request, an independent unit of work, has completed. |
| public final boolean | getAutoCommit()
Implements java. Retrieves the current auto-commit mode for this |
| public final String | getCatalog()
Implements java. Retrieves this |
| public final Properties | getClientInfo()
Implements java. Returns a list containing the name and current value of each client info property supported by the driver. |
| public final String | getClientInfo(String
The name of the client info property to retrieve a)Implements java. Returns the value of the client info property specified by name. |
| public final int | getHoldability()
Implements java. Retrieves the current holdability of |
| public final DatabaseMetaData | getMetaData()
Implements java. Retrieves a |
| public final int | getNetworkTimeout()
Implements java. Retrieves the number of milliseconds the driver will wait for a database request to complete. |
| public final String | getSchema()
Implements java. Retrieves this |
| public final int | getTransactionIsolation()
Implements java. Retrieves this |
| public final Map | getTypeMap()
Implements java. Retrieves the |
| public final SQLWarning | getWarnings()
Implements java. Retrieves the first warning reported by calls on this
|
| public final boolean | isClosed()
Implements java. Retrieves whether this |
| pack-priv boolean | |
| public final boolean | isReadOnly()
Implements java. Retrieves whether this |
| public final boolean | isValid(int
The time in seconds to wait for the database operation
used to validate the connection to complete. If the
timeout period expires before the operationcompletes,
this method returns false. A value of 0 indicates a
timeout is not applied to the database operation. a)Implements java. Returns true if the connection has not been closed and is still valid. |
| public final boolean | isWrapperFor(Class<T>
a Class defining an interface. a)Implements java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does. |
| private boolean | |
| private boolean | |
| pack-priv void | |
| public final String | nativeSQL(String
an SQL statement that may contain one or more '?'
parameter placeholders a)Implements java. Converts the given SQL statement into the system's native SQL grammar. |
| public final CallableStatement | prepareCall(String
a a, int String object that is the SQL statement to
be sent to the database; may contain on or more '?' parametersone of the following b, int ResultSet
constants:
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEone of the following c, int ResultSet
constants:
ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEone of the following d)ResultSet
constants:
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMITImplements java. Creates a |
| public final CallableStatement | prepareCall(String
an SQL statement that may contain one or more '?'
parameter placeholders. Typically this statement is specified using JDBC
call escape syntax. a)Implements java. Creates a |
| public final CallableStatement | prepareCall(String
a a, 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
b, int ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEa concurrency type; one of
c)ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEImplements java. Creates a |
| public final PreparedStatement | prepareStatement(String
a a, int String object that is the SQL statement to
be sent to the database; may contain one or more '?' IN
parametersone of the following b, int ResultSet
constants:
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEone of the following c, int ResultSet
constants:
ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEone of the following d)ResultSet
constants:
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMITImplements java. Creates a |
| public final PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders a, String[] an array of column names indicating the columns
that should be returned from the inserted row or rows b)Implements java. Creates a default |
| public final PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders a, int[] an array of column indexes indicating the columns
that should be returned from the inserted row or rows b)Implements java. Creates a default |
| public final PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders a, int a flag indicating whether auto-generated keys
should be returned; one of
b)Statement.RETURN_GENERATED_KEYS or
Statement.NO_GENERATED_KEYSImplements java. Creates a default |
| public final PreparedStatement | prepareStatement(String
a a, 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
b, int ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEa concurrency type; one of
c)ResultSet.CONCUR_READ_ONLY or
ResultSet.CONCUR_UPDATABLEImplements java. Creates a |
| public final PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders a)Implements java. Creates a |
| public Object | rawConnectionOperation(Method m, Object target, Object[] args)
Implements com. Allows one to work with the unproxied, raw Connection. |
| public final void | releaseSavepoint(Savepoint
the a)Savepoint object to be removedImplements java. Removes the specified |
| public final void | rollback()
Implements java. Undoes all changes made in the current transaction
and releases any database locks currently held
by this |
| public final void | rollback(Savepoint
the a)Savepoint object to roll back toImplements java. Undoes all changes made after the given |
| public final void | setAutoCommit(boolean
true to enable auto-commit mode;
false to disable itImplements java. Sets this connection's auto-commit mode to the given state. |
| public final void | setCatalog(String
the name of a catalog (subspace in this
a)Connection object's database) in which to workImplements java. Sets the given catalog name in order to select
a subspace of this |
| public final void | setClientInfo(Properties
the list of client info properties to set a)Implements java. Sets the value of the connection's client info properties. |
| public final void | setClientInfo(String
The name of the client info property to set a, String The value to set the client info property to. If the
value is null, the current value of the specified
property is cleared. b)Implements java. Sets the value of the client info property specified by name to the value specified by value. |
| public final void | setHoldability(int
a a)ResultSet holdability constant; one of
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMITImplements java. Changes the default holdability of |
| public final void | setNetworkTimeout(Executor
The a, 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. b)Implements java. Sets the maximum period a |
| public final void | setReadOnly(boolean
true enables read-only mode;
false disables itImplements java. Puts this connection in read-only mode as a hint to the driver to enable database optimizations. |
| public final Savepoint | setSavepoint()
Implements java. Creates an unnamed savepoint in the current transaction and
returns the new |
| public final Savepoint | setSavepoint(String
a a)String containing the name of the savepointImplements java. Creates a savepoint with the given name in the current transaction
and returns the new |
| public final void | setSchema(String
the name of a schema in which to work a)Implements java. Sets the given schema name to access. |
| public final void | setShardingKey(ShardingKey
the sharding key to set on this connection. The sharding
key may be a, ShardingKey nullthe super sharding key to set on this connection.
The super sharding key may be b)nullOverrides default java. Specifies a shardingKey and superShardingKey to use with this Connection |
| public final void | setShardingKey(ShardingKey
the sharding key to set on this connection. The sharding
key may be a)nullOverrides default java. Specifies a shardingKey to use with this Connection |
| public final boolean | setShardingKeyIfValid(ShardingKey
the sharding key to be validated against this connection.
The sharding key may be a, ShardingKey nullthe super sharding key to be validated against this
connection. The super sharding key may be b, int null.time in seconds before which the validation process is expected to
be completed, otherwise the validation process is aborted. A value of 0 indicates
the validation process will not time out. c)Overrides default java. Sets and validates the sharding keys for this connection. |
| public final boolean | setShardingKeyIfValid(ShardingKey
the sharding key to be validated against this connection.
The sharding key may be a, int nulltime in seconds before which the validation process is expected to
be completed,else the validation process is aborted. A value of 0 indicates
the validation process will not time out. b)Overrides default java. Sets and validates the sharding key for this connection. |
| public final void | setTransactionIsolation(int
one of the following a)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. Attempts to change the transaction isolation level for this
|
| public final void | setTypeMap(Map<K, V>
the a)java.util.Map object to install
as the replacement for this Connection
object's default type mapImplements java. Installs the given |
| public String | |
| public final Object | unwrap(Class<T>
A Class defining an interface that the result must implement. a)Implements java. Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy. |