public interface PostgreSqlDataSourceFactory extends DataSourceFactory, ConnectionPoolDataSourceFactory
DataSourceFactory.| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_DATABASE_NAME
Property for the database. |
static String |
PROPERTY_PASSWORD
Property for the password. |
static String |
PROPERTY_PORT
Property for the port. |
static String |
PROPERTY_SERVER_NAME
Property for the server name. |
static String |
PROPERTY_USER
Property for the user name. |
| Modifier and Type | Method and Description |
|---|---|
static <S extends org.postgresql.ds.common.BaseDataSource> |
configureDataSource(S dataSource,
net.officefloor.frame.api.source.SourceContext context)
Configures the
BaseDataSource. |
default ConnectionPoolDataSource |
createConnectionPoolDataSource(net.officefloor.frame.api.source.SourceContext context) |
default DataSource |
createDataSource(net.officefloor.frame.api.source.SourceContext context) |
static void |
loadSpecification(net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource.SpecificationContext context)
Loads the specification.
|
static final String PROPERTY_SERVER_NAME
Property for the server name.static final String PROPERTY_PORT
Property for the port.static final String PROPERTY_DATABASE_NAME
Property for the database.static final String PROPERTY_USER
Property for the user name.static final String PROPERTY_PASSWORD
Property for the password.static void loadSpecification(net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource.SpecificationContext context)
context - AbstractAsyncManagedObjectSource.SpecificationContext.static <S extends org.postgresql.ds.common.BaseDataSource> S configureDataSource(S dataSource,
net.officefloor.frame.api.source.SourceContext context)
throws Exception
BaseDataSource.dataSource - BaseDataSource.context - SourceContext.Exception - If fails to configure the BaseDataSource.default DataSource createDataSource(net.officefloor.frame.api.source.SourceContext context) throws Exception
createDataSource in interface DataSourceFactoryExceptiondefault ConnectionPoolDataSource createConnectionPoolDataSource(net.officefloor.frame.api.source.SourceContext context) throws Exception
createConnectionPoolDataSource in interface ConnectionPoolDataSourceFactoryExceptionCopyright © 2005–2020 OfficeFloor. All rights reserved.