public abstract class PostgresStorageLayer<S extends PostgresStorageSession>
extends org.hcjf.layers.storage.StorageLayer<S>
| Constructor | Description |
|---|---|
PostgresStorageLayer(java.lang.String implName) |
| Modifier and Type | Method | 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 java.lang.String |
getDatabaseName() |
Return the data base name.
|
protected abstract java.lang.String |
getDataSourceName() |
Return a name for a data source.
|
protected java.lang.Long |
getIdleTimeout() |
|
protected java.lang.Integer |
getInitialConnections() |
Return the initial connection size for the pool.
|
protected java.lang.Integer |
getMaxConnections() |
Return the max connection size for the pool.
|
protected java.lang.Long |
getMaxLifeTime() |
|
protected abstract java.lang.String |
getPassword() |
Return the password.
|
protected abstract java.lang.Integer |
getPortNumber() |
Return the port number of the server.
|
protected abstract java.lang.String |
getServerName() |
Return the host of the data base engine.
|
protected abstract S |
getSessionInstance(java.lang.String implName,
java.sql.Connection connection) |
|
protected abstract java.lang.String |
getUserName() |
Return the user name.
|
public S begin()
protected abstract S getSessionInstance(java.lang.String implName, java.sql.Connection connection)
protected abstract java.lang.String getDataSourceName()
protected abstract java.lang.String getServerName()
protected abstract java.lang.String getDatabaseName()
protected abstract java.lang.String getUserName()
protected abstract java.lang.String getPassword()
protected java.lang.Integer getInitialConnections()
protected java.lang.Integer getMaxConnections()
protected abstract java.lang.Integer getPortNumber()
protected java.lang.Long getIdleTimeout()
protected java.lang.Long getMaxLifeTime()
Copyright © 2017. All rights reserved.