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
Deprecated.
|
static int |
TPB_CONSISTENCY
Deprecated.
|
static int |
TPB_NO_REC_VERSION
Deprecated.
|
static int |
TPB_NOWAIT
Deprecated.
|
static int |
TPB_READ
Deprecated.
|
static int |
TPB_READ_COMMITTED
Deprecated.
|
static int |
TPB_REC_VERSION
Deprecated.
|
static int |
TPB_WAIT
Deprecated.
|
static int |
TPB_WRITE
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.sql.Blob |
createBlob() |
TransactionParameterBuffer |
createTransactionParameterBuffer()
Create new instance of
TransactionParameterBuffer. |
java.lang.String |
enquoteIdentifier(java.lang.String identifier,
boolean alwaysDelimit)
Returns a simple SQL identifier or a delimited identifier, as appropriate for the connection dialect.
|
java.lang.String |
enquoteLiteral(java.lang.String val)
Returns a string appropriately quoted as a string literal for the connection dialect.
|
java.lang.String |
enquoteNCharLiteral(java.lang.String val)
Returns a string appropriately quoted as a string literal for the connection dialect.
|
FbDatabase |
getFbDatabase()
Provides access to the low-level connection handle.
|
java.lang.String |
getIscEncoding()
Deprecated.
Will be removed in Jaybird 6
|
TransactionParameterBuffer |
getTransactionParameters(int isolationLevel)
Get transaction parameters for the specified transaction isolation level.
|
boolean |
isSimpleIdentifier(java.lang.String identifier)
Returns whether
identifier is a simple identifier. |
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@Deprecated static final int TPB_READ_COMMITTED
@Deprecated static final int TPB_CONCURRENCY
@Deprecated static final int TPB_CONSISTENCY
@Deprecated static final int TPB_READ
@Deprecated static final int TPB_WRITE
@Deprecated static final int TPB_WAIT
@Deprecated static final int TPB_NOWAIT
@Deprecated static final int TPB_REC_VERSION
@Deprecated static final int TPB_NO_REC_VERSION
java.sql.Blob createBlob()
throws java.sql.SQLException
createBlob in interface java.sql.ConnectionFirebirdBlob.java.sql.SQLException@Deprecated
java.lang.String getIscEncoding()
throws java.sql.SQLException
java.sql.SQLException@Deprecated
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 occurred obtaining transaction parameters.TransactionParameterBuffer createTransactionParameterBuffer() throws java.sql.SQLException
TransactionParameterBuffer.TransactionParameterBuffer.java.sql.SQLException - if error occurred during this operation.void setTransactionParameters(int isolationLevel,
TransactionParameterBuffer tpb)
throws java.sql.SQLException
This method replaces the default TPB mapping with the specified one, changes will be effective from the next transaction start.
tpb - instance of TransactionParameterBuffer with parameters
to set.java.sql.SQLException - if error occurred during this operation.void setTransactionParameters(TransactionParameterBuffer tpb) throws java.sql.SQLException
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.
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.@InternalApi FbDatabase getFbDatabase() throws java.sql.SQLException
WARNING using this connection handle directly may bring the JDBC connection in an inconsistent state.
java.sql.SQLExceptionjava.lang.String enquoteLiteral(java.lang.String val)
throws java.sql.SQLException
This method is defined in Connection starting with JDBC 4.5 (Java 26). The definition in this
interface may be removed without notice once Jaybird only supports Java versions that expect JDBC 4.5 or higher.
val - a character stringjava.lang.NullPointerException - if val is nulljava.sql.SQLException - for database access errorsjava.lang.String enquoteNCharLiteral(java.lang.String val)
throws java.sql.SQLException
Implementations should call their implementation of enquoteLiteral(String). Given the future removal
of this method from this interface, we're not providing a default implementation in this interface. Contrary
to the requirements stated in JDBC 4.5, the returned string is not prefixed with N as
Firebird doesn't have NCHAR literals.
This method is defined in Connection starting with JDBC 4.5 (Java 26). The definition in this
interface may be removed without notice once Jaybird only supports Java versions that expect JDBC 4.5 or higher.
val - a character stringjava.lang.NullPointerException - if val is nulljava.sql.SQLException - for database access errorsenquoteLiteral(String)java.lang.String enquoteIdentifier(java.lang.String identifier,
boolean alwaysDelimit)
throws java.sql.SQLException
For dialect 3, if identifier already starts and ends in a double quote, we strip the quotes, unescape
doubled double quotes, and requote and reescape. Reserved words known to Jaybird are not considered simple
identifiers, and are always delimited.
For dialect 1, if identifier is not a simple identifier or if alwaysDelimit is true,
this method will throw a SQLFeatureNotSupportedException as dialect 1 does not support delimited
identifiers.
This method is defined in Connection starting with JDBC 4.5 (Java 26). The definition in this
interface may be removed without notice once Jaybird only supports Java versions that expect JDBC 4.5 or higher.
identifier - a SQL identifieralwaysDelimit - indicates if a simple SQL identifier should be returned as a delimited identifierjava.lang.NullPointerException - if identifier is nulljava.sql.SQLFeatureNotSupportedException - if the datasource does not support delimited identifiers and identifier is not a simple
identifier or alwaysDelimit is truejava.sql.SQLException - if identifier is not a valid identifierisSimpleIdentifier(String)boolean isSimpleIdentifier(java.lang.String identifier)
throws java.sql.SQLException
identifier is a simple identifier.
Reserved words known to Jaybird are not considered simple identifiers.
This method is defined in Connection starting with JDBC 4.5 (Java 26). The definition in this
interface may be removed without notice once Jaybird only supports Java versions that expect JDBC 4.5 or higher.
identifier - a SQL identifiertrue if a simple SQL identifier, false otherwisejava.lang.NullPointerException - if identifier is nulljava.sql.SQLException - for database access errorsCopyright © 2001-2026 Jaybird (Firebird JDBC) team. All rights reserved.