| Modifier and Type | Field and Description |
|---|---|
| private String | |
| pack-priv final BrokeredConnectionControl | |
| protected boolean | |
| private boolean | |
| pack-priv int | |
| private int | stateIsolationLevel
Maintain state as seen by this Connection handle, not the state of the underlying Connection it is attached to. |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | abort(Executor
The executor)Executor implementation which will
be used by abort.Implements org. Terminates an open connection. |
| public final void | addWarning(SQLWarning
Warning to be added, will be chained to any
existing warnings. w)Implements org. Add a SQLWarning to this Connection object. |
| 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 typeName, Object[] Array.getBaseTypeNamethe elements that populate the returned object elements)Implements java. Factory method for creating Array objects. |
| public final Blob | Returns: An object that implements theBlob interfaceImplements java. Constructs an object that implements the |
| public final Clob | Returns: An object that implements theClob interfaceImplements 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
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. Creates a |
| public final 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. Creates a |
| public final Struct | createStruct(String
the SQL type name of the SQL structured type that this typeName, 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 attributes)Implements java. Factory method for creating Struct objects. |
| public final boolean | getAutoCommit()
Implements java. Retrieves the current auto-commit mode for this |
| public final String | getCatalog()
Implements java. Retrieves this |
| public final String | Returns: aString that is returned from the real connection.a name)String that is the property key to get.Implements java.
|
| public final Properties | Returns: aProperties object from the real connection.Implements java.
|
| public String | Returns: the current schema nameImplements org. Obtain the name of the current schema. |
| public final int | getHoldability()
Implements java. Get the holdability for statements created by this connection when holdability is not passed in. |
| public void | getIsolationUptoDate()
Isolation level state in BrokeredConnection can get out of sync if the isolation is set using SQL rather than JDBC. |
| public Object | Returns: the LOB Object corresponding to this locator.the integer that represents the LOB locator value. key)Implements org. Get the LOB reference corresponding to the locator. |
| public final DatabaseMetaData | getMetaData()
Implements java. Retrieves a |
| public int | getNetworkTimeout()
Implements org. Retrieves the number of milliseconds the driver will wait for a database request to complete. |
| public final int | Returns: current prepare isolation levelImplements org. get the isolation level that is currently being used to prepare statements (used for network server) |
| pack-priv final EngineConnection | Returns: the current connectionA little indirection for getting the real connection. |
| public String | getSchema()
Implements org. Get the name of the current schema. |
| public final int | getTransactionIsolation()
Implements java. Retrieves this |
| public 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 |
| public boolean | isInGlobalTransaction()
Implements org. Is this a global transaction |
| public final boolean | isReadOnly()
Implements java. Retrieves whether this |
| public final boolean | Returns: true if the connection is valid, false otherwiseThe time in seconds to wait for the database operation
used to validate the connection to complete. If the timeout period
expires before the operation completes, this method returns false. A
value of 0 indicates a timeout is not applied to the database operation. timeout)Implements java. Checks if the connection has not been closed and is still valid. |
| public final boolean | Returns: true if this implements the interface or directly or indirectly wraps an object that does.a Class defining an interface. iface)Implements java. Returns false unless |
| public final String | nativeSQL(String
an SQL statement that may contain one or more '?'
parameter placeholders sql)Implements java. Converts the given SQL statement into the system's native SQL grammar. |
| public final BrokeredStatement | |
| public BrokeredPreparedStatement | |
| public BrokeredCallableStatement | |
| pack-priv final SQLException | Returns: a no-current-connection exceptionGenerate an exception reporting that there is no current connection. |
| pack-priv final void | |
| 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. sql)Implements java. Creates a |
| public final 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. Creates a |
| public final 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. Creates a |
| public final PreparedStatement | prepareStatement(String
an SQL statement that may contain one or more '?' IN
parameter placeholders sql)Implements java. Creates a |
| public final 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. Creates a |
| public final 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. Creates a default |
| public final 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. Creates a default |
| public final 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. Creates a default |
| public final 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. Prepare statement with explicit holdability. |
| public final void | releaseSavepoint(Savepoint
the savepoint)Savepoint object to be removedImplements java. Removes the specified |
| public void | resetFromPool()
Implements org. Resets the connection before it is returned from a PooledConnection to a new application request (wrapped by a BrokeredConnection). |
| 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 savepoint)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
catalog)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(String
the property key name, String Stringthe property value value)StringImplements java.
|
| public final void | setClientInfo(Properties
a properties)Properties object with the properties to set.Implements java.
|
| public final void | setDrdaID(String
drdaID to be used for this connection drdaID)Implements org. set the DrdaId for this connection. |
| public final void | setHoldability(int
a holdability)ResultSet holdability constant; one of
ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMITImplements java. Changes the default holdability of |
| 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 org. Sets the maximum period a |
| public final void | setPrepareIsolation(int
- internal isolation level level)Implements org. Set the internal isolation level to use for preparing statements. |
| 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 name)String containing the name of the savepointImplements java. Creates a savepoint with the given name in the current transaction
and returns the new |
| public void | setSchema(String
The new default schema schemaName)Implements org. Set the default schema for the Connection. |
| public void | setState(boolean
If true set the complete state of the underlying
Connection, otherwise set only the Connection related state (ie.
the non-transaction specific state). complete)Set the state of the underlying connection according to the state of this connection's view of state. |
| public final 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. Attempts to change the transaction isolation level for this
|
| public final void | setTypeMap(Map<String, Class<?>>
the map)java.util.Map object to install
as the replacement for this Connection
object's default type mapImplements java. Installs the given |
| pack-priv final int | statementHoldabilityCheck(int resultSetHoldability)
Check the result set holdability when creating a statement object. |
| public void | |
| public String | Returns: unique string representation for this connectionOverrides java. Get the string representation for this connection. |
| public final <T> T | Returns: an object that implements the interfacea Class defining an interface iface)Implements java. Returns |