Package com.impossibl.postgres.jdbc.xa
Class PGXADataSource
- java.lang.Object
-
- com.impossibl.postgres.jdbc.AbstractDataSource
-
- com.impossibl.postgres.jdbc.AbstractGeneratedDataSource
-
- com.impossibl.postgres.jdbc.xa.PGXADataSource
-
- All Implemented Interfaces:
Referenceable,CommonDataSource,XADataSource
public class PGXADataSource extends com.impossibl.postgres.jdbc.AbstractGeneratedDataSource implements XADataSource, Referenceable
XADataSource implementation
-
-
Field Summary
-
Fields inherited from class com.impossibl.postgres.jdbc.AbstractDataSource
settings
-
-
Constructor Summary
Constructors Constructor Description PGXADataSource()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ReferencecreateReference()Create a reference using the correct ObjectFactory instanceStringgetDescription()XAConnectiongetXAConnection()XAConnectiongetXAConnection(String user, String password)-
Methods inherited from class com.impossibl.postgres.jdbc.AbstractGeneratedDataSource
getApiTrace, getApiTraceFile, getApplicationName, getDatabaseName, getDatabaseUrl, getDataSourceName, getDescriptionCacheSize, getFetchSize, getFieldFormat, getFieldLengthMax, getHousekeeper, getLoginTimeout, getMoneyFractionalDigits, getNetworkTimeout, getParamFormat, getParsedSqlCacheSize, getPassword, getPortNumber, getPreparedStatementCacheSize, getPreparedStatementCacheThreshold, getProtocolBufferPooling, getProtocolEncoding, getProtocolIoMode, getProtocolIoThreads, getProtocolMessageSizeMax, getProtocolSocketRecvBufferSize, getProtocolSocketSendBufferSize, getProtocolTrace, getProtocolTraceFile, getProtocolVersion, getReadOnly, getRegistrySharing, getServerAddresses, getServerLocalName, getServerName, getSqlTrace, getSqlTraceFile, getSslCaCertificateFile, getSslCertificateFile, getSslHomeDir, getSslKeyFile, getSslKeyPassword, getSslKeyPasswordCallback, getSslMode, getStrictMode, getUser, setApiTrace, setApiTraceFile, setApplicationName, setDatabaseName, setDatabaseUrl, setDataSourceName, setDescriptionCacheSize, setFetchSize, setFieldFormat, setFieldLengthMax, setHousekeeper, setLoginTimeout, setMoneyFractionalDigits, setNetworkTimeout, setParamFormat, setParsedSqlCacheSize, setPassword, setPortNumber, setPreparedStatementCacheSize, setPreparedStatementCacheThreshold, setProtocolBufferPooling, setProtocolEncoding, setProtocolIoMode, setProtocolIoThreads, setProtocolMessageSizeMax, setProtocolSocketRecvBufferSize, setProtocolSocketSendBufferSize, setProtocolTrace, setProtocolTraceFile, setProtocolVersion, setReadOnly, setRegistrySharing, setServerAddresses, setServerLocalName, setServerName, setSqlTrace, setSqlTraceFile, setSslCaCertificateFile, setSslCertificateFile, setSslHomeDir, setSslKeyFile, setSslKeyPassword, setSslKeyPasswordCallback, setSslMode, setStrictMode, setUser
-
Methods inherited from class com.impossibl.postgres.jdbc.AbstractDataSource
createConnection, getClientEncoding, getHost, getLogWriter, getParentLogger, getPort, getReference, getUrl, init, setClientEncoding, setHost, setLoginTimeout, setLogWriter, setPort, setUrl
-
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
createShardingKeyBuilder, getParentLogger
-
Methods inherited from interface javax.naming.Referenceable
getReference
-
Methods inherited from interface javax.sql.XADataSource
createXAConnectionBuilder, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin classAbstractDataSource
-
getXAConnection
public XAConnection getXAConnection() throws SQLException
- Specified by:
getXAConnectionin interfaceXADataSource- Throws:
SQLException
-
getXAConnection
public XAConnection getXAConnection(String user, String password) throws SQLException
- Specified by:
getXAConnectionin interfaceXADataSource- Throws:
SQLException
-
createReference
protected Reference createReference()
Create a reference using the correct ObjectFactory instance- Specified by:
createReferencein classAbstractDataSource- Returns:
- The reference
-
-