public interface FirebirdConnection
extends java.sql.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 |
Modifier and Type | Method and Description |
---|---|
java.sql.Blob |
createBlob()
Create Blob object.
|
TransactionParameterBuffer |
createTransactionParameterBuffer()
Create new instance of
TransactionParameterBuffer . |
java.lang.String |
getIscEncoding()
Get current ISC encoding.
|
TransactionParameterBuffer |
getTransactionParameters(int isolationLevel)
Get transaction parameters for the specified transaction isolation level.
|
boolean |
isUseFirebirdAutoCommit() |
void |
releaseSavepoint(FirebirdSavepoint savepoint)
Deprecated.
This method will be removed in Jaybird 2.3, use
Connection.releaseSavepoint(java.sql.Savepoint) |
void |
rollback(FirebirdSavepoint savepoint)
Deprecated.
This method will be removed in Jaybird 2.3, use
Connection.rollback(java.sql.Savepoint) |
FirebirdSavepoint |
setFirebirdSavepoint()
Deprecated.
This method will be removed in Jaybird 2.3, use
Connection.setSavepoint() |
FirebirdSavepoint |
setFirebirdSavepoint(java.lang.String name)
Deprecated.
This method will be removed in Jaybird 2.3, use
Connection.setSavepoint(String) |
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
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
java.sql.Blob createBlob() throws java.sql.SQLException
createBlob
in interface java.sql.Connection
FirebirdBlob
.java.sql.SQLException
- if something went wrong.java.lang.String getIscEncoding() throws java.sql.SQLException
java.sql.SQLException
void setTransactionParameters(int isolationLevel, int[] parameters) throws java.sql.SQLException
setTransactionParameters(int, TransactionParameterBuffer)
instead.isolationLevel
- JDBC isolation level.parameters
- array of TPB parameters, see all TPB_* constants.java.sql.SQLException
- if specified transaction parameters cannot be set.TransactionParameterBuffer getTransactionParameters(int isolationLevel) throws java.sql.SQLException
isolationLevel
- isolation level defined in the Connection
interface.TransactionParameterBuffer
containing current
transaction parameters.java.sql.SQLException
- if error occured obtaining transaction parameters.TransactionParameterBuffer createTransactionParameterBuffer() throws java.sql.SQLException
TransactionParameterBuffer
.TransactionParameterBuffer
.java.sql.SQLException
- if error occured during this operation.void setTransactionParameters(int isolationLevel, TransactionParameterBuffer tpb) throws java.sql.SQLException
isolationLevel
- isolation level defined in the Connection
interface.tpb
- instance of TransactionParameterBuffer
with parameters
to set.java.sql.SQLException
- if error occured during this operation.void setTransactionParameters(TransactionParameterBuffer tpb) throws java.sql.SQLException
Connection.setTransactionIsolation(int)
is called.
Method cannot be called when transaction has already started.
tpb
- instance of TransactionParameterBuffer
with new
transaction parameters.java.sql.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.@Deprecated FirebirdSavepoint setFirebirdSavepoint() throws java.sql.SQLException
Connection.setSavepoint()
FirebirdSavepoint
object that represents it.
This method corresponds to the Connection.setSavepoint()
method in JDBC 3.0.
FirebirdSavepoint
java.sql.SQLException
- if a an error occured.@Deprecated FirebirdSavepoint setFirebirdSavepoint(java.lang.String name) throws java.sql.SQLException
Connection.setSavepoint(String)
FirebirdSavepoint
object that represents it.
This method corresponds to the Connection.setSavepoint(String)
method in JDBC 3.0.
name
- a String
containing the name of the savepointFirebirdSavepoint
java.sql.SQLException
- if a an error occured.@Deprecated void rollback(FirebirdSavepoint savepoint) throws java.sql.SQLException
Connection.rollback(java.sql.Savepoint)
FirebirdSavepoint
object
was set.
This method corresponds to the Connection.rollback(Savepoint)
method in JDBC 3.0.
savepoint
- the FirebirdSavepoint
object to roll back tojava.sql.SQLException
- if a database access error occurs.@Deprecated void releaseSavepoint(FirebirdSavepoint savepoint) throws java.sql.SQLException
Connection.releaseSavepoint(java.sql.Savepoint)
FirebirdSavepoint
object from the current
transaction. Any reference to the savepoint after it have been removed
will cause an SQLException
to be thrown.
This method corresponds to the Connection.releaseSavepoint(Savepoint)
method in JDBC 3.0.
savepoint
- the FirebirdSavepoint
object to be removedjava.sql.SQLException
- if a database access error occursCopyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.