org.firebirdsql.jdbc
Class FBConnection

java.lang.Object
  extended by org.firebirdsql.jdbc.AbstractConnection
      extended by org.firebirdsql.jdbc.FBConnection
All Implemented Interfaces:
java.sql.Connection, java.sql.Wrapper, FirebirdConnection, Synchronizable

public class FBConnection
extends AbstractConnection

Firebird connection class implementing JDBC 3.0 methods.

Author:
Roman Rokytskyy

Nested Class Summary
 
Nested classes/interfaces inherited from class org.firebirdsql.jdbc.AbstractConnection
AbstractConnection.GeneratedKeysQuery
 
Field Summary
 
Fields inherited from class org.firebirdsql.jdbc.AbstractConnection
activeStatements, mc, txCoordinator
 
Fields inherited from interface org.firebirdsql.jdbc.FirebirdConnection
TPB_CONCURRENCY, TPB_CONSISTENCY, TPB_NO_REC_VERSION, TPB_NOWAIT, TPB_READ, TPB_READ_COMMITTED, TPB_REC_VERSION, TPB_WAIT, TPB_WRITE
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
FBConnection(FBManagedConnection mc)
          Create instance of this class for the specified managed connection.
 
Method Summary
 void abort(java.util.concurrent.Executor executor)
           
 java.sql.NClob createNClob()
           
 java.sql.SQLXML createSQLXML()
           
 java.util.Properties getClientInfo()
           
protected  java.lang.String getClientInfo(java.sql.PreparedStatement stmt, java.lang.String name)
           
 java.lang.String getClientInfo(java.lang.String name)
           
 int getNetworkTimeout()
           
protected  void setClientInfo(java.sql.PreparedStatement stmt, java.lang.String name, java.lang.String value)
           
 void setClientInfo(java.util.Properties properties)
           
 void setClientInfo(java.lang.String name, java.lang.String value)
           
 void setNetworkTimeout(java.util.concurrent.Executor executor, int milliseconds)
           
 
Methods inherited from class org.firebirdsql.jdbc.AbstractConnection
addWarning, checkAutoGeneratedKeysSupport, checkValidity, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createStatement, createStatement, createStatement, createStruct, createTransactionParameterBuffer, finalize, getAutoCommit, getCatalog, getDatabaseParameterBuffer, getGDSHelper, getHoldability, getInternalAPIHandler, getIscDBHandle, getIscEncoding, getLocalTransaction, getManagedConnection, getMetaData, getSchema, getStatementListener, getSynchronizationObject, getTransactionIsolation, getTransactionParameters, getTypeMap, getWarnings, inTransaction, invalidateSavepoints, invalidateTransactionLifetimeObjects, isClosed, isReadOnly, isUseFirebirdAutoCommit, isValid, isWrapperFor, nativeSQL, prepareCall, prepareCall, prepareCall, prepareMetaDataStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, releaseSavepoint, rollback, rollback, rollback, setAutoCommit, setCatalog, setFirebirdSavepoint, setFirebirdSavepoint, setHoldability, setManagedConnection, setManagedEnvironment, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTransactionParameters, setTransactionParameters, setTransactionParameters, setTypeMap, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FBConnection

public FBConnection(FBManagedConnection mc)
Create instance of this class for the specified managed connection.

Parameters:
mc - managed connection.
Method Detail

createNClob

public java.sql.NClob createNClob()
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

createSQLXML

public java.sql.SQLXML createSQLXML()
                             throws java.sql.SQLException
Throws:
java.sql.SQLException

getClientInfo

public java.util.Properties getClientInfo()
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

getClientInfo

public java.lang.String getClientInfo(java.lang.String name)
                               throws java.sql.SQLException
Throws:
java.sql.SQLException

getClientInfo

protected java.lang.String getClientInfo(java.sql.PreparedStatement stmt,
                                         java.lang.String name)
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

setClientInfo

public void setClientInfo(java.util.Properties properties)
                   throws java.sql.SQLClientInfoException
Throws:
java.sql.SQLClientInfoException

setClientInfo

public void setClientInfo(java.lang.String name,
                          java.lang.String value)
                   throws java.sql.SQLClientInfoException
Throws:
java.sql.SQLClientInfoException

setClientInfo

protected void setClientInfo(java.sql.PreparedStatement stmt,
                             java.lang.String name,
                             java.lang.String value)
                      throws java.sql.SQLException
Throws:
java.sql.SQLException

abort

public void abort(java.util.concurrent.Executor executor)
           throws java.sql.SQLException
Throws:
java.sql.SQLException

setNetworkTimeout

public void setNetworkTimeout(java.util.concurrent.Executor executor,
                              int milliseconds)
                       throws java.sql.SQLException
Throws:
java.sql.SQLException

getNetworkTimeout

public int getNetworkTimeout()
                      throws java.sql.SQLException
Throws:
java.sql.SQLException


Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.