Package com.impossibl.postgres.jdbc
Class PGConnectionPoolDataSource
- java.lang.Object
-
- com.impossibl.postgres.jdbc.AbstractDataSource
-
- com.impossibl.postgres.jdbc.AbstractGeneratedDataSource
-
- com.impossibl.postgres.jdbc.PGConnectionPoolDataSource
-
- All Implemented Interfaces:
javax.naming.Referenceable
,javax.sql.CommonDataSource
,javax.sql.ConnectionPoolDataSource
public class PGConnectionPoolDataSource extends com.impossibl.postgres.jdbc.AbstractGeneratedDataSource implements javax.sql.ConnectionPoolDataSource, javax.naming.Referenceable
ConnectionPoolDataSource implementation
-
-
Field Summary
-
Fields inherited from class com.impossibl.postgres.jdbc.AbstractDataSource
settings
-
-
Constructor Summary
Constructors Constructor Description PGConnectionPoolDataSource()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.naming.Reference
createReference()
Create a reference using the correct ObjectFactory instancejava.lang.String
getDescription()
javax.sql.PooledConnection
getPooledConnection()
javax.sql.PooledConnection
getPooledConnection(java.lang.String user, java.lang.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, 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, 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, init, setClientEncoding, setHost, setLoginTimeout, setLogWriter, setPort
-
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
-
-
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in classAbstractDataSource
-
getPooledConnection
public javax.sql.PooledConnection getPooledConnection() throws java.sql.SQLException
- Specified by:
getPooledConnection
in interfacejavax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
-
getPooledConnection
public javax.sql.PooledConnection getPooledConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
- Specified by:
getPooledConnection
in interfacejavax.sql.ConnectionPoolDataSource
- Throws:
java.sql.SQLException
-
createReference
protected javax.naming.Reference createReference()
Create a reference using the correct ObjectFactory instance- Specified by:
createReference
in classAbstractDataSource
- Returns:
- The reference
-
-