パッケージ org.postgresql.ds
クラス PGConnectionPoolDataSource
java.lang.Object
org.postgresql.ds.common.BaseDataSource
org.postgresql.ds.PGConnectionPoolDataSource
- すべての実装されたインタフェース:
Serializable
,Referenceable
,CommonDataSource
,ConnectionPoolDataSource
- 直系の既知のサブクラス:
ConnectionPool
,Jdbc3ConnectionPool
public class PGConnectionPoolDataSource
extends BaseDataSource
implements ConnectionPoolDataSource, Serializable
PostgreSQL implementation of ConnectionPoolDataSource. The app server or middleware vendor should
provide a DataSource implementation that takes advantage of this ConnectionPoolDataSource. If
not, you can use the PostgreSQL implementation known as PoolingDataSource, but that should only
be used if your server or middleware vendor does not provide their own. Why? The server may want
to reuse the same Connection across all EJBs requesting a Connection within the same Transaction,
or provide other similar advanced features.
In any case, in order to use this ConnectionPoolDataSource, you must set the property databaseName. The settings for serverName, portNumber, user, and password are optional. Note: these properties are declared in the superclass.
This implementation supports JDK 1.3 and higher.
- 関連項目:
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明Gets a description of this DataSource.Gets a connection which may be pooled by the app server or middleware implementation of DataSource.getPooledConnection
(String user, String password) Gets a connection which may be pooled by the app server or middleware implementation of DataSource.boolean
Gets whether connections supplied by this pool will have autoCommit turned on by default.void
setDefaultAutoCommit
(boolean defaultAutoCommit) Sets whether connections supplied by this pool will have autoCommit turned on by default.クラスから継承されたメソッド org.postgresql.ds.common.BaseDataSource
createReference, getAdaptiveFetch, getAdaptiveFetchMaximum, getAdaptiveFetchMinimum, getAllowEncodingChanges, getApplicationName, getAssumeMinServerVersion, getAuthenticationPluginClassName, getAutosave, getBinaryTransfer, getBinaryTransferDisable, getBinaryTransferEnable, getCancelSignalTimeout, getCleanupSavepoints, getCmStatusMode, getConnection, getConnection, getConnectTimeout, getCurrentSchema, getDatabaseMetadataCacheFields, getDatabaseMetadataCacheFieldsMiB, getDatabaseName, getDefaultRowFetchSize, getDisableColumnSanitiser, getEnableFdwAcs, getEscapeSyntaxCallMode, getGroupStartupParameters, getGssEncMode, getGssLib, getGssResponseTimeout, getHideUnprivilegedObjects, getHostRecheckSeconds, getJaasApplicationName, getJaasLogin, getKerberosServerName, getLoadBalanceHosts, getLocalSocketAddress, getLoggerFile, getLoggerLevel, getLoginTimeout, getLogServerErrorDetail, getLogUnclosedConnections, getLogWriter, getMaxResultBuffer, getOptions, getParentLogger, getPassword, getPortNumber, getPortNumbers, getPreferQueryMode, getPreparedStatementCacheQueries, getPreparedStatementCacheSizeMiB, getPrepareThreshold, getProperty, getProperty, getProtocolVersion, getQuoteReturningIdentifiers, getReadOnly, getReadOnlyMode, getReceiveBufferSize, getRecvBufferSize, getReference, getReplication, getReWriteBatchedInserts, getSendBufferSize, getServerName, getServerNames, getShardName, getSocketFactory, getSocketFactoryArg, getSocketTimeout, getSsl, getSslcert, getSslCert, getSslfactory, getSslfactoryarg, getSslFactoryArg, getSslhostnameverifier, getSslHostnameVerifier, getSslkey, getSslKey, getSslmode, getSslMode, getSslpassword, getSslPassword, getSslpasswordcallback, getSslPasswordCallback, getSslResponseTimeout, getSslrootcert, getSslRootCert, getSslServerCertCn, getSspiServiceClass, getStringType, getTargetServerType, getTcpKeepAlive, getTcpNoDelay, getUnknownLength, getUrl, getURL, getUser, getUseSpNego, getXmlFactoryFactory, initializeFrom, isAllowEncodingChanges, isCleanupSavePoints, isColumnSanitiserDisabled, isDisableColumnSanitiser, isLoadBalanceHosts, isLogUnclosedConnections, isReadOnly, isReWriteBatchedInserts, isSsl, isTcpKeepAlive, readBaseObject, setAdaptiveFetch, setAdaptiveFetchMaximum, setAdaptiveFetchMinimum, setAllowEncodingChanges, setApplicationName, setAssumeMinServerVersion, setAuthenticationPluginClassName, setAutosave, setBinaryTransfer, setBinaryTransferDisable, setBinaryTransferEnable, setCancelSignalTimeout, setCleanupSavepoints, setCleanupSavePoints, setCmStatusMode, setConnectTimeout, setCurrentSchema, setDatabaseMetadataCacheFields, setDatabaseMetadataCacheFieldsMiB, setDatabaseName, setDefaultRowFetchSize, setDisableColumnSanitiser, setEnableFdwAcs, setEscapeSyntaxCallMode, setFromReference, setGroupStartupParameters, setGssEncMode, setGssLib, setGssResponseTimeout, setHideUnprivilegedObjects, setHostRecheckSeconds, setJaasApplicationName, setJaasLogin, setKerberosServerName, setLoadBalanceHosts, setLocalSocketAddress, setLoggerFile, setLoggerLevel, setLoginTimeout, setLogServerErrorDetail, setLogUnclosedConnections, setLogWriter, setMaxResultBuffer, setOptions, setPassword, setPortNumber, setPortNumbers, setPreferQueryMode, setPreparedStatementCacheQueries, setPreparedStatementCacheSizeMiB, setPrepareThreshold, setProperty, setProperty, setProtocolVersion, setQuoteReturningIdentifiers, setReadOnly, setReadOnlyMode, setReceiveBufferSize, setRecvBufferSize, setReplication, setReWriteBatchedInserts, setSendBufferSize, setServerName, setServerNames, setShardName, setSocketFactory, setSocketFactoryArg, setSocketTimeout, setSsl, setSslcert, setSslCert, setSslfactory, setSslfactoryarg, setSslFactoryArg, setSslhostnameverifier, setSslHostnameVerifier, setSslkey, setSslKey, setSslmode, setSslMode, setSslpassword, setSslPassword, setSslpasswordcallback, setSslPasswordCallback, setSslResponseTimeout, setSslrootcert, setSslRootCert, setSslServerCertCn, setSspiServiceClass, setStringType, setTargetServerType, setTcpKeepAlive, setTcpNoDelay, setUnknownLength, setUrl, setURL, setUser, setUseSpNego, setXmlFactoryFactory, writeBaseObject
クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
インタフェースから継承されたメソッド javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLogger
インタフェースから継承されたメソッド javax.sql.ConnectionPoolDataSource
createPooledConnectionBuilder, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
-
コンストラクタの詳細
-
PGConnectionPoolDataSource
public PGConnectionPoolDataSource()
-
-
メソッドの詳細
-
getDescription
Gets a description of this DataSource.- 定義:
getDescription
クラス内BaseDataSource
- 戻り値:
- description of this DataSource-ish thing
-
getPooledConnection
Gets a connection which may be pooled by the app server or middleware implementation of DataSource.- 定義:
getPooledConnection
インタフェース内ConnectionPoolDataSource
- 例外:
SQLException
- Occurs when the physical database connection cannot be established.
-
getPooledConnection
Gets a connection which may be pooled by the app server or middleware implementation of DataSource.- 定義:
getPooledConnection
インタフェース内ConnectionPoolDataSource
- 例外:
SQLException
- Occurs when the physical database connection cannot be established.
-
isDefaultAutoCommit
public boolean isDefaultAutoCommit()Gets whether connections supplied by this pool will have autoCommit turned on by default. The default value istrue
, so that autoCommit will be turned on by default.- 戻り値:
- true if connections supplied by this pool will have autoCommit
-
setDefaultAutoCommit
public void setDefaultAutoCommit(boolean defaultAutoCommit) Sets whether connections supplied by this pool will have autoCommit turned on by default. The default value istrue
, so that autoCommit will be turned on by default.- パラメータ:
defaultAutoCommit
- whether connections supplied by this pool will have autoCommit
-