|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.firebirdsql.ds.RootCommonDataSource
org.firebirdsql.ds.FBAbstractCommonDataSource
org.firebirdsql.ds.FBXADataSource
public class FBXADataSource
Bare-bones implementation of XADataSource
.
Use this class instead of the broken implementation of
FBConnectionPoolDataSource
.
Field Summary |
---|
Fields inherited from class org.firebirdsql.ds.FBAbstractCommonDataSource |
---|
lock, REF_DATABASE_NAME, REF_DESCRIPTION, REF_PORT_NUMBER, REF_PROPERTIES, REF_SERVER_NAME |
Constructor Summary | |
---|---|
FBXADataSource()
|
Method Summary | |
---|---|
protected void |
checkNotStarted()
Method to check if this DataSource has not yet started. |
javax.naming.Reference |
getReference()
|
javax.sql.XAConnection |
getXAConnection()
|
javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String password)
|
Methods inherited from class org.firebirdsql.ds.RootCommonDataSource |
---|
getLogWriter, getParentLogger, setLogWriter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.sql.CommonDataSource |
---|
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Constructor Detail |
---|
public FBXADataSource()
Method Detail |
---|
public javax.sql.XAConnection getXAConnection() throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
java.sql.SQLException
public javax.sql.XAConnection getXAConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
java.sql.SQLException
protected void checkNotStarted() throws java.lang.IllegalStateException
FBAbstractCommonDataSource
Implementations should throw IllegalStateException when the DataSource is already in use and modifying properties is not allowed.
checkNotStarted
in class FBAbstractCommonDataSource
java.lang.IllegalStateException
- When the DataSource is already in usepublic javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |