org.firebirdsql.jdbc
Interface FirebirdConnection
- Connection
- AbstractConnection
public interface FirebirdConnection
extends Connection
Extension of Connection
interface providing access to Firebird
specific features.
TPB_CONCURRENCY
public static final int TPB_CONCURRENCY
TPB_CONSISTENCY
public static final int TPB_CONSISTENCY
TPB_NOWAIT
public static final int TPB_NOWAIT
TPB_NO_REC_VERSION
public static final int TPB_NO_REC_VERSION
TPB_READ
public static final int TPB_READ
TPB_READ_COMMITTED
public static final int TPB_READ_COMMITTED
TPB_REC_VERSION
public static final int TPB_REC_VERSION
TPB_WAIT
public static final int TPB_WAIT
TPB_WRITE
public static final int TPB_WRITE
createBlob
public Blob createBlob()
throws SQLException
Create Blob object.
getHoldability
public int getHoldability()
throws SQLException
Retrieves the current holdability of
ResultSet
objects
created using this
Connection
object.
Method copied from the JDBC 3.0 specification.
- the holdability, one of
ResultSet.HOLD_CURSORS_OVER_COMMIT
or
ResultSet.CLOSE_CURSORS_AT_COMMIT
getIscEncoding
public String getIscEncoding()
throws SQLException
Get current ISC encoding.
getTransactionParameters
public TransactionParameterBuffer getTransactionParameters(int isolationLevel)
throws SQLException
Get transaction parameters for the specified transaction isolation level.
isolationLevel
- isolation level defined in the Connection
interface.
releaseSavepoint
public void releaseSavepoint(FirebirdSavepoint savepoint)
throws SQLException
Removes the given
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 removed
rollback
public void rollback(FirebirdSavepoint savepoint)
throws SQLException
Undoes all changes made after the given
FirebirdSavepoint
object
was set.
This method corresponds to the
Connection.rollback(Savepoint)
method in JDBC 3.0.
setFirebirdSavepoint
public FirebirdSavepoint setFirebirdSavepoint()
throws SQLException
Creates an unnamed savepoint in the current transaction and
returns the new
FirebirdSavepoint
object that represents it.
This method corresponds to the
Connection.setSavepoint()
method in JDBC 3.0.
setFirebirdSavepoint
public FirebirdSavepoint setFirebirdSavepoint(String name)
throws SQLException
Creates a named savepoint in the current transaction and
returns the new
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 savepoint
setHoldability
public void setHoldability(int holdability)
throws SQLException
Changes the holdability of
ResultSet
objects
created using this
Connection
object to the given
holdability.
Method copied from the JDBC 3.0 specification.
holdability
- a ResultSet
holdability constant; one of
ResultSet.HOLD_CURSORS_OVER_COMMIT
or
ResultSet.CLOSE_CURSORS_AT_COMMIT
setTransactionParameters
public void setTransactionParameters(int isolationLevel,
int[] parameters)
throws SQLException
use setTransactionParameters(int,TransactionParameterBuffer)
instead.
Set transaction parameters for the specified isolation level. They will
take effect only on the newly started transaction.
isolationLevel
- JDBC isolation level.parameters
- array of TPB parameters, see all TPB_* constants.
setTransactionParameters
public void setTransactionParameters(int isolationLevel,
TransactionParameterBuffer tpb)
throws SQLException
Set transaction parameters for the specified transaction isolation level.
This method replaces the default TPB mapping with the specified one,
changes will be effective from the next transaction start.
isolationLevel
- isolation level defined in the Connection
interface.tpb
- instance of TransactionParameterBuffer
with parameters
to set.
setTransactionParameters
public void setTransactionParameters(TransactionParameterBuffer tpb)
throws SQLException
Set transaction parameters for the next transactions. This method does
not change the TPB mapping, but replaces the mapping for the current
transaction isolation until
Connection.setTransactionIsolation(int)
is called.
Method cannot be called when transaction has already started.
Copyright B) 2001 David Jencks and other authors. All rights reserved.