public interface FirebirdConnection extends Connection
Connection
interface providing access to Firebird
specific features.Modifier and Type | Field and Description |
---|---|
static int |
TPB_CONCURRENCY |
static int |
TPB_CONSISTENCY |
static int |
TPB_NO_REC_VERSION |
static int |
TPB_NOWAIT |
static int |
TPB_READ |
static int |
TPB_READ_COMMITTED |
static int |
TPB_REC_VERSION |
static int |
TPB_WAIT |
static int |
TPB_WRITE |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
Modifier and Type | Method and Description |
---|---|
Blob |
createBlob() |
TransactionParameterBuffer |
createTransactionParameterBuffer()
Create new instance of
TransactionParameterBuffer . |
FbDatabase |
getFbDatabase()
Provides access to the low-level connection handle.
|
String |
getIscEncoding()
Get current ISC encoding.
|
TransactionParameterBuffer |
getTransactionParameters(int isolationLevel)
Get transaction parameters for the specified transaction isolation level.
|
boolean |
isUseFirebirdAutoCommit() |
void |
setTransactionParameters(int isolationLevel,
int[] parameters)
Deprecated.
|
void |
setTransactionParameters(int isolationLevel,
TransactionParameterBuffer tpb)
Set transaction parameters for the specified transaction isolation level.
|
void |
setTransactionParameters(TransactionParameterBuffer tpb)
Set transaction parameters for the next transactions.
|
abort, clearWarnings, close, commit, createArrayOf, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap
isWrapperFor, unwrap
static final int TPB_READ_COMMITTED
static final int TPB_CONCURRENCY
static final int TPB_CONSISTENCY
static final int TPB_READ
static final int TPB_WRITE
static final int TPB_WAIT
static final int TPB_NOWAIT
static final int TPB_REC_VERSION
static final int TPB_NO_REC_VERSION
Blob createBlob() throws SQLException
createBlob
in interface Connection
FirebirdBlob
.SQLException
String getIscEncoding() throws SQLException
SQLException
@Deprecated void setTransactionParameters(int isolationLevel, int[] parameters) throws SQLException
setTransactionParameters(int, TransactionParameterBuffer)
instead.isolationLevel
- JDBC isolation level.parameters
- array of TPB parameters, see all TPB_* constants.SQLException
- if specified transaction parameters cannot be set.TransactionParameterBuffer getTransactionParameters(int isolationLevel) throws SQLException
isolationLevel
- isolation level defined in the Connection
interface.TransactionParameterBuffer
containing current
transaction parameters.SQLException
- if error occured obtaining transaction parameters.TransactionParameterBuffer createTransactionParameterBuffer() throws SQLException
TransactionParameterBuffer
.TransactionParameterBuffer
.SQLException
- if error occured during this operation.void setTransactionParameters(int isolationLevel, TransactionParameterBuffer tpb) throws SQLException
isolationLevel
- isolation level defined in the Connection
interface.tpb
- instance of TransactionParameterBuffer
with parameters
to set.SQLException
- if error occured during this operation.void setTransactionParameters(TransactionParameterBuffer tpb) throws SQLException
Connection.setTransactionIsolation(int)
is called.
Method cannot be called when transaction has already started.
tpb
- instance of TransactionParameterBuffer
with new
transaction parameters.SQLException
- if method is called within a transaction.boolean isUseFirebirdAutoCommit()
true
if this connection is configured to use isc_tpb_autocommit
when in auto commit.FbDatabase getFbDatabase() throws SQLException
WARNING using this connection handle directly may bring the JDBC connection in an inconsistent state.
SQLException
Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.