public abstract class PostgresStorageLayer<S extends PostgresStorageSession>
extends org.hcjf.layers.storage.StorageLayer<S>
| Constructor and Description |
|---|
PostgresStorageLayer(String implName) |
| Modifier and Type | Method and Description |
|---|---|
S |
begin()
The first time this method creates a postgres pooling data source, then
only return a session with a postgres connection.
|
protected abstract String |
getDatabaseName()
Return the data base name.
|
protected abstract String |
getDataSourceName()
Return a name for a data source.
|
protected abstract Integer |
getInitialConnections()
Return the initial connection size for the pool.
|
protected abstract Integer |
getMaxConnections()
Return the max connection size for the pool.
|
protected abstract String |
getPassword()
Return the password.
|
protected abstract Integer |
getPortNumber()
Return the port number of the server.
|
protected abstract String |
getServerName()
Return the host of the data base engine.
|
protected abstract S |
getSessionInstance(String implName,
Connection connection) |
protected abstract String |
getUserName()
Return the user name.
|
checkAccess, getAliases, getCrudLayer, getImplName, getLayer, getProxy, getSession, getStorageLayer, getTarget, invoke, isOverwritable, isStatefulclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvokepublic PostgresStorageLayer(String implName)
public S begin()
protected abstract S getSessionInstance(String implName, Connection connection)
protected abstract String getDataSourceName()
protected abstract String getServerName()
protected abstract String getDatabaseName()
protected abstract String getUserName()
protected abstract String getPassword()
protected abstract Integer getInitialConnections()
protected abstract Integer getMaxConnections()
protected abstract Integer getPortNumber()
Copyright © 2017. All Rights Reserved.