org.firebirdsql.jdbc
Interface FirebirdConnection

All Superinterfaces:
java.sql.Connection
All Known Implementing Classes:
AbstractConnection

public interface FirebirdConnection
extends java.sql.Connection

Extension of Connection interface providing access to Firebird specific features.

Author:
Roman Rokytskyy

Field Summary
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
           
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Method Summary
 FirebirdBlob createBlob()
          Create Blob object.
 java.lang.String getIscEncoding()
          Get current ISC encoding.
 void setTransactionParameters(int isolationLevel, int[] parameters)
          Set transaction parameters for the specified isolation level.
 
Methods inherited from interface java.sql.Connection
clearWarnings, close, commit, createStatement, createStatement, createStatement, getAutoCommit, getCatalog, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap
 

Field Detail

TPB_READ_COMMITTED

public static final int TPB_READ_COMMITTED
See Also:
Constant Field Values

TPB_CONCURRENCY

public static final int TPB_CONCURRENCY
See Also:
Constant Field Values

TPB_CONSISTENCY

public static final int TPB_CONSISTENCY
See Also:
Constant Field Values

TPB_READ

public static final int TPB_READ
See Also:
Constant Field Values

TPB_WRITE

public static final int TPB_WRITE
See Also:
Constant Field Values

TPB_WAIT

public static final int TPB_WAIT
See Also:
Constant Field Values

TPB_NOWAIT

public static final int TPB_NOWAIT
See Also:
Constant Field Values

TPB_REC_VERSION

public static final int TPB_REC_VERSION
See Also:
Constant Field Values

TPB_NO_REC_VERSION

public static final int TPB_NO_REC_VERSION
See Also:
Constant Field Values
Method Detail

createBlob

public FirebirdBlob createBlob()
                        throws java.sql.SQLException
Create Blob object.

Returns:
instance of FirebirdBlob.
Throws:
java.sql.SQLException - if something went wrong.

getIscEncoding

public java.lang.String getIscEncoding()
Get current ISC encoding.

Returns:
current ISC encoding.

setTransactionParameters

public void setTransactionParameters(int isolationLevel,
                                     int[] parameters)
                              throws java.sql.SQLException
Set transaction parameters for the specified isolation level. They will take effect only on the newly started transaction.

Parameters:
isolationLevel - JDBC isolation level.
parameters - array of TPB parameters, see all TPB_* constants.
Throws:
java.sql.SQLException - if specified transaction parameters cannot be set.


Copyright © 2001 David Jencks and other authors. All rights reserved.