Class PostgreSqlDbConnectionBuilder.StrolchPostgreDataSource
java.lang.Object
li.strolch.persistence.postgresql.PostgreSqlDbConnectionBuilder.StrolchPostgreDataSource
- All Implemented Interfaces:
Wrapper,CommonDataSource,DataSource
- Enclosing class:
- PostgreSqlDbConnectionBuilder
public class PostgreSqlDbConnectionBuilder.StrolchPostgreDataSource
extends Object
implements DataSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(String username, String password) intbooleanisWrapperFor(Class<?> iface) voidsetLoginTimeout(int seconds) voidsetLogWriter(PrintWriter out) voidshutdown()toString()<T> Tvoidvalidate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
StrolchPostgreDataSource
public StrolchPostgreDataSource(com.zaxxer.hikari.HikariDataSource ds) - Parameters:
ds-
-
-
Method Details
-
getLogWriter
- Specified by:
getLogWriterin interfaceCommonDataSource- Specified by:
getLogWriterin interfaceDataSource- Returns:
- Throws:
SQLException- See Also:
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Parameters:
iface-- Returns:
- Throws:
SQLException- See Also:
-
setLogWriter
- Specified by:
setLogWriterin interfaceCommonDataSource- Specified by:
setLogWriterin interfaceDataSource- Parameters:
out-- Throws:
SQLException- See Also:
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Parameters:
iface-- Returns:
- Throws:
SQLException- See Also:
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Returns:
- Throws:
SQLException- See Also:
-
setLoginTimeout
- Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceDataSource- Parameters:
seconds-- Throws:
SQLException- See Also:
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Parameters:
username-password-- Returns:
- Throws:
SQLException- See Also:
-
getLoginTimeout
- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceDataSource- Returns:
- Throws:
SQLException- See Also:
-
getParentLogger
- Specified by:
getParentLoggerin interfaceCommonDataSource- Returns:
- Throws:
SQLFeatureNotSupportedException- See Also:
-
toString
-
shutdown
public void shutdown()- See Also:
-
com.zaxxer.hikari.HikariDataSource#shutdown()
-
validate
public void validate()- See Also:
-
HikariConfig.validate()
-