|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.postgresql.ds.common.BaseDataSource
org.postgresql.xa.PGXADataSource
public class PGXADataSource
XA-enabled DataSource implementation.
Constructor Summary | |
---|---|
PGXADataSource()
|
Method Summary | |
---|---|
protected javax.naming.Reference |
createReference()
Generates a reference using the appropriate object factory. |
java.lang.String |
getDescription()
Gets a description of this DataSource-ish thing. |
javax.sql.XAConnection |
getXAConnection()
Gets a connection to the PostgreSQL database. |
javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String password)
Gets a XA-enabled connection to the PostgreSQL database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.naming.Referenceable |
---|
getReference |
Methods inherited from interface javax.sql.CommonDataSource |
---|
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Constructor Detail |
---|
public PGXADataSource()
Method Detail |
---|
public javax.sql.XAConnection getXAConnection() throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
java.sql.SQLException
- Occurs when the database connection cannot be established.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
- Occurs when the database connection cannot be established.public java.lang.String getDescription()
BaseDataSource
getDescription
in class BaseDataSource
protected javax.naming.Reference createReference()
createReference
in class BaseDataSource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |