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, getHost, getHousekeeper, getLoginTimeout, getLogWriter, getNetworkTimeout, getParentLogger, getParsedSqlCacheSize, getPassword, getPort, getPreparedStatementCacheSize, getReference, getStrictMode, getUser, init, setApplicationName, setClientEncoding, setDatabase, setHost, setHousekeeper, setLoginTimeout, setLogWriter, setNetworkTimeout, setParsedSqlCacheSize, setPassword, setPort, setPreparedStatementCacheSize, 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-2015 impossibl.com. All Rights Reserved.