public class PGXADataSource extends BaseDataSource implements XADataSource, Referenceable
Constructor and Description |
---|
PGXADataSource() |
Modifier and Type | Method and Description |
---|---|
protected Reference |
createReference()
Generates a reference using the appropriate object factory.
|
String |
getDescription()
Gets a description of this DataSource-ish thing.
|
Logger |
getParentLogger()
Return the parent Logger of all the Loggers used by this data source.
|
XAConnection |
getXAConnection()
Gets a connection to the PostgreSQL database.
|
XAConnection |
getXAConnection(String user,
String password)
Gets a XA-enabled connection to the PostgreSQL database.
|
getAllowEncodingChanges, getApplicationName, getAssumeMinServerVersion, getAutosave, getBinaryTransfer, getBinaryTransferDisable, getBinaryTransferEnable, getCancelSignalTimeout, getCharset, getCompatible, getConnection, getConnection, getConnectTimeout, getCurrentSchema, getDatabaseMetadataCacheFields, getDatabaseMetadataCacheFieldsMiB, getDatabaseName, getDefaultRowFetchSize, getDisableColumnSanitiser, getGssLib, getHostRecheckSeconds, getJaasApplicationName, getKerberosServerName, getLoadBalanceHosts, getLoginTimeout, getLoglevel, getLogLevel, getLogUnclosedConnections, getLogWriter, getPassword, getPortNumber, getPreferQueryMode, getPreparedStatementCacheQueries, getPreparedStatementCacheSizeMiB, getPrepareThreshold, getProperty, getProperty, getProtocolVersion, getReadOnly, getReceiveBufferSize, getReference, getReWriteBatchedInserts, getSendBufferSize, getServerName, getSocketFactory, getSocketFactoryArg, getSocketTimeout, getSsl, getSslCert, getSslfactory, getSslFactoryArg, getSslHostnameVerifier, getSslKey, getSslMode, getSslPassword, getSslPasswordCallback, getSslRootCert, getSspiServiceClass, getStringType, getTargetServerType, getTcpKeepAlive, getUnknownLength, getUrl, getUser, getUseSpNego, initializeFrom, isColumnSanitiserDisabled, readBaseObject, setAllowEncodingChanges, setApplicationName, setAssumeMinServerVersion, setAutosave, setBinaryTransfer, setBinaryTransferDisable, setBinaryTransferEnable, setCancelSignalTimeout, setCharset, setCompatible, setConnectTimeout, setCurrentSchema, setDatabaseMetadataCacheFields, setDatabaseMetadataCacheFieldsMiB, setDatabaseName, setDefaultRowFetchSize, setDisableColumnSanitiser, setFromReference, setGssLib, setHostRecheckSeconds, setJaasApplicationName, setKerberosServerName, setLoadBalanceHosts, setLoginTimeout, setLoglevel, setLogLevel, setLogUnclosedConnections, setLogWriter, setPassword, setPortNumber, setPreferQueryMode, setPreparedStatementCacheQueries, setPreparedStatementCacheSizeMiB, setPrepareThreshold, setProperty, setProperty, setProtocolVersion, setReadOnly, setReceiveBufferSize, setReWriteBatchedInserts, setSendBufferSize, setServerName, setSocketFactory, setSocketFactoryArg, setSocketTimeout, setSsl, setSslCert, setSslfactory, setSslFactoryArg, setSslHostnameVerifier, setSslKey, setSslMode, setSslPassword, setSslPasswordCallback, setSslRootCert, setSspiServiceClass, setStringType, setTargetServerType, setTcpKeepAlive, setUnknownLength, setUrl, setUser, setUseSpNego, writeBaseObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
getReference
public XAConnection getXAConnection() throws SQLException
getXAConnection
in interface XADataSource
SQLException
- Occurs when the database connection cannot be established.public XAConnection getXAConnection(String user, String password) throws SQLException
getXAConnection
in interface XADataSource
user
- the database user on whose behalf the connection is being madepassword
- the user's passwordSQLException
- Occurs when the database connection cannot be established.public String getDescription()
BaseDataSource
getDescription
in class BaseDataSource
protected Reference createReference()
createReference
in class BaseDataSource
public Logger getParentLogger() throws SQLFeatureNotSupportedException
javax.sql.CommonDataSource
getParentLogger
in interface CommonDataSource
SQLFeatureNotSupportedException
- if the data source does not use java.util.logging.
Copyright © 2016 PostgreSQL Global Development Group. All rights reserved.