Package org.firebirdsql.ds
Class FBXADataSource
- java.lang.Object
- 
- org.firebirdsql.ds.RootCommonDataSource
- 
- org.firebirdsql.ds.FBAbstractCommonDataSource
- 
- org.firebirdsql.ds.FBXADataSource
 
 
 
- 
- All Implemented Interfaces:
- javax.naming.Referenceable,- javax.sql.CommonDataSource,- javax.sql.XADataSource,- FirebirdConnectionProperties
 
 public class FBXADataSource extends FBAbstractCommonDataSource implements javax.sql.XADataSource, javax.naming.Referenceable Bare-bones implementation ofXADataSource.- Since:
- 2.2
- Author:
- Mark Rotteveel
 
- 
- 
Field Summary- 
Fields inherited from class org.firebirdsql.ds.FBAbstractCommonDataSourcelock, REF_DATABASE_NAME, REF_DESCRIPTION, REF_PORT_NUMBER, REF_PROPERTIES, REF_SERVER_NAME
 
- 
 - 
Constructor SummaryConstructors Constructor Description FBXADataSource()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckNotStarted()Method to check if this DataSource has not yet started.javax.naming.ReferencegetReference()javax.sql.XAConnectiongetXAConnection()javax.sql.XAConnectiongetXAConnection(java.lang.String user, java.lang.String password)- 
Methods inherited from class org.firebirdsql.ds.FBAbstractCommonDataSourcegetAuthPlugins, getBlobBufferSize, getBuffersNumber, getCharSet, getConnectionProperties, getConnectTimeout, getDatabase, getDatabaseName, getDatabaseParameterBuffer, getDataTypeBind, getDbCryptConfig, getDefaultIsolation, getDefaultTransactionIsolation, getDescription, getEncoding, getGeneratedKeysEnabled, getLoginTimeout, getNonStandardProperty, getPassword, getPortNumber, getRoleName, getServerName, getSessionTimeZone, getSocketBufferSize, getSoTimeout, getSqlDialect, getTpbMapping, getTransactionParameters, getType, getUser, getUserName, getWireCrypt, isDefaultResultSetHoldable, isIgnoreProcedureType, isTimestampUsesLocalTimezone, isUseFirebirdAutocommit, isUseStandardUdf, isUseStreamBlobs, isWireCompression, setAuthPlugins, setBlobBufferSize, setBuffersNumber, setCharSet, setConnectionProperties, setConnectTimeout, setDatabase, setDatabase, setDatabaseName, setDataTypeBind, setDbCryptConfig, setDefaultIsolation, setDefaultResultSetHoldable, setDefaultTransactionIsolation, setDescription, setEncoding, setGeneratedKeysEnabled, setIgnoreProcedureType, setLoginTimeout, setNonStandardProperty, setNonStandardProperty, setPassword, setPortNumber, setRoleName, setServerName, setSessionTimeZone, setSocketBufferSize, setSoTimeout, setSqlDialect, setTimestampUsesLocalTimezone, setTpbMapping, setTransactionParameters, setType, setUseFirebirdAutocommit, setUser, setUserName, setUseStandardUdf, setUseStreamBlobs, setWireCompression, setWireCrypt, updateReference
 - 
Methods inherited from class org.firebirdsql.ds.RootCommonDataSourcegetLogWriter, getParentLogger, setLogWriter
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
- 
 
- 
- 
- 
Method Detail- 
getXAConnectionpublic javax.sql.XAConnection getXAConnection() throws java.sql.SQLException- Specified by:
- getXAConnectionin interface- javax.sql.XADataSource
- Throws:
- java.sql.SQLException
 
 - 
getXAConnectionpublic javax.sql.XAConnection getXAConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException- Specified by:
- getXAConnectionin interface- javax.sql.XADataSource
- Throws:
- java.sql.SQLException
 
 - 
checkNotStartedprotected void checkNotStarted() throws java.lang.IllegalStateExceptionDescription copied from class:FBAbstractCommonDataSourceMethod to check if this DataSource has not yet started.Implementations should throw IllegalStateException when the DataSource is already in use and modifying properties is not allowed. - Specified by:
- checkNotStartedin class- FBAbstractCommonDataSource
- Throws:
- java.lang.IllegalStateException- When the DataSource is already in use
 
 - 
getReferencepublic javax.naming.Reference getReference() throws javax.naming.NamingException- Specified by:
- getReferencein interface- javax.naming.Referenceable
- Throws:
- javax.naming.NamingException
 
 
- 
 
-