|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extension of Connection
interface providing access to Firebird
specific features.
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 | |
java.sql.Blob |
createBlob()
Create Blob object. |
TransactionParameterBuffer |
createTransactionParameterBuffer()
Create new instance of TransactionParameterBuffer . |
int |
getHoldability()
Retrieves the current holdability of ResultSet objects
created using this Connection object.
|
java.lang.String |
getIscEncoding()
Get current ISC encoding. |
TransactionParameterBuffer |
getTransactionParameters(int isolationLevel)
Get transaction parameters for the specified transaction isolation level. |
void |
releaseSavepoint(FirebirdSavepoint savepoint)
Removes the given FirebirdSavepoint object from the current
transaction. |
void |
rollback(FirebirdSavepoint savepoint)
Undoes all changes made after the given FirebirdSavepoint object
was set.
|
FirebirdSavepoint |
setFirebirdSavepoint()
Creates an unnamed savepoint in the current transaction and returns the new FirebirdSavepoint object that represents it.
|
FirebirdSavepoint |
setFirebirdSavepoint(java.lang.String name)
Creates a named savepoint in the current transaction and returns the new FirebirdSavepoint object that represents it.
|
void |
setHoldability(int holdability)
Changes the holdability of ResultSet objects
created using this Connection object to the given
holdability.
|
void |
setTransactionParameters(int isolationLevel,
int[] parameters)
Deprecated. use setTransactionParameters(int, TransactionParameterBuffer)
instead. |
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. |
Methods inherited from interface java.sql.Connection |
clearWarnings, close, commit, createStatement, createStatement, createStatement, getAutoCommit, getCatalog, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap |
Field Detail |
public static final int TPB_READ_COMMITTED
public static final int TPB_CONCURRENCY
public static final int TPB_CONSISTENCY
public static final int TPB_READ
public static final int TPB_WRITE
public static final int TPB_WAIT
public static final int TPB_NOWAIT
public static final int TPB_REC_VERSION
public static final int TPB_NO_REC_VERSION
Method Detail |
public java.sql.Blob createBlob() throws java.sql.SQLException
FirebirdBlob
.
java.sql.SQLException
- if something went wrong.public java.lang.String getIscEncoding() throws java.sql.SQLException
java.sql.SQLException
public 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.public 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.public TransactionParameterBuffer createTransactionParameterBuffer() throws java.sql.SQLException
TransactionParameterBuffer
.
TransactionParameterBuffer
.
java.sql.SQLException
- if error occured during this operation.public 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.public 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.public FirebirdSavepoint setFirebirdSavepoint() throws java.sql.SQLException
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.public FirebirdSavepoint setFirebirdSavepoint(java.lang.String name) throws java.sql.SQLException
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
FirebirdSavepoint
java.sql.SQLException
- if a an error occured.public void rollback(FirebirdSavepoint savepoint) throws java.sql.SQLException
FirebirdSavepoint
object
was set.
This method corresponds to the Connection.rollback(Savepoint)
method in JDBC 3.0.
savepoint
- the FirebirdSavepoint
object to roll back to
java.sql.SQLException
- if a database access error occurs.public void releaseSavepoint(FirebirdSavepoint savepoint) throws java.sql.SQLException
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
java.sql.SQLException
- if a database access error occurspublic void setHoldability(int holdability) throws java.sql.SQLException
ResultSet
objects
created using this Connection
object to the given
holdability.
Method copied from the JDBC 3.0 specification.
setHoldability
in interface java.sql.Connection
holdability
- a ResultSet
holdability constant; one of
ResultSet.HOLD_CURSORS_OVER_COMMIT
or
ResultSet.CLOSE_CURSORS_AT_COMMIT
java.sql.SQLException
- if a database access occurs, the given parameter
is not a ResultSet
constant indicating holdability,
or the given holdability is not supportedgetHoldability()
,
ResultSet
public int getHoldability() throws java.sql.SQLException
ResultSet
objects
created using this Connection
object.
Method copied from the JDBC 3.0 specification.
getHoldability
in interface java.sql.Connection
ResultSet.HOLD_CURSORS_OVER_COMMIT
or
ResultSet.CLOSE_CURSORS_AT_COMMIT
java.sql.SQLException
- if a database access occurssetHoldability(int)
,
ResultSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |