public class PGDataSource extends AbstractDataSource implements DataSource, Referenceable
Constructor and Description |
---|
PGDataSource()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected Reference |
createReference()
Create a reference using the correct ObjectFactory instance
|
Connection |
getConnection() |
Connection |
getConnection(String user,
String password) |
boolean |
isWrapperFor(Class<?> iface) |
<T> T |
unwrap(Class<T> iface) |
createConnection, getApplicationName, getClientEncoding, getDatabase, getDefaultFetchSize, getHost, getHousekeeper, getLoginTimeout, getLogWriter, getNetworkTimeout, getParentLogger, getParsedSqlCacheSize, getPassword, getPort, getPreparedStatementCacheSize, getReceiveBufferSize, getReference, getSendBufferSize, getSslCertificateFile, getSslKeyFile, getSslMode, getSslPassword, getSslRootCertificateFile, getStrictMode, getUser, init, setApplicationName, setClientEncoding, setDatabase, setDefaultFetchSize, setHost, setHousekeeper, setLoginTimeout, setLogWriter, setNetworkTimeout, setParsedSqlCacheSize, setPassword, setPort, setPreparedStatementCacheSize, setReceiveBufferSize, setSendBufferSize, setSslCertificateFile, setSslKeyFile, setSslMode, setSslPassword, setSslRootCertificateFile, setStrictMode, setUser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
getReference
public Connection getConnection() throws SQLException
getConnection
in interface DataSource
SQLException
public Connection getConnection(String user, String password) throws SQLException
getConnection
in interface DataSource
SQLException
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
SQLException
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
protected Reference createReference()
createReference
in class AbstractDataSource
Copyright © 2013–2017 impossibl.com. All rights reserved.