public class PgDriverHelper
extends java.lang.Object
| Constructor and Description |
|---|
PgDriverHelper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDriverRegistered() |
void |
prepareDataSource(@NonNull javax.sql.DataSource dataSource,
@NonNull HostSpec hostSpec,
@NonNull java.util.Properties props) |
void |
prepareTargetDataSource(@NonNull javax.sql.CommonDataSource dataSource,
@NonNull java.util.Properties props)
Applies the AWS Wrapper TCP keep-alive and timeout properties to a PostgreSQL data source
(including
PGXADataSource, which is a BaseDataSource but not a
DataSource). |
void |
registerDriver() |
public void prepareDataSource(@NonNull javax.sql.DataSource dataSource,
@NonNull HostSpec hostSpec,
@NonNull java.util.Properties props)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void prepareTargetDataSource(@NonNull javax.sql.CommonDataSource dataSource,
@NonNull java.util.Properties props)
PGXADataSource, which is a BaseDataSource but not a
DataSource). Non-PostgreSQL data sources are left untouched.dataSource - the target data source to configure.props - the connection properties.public boolean isDriverRegistered()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void registerDriver()
throws java.sql.SQLException
java.sql.SQLException