public class PostgreSQLResource extends JDBCResource
Modifier and Type | Field and Description |
---|---|
static String |
DESCRIPTION |
static String |
NAME |
dataSource
lock, multiResourcelock
Constructor and Description |
---|
PostgreSQLResource(PostgreSQLResourceParameters parameters) |
Modifier and Type | Method and Description |
---|---|
protected void |
connectToDB()
final implementation method to Establish connection to data base
Called from AbstractDBResourceNoBlocker.get() |
protected DataSource |
createDataSource() |
String |
getName()
Returns the name of the
Resource . |
String |
getStatusInformation() |
protected Object |
getTheConnection()
final implementation method to get a connection to data base
Called from AbstractDBResourceNoBlocker.connect() This method is called with the connection establish |
boolean |
isConnected()
inform if connection to the data base is established
|
protected void |
registerJDBCDriver() |
String |
toString() |
beginUse, closeConnection, endUse, getJDBCConnection, isThis
connect, equals, get, getConnection
execute
addConsumer, addObserver, addObservers, closeRequest, deleteObserver, deleteObservers, executeBegins, executeEnds, getConsumerAt, getConsumersCount, getData, getLastTimeOpen, getLastTimeUsed, getParameters, inUse, isOpen, notifyChanges, notifyClose, notifyDispose, notifyObserver, notifyOpen, openCount, performExecution, prepare, prepare, removeConsumer, setData, updateLastTimeOpen, updateLastTimeUsed
public static final String NAME
public static final String DESCRIPTION
public PostgreSQLResource(PostgreSQLResourceParameters parameters) throws InitializeException
InitializeException
public String getName() throws AccessResourceException
AbstractResource
Resource
.getName
in interface Resource
getName
in class JDBCResource
AccessResourceException
- if there is an error while accessing the resourceprotected void connectToDB() throws DataException
AbstractDBResourceNoBlocker
AbstractDBResourceNoBlocker.get()
connectToDB
in class JDBCResource
DataException
protected void registerJDBCDriver() throws InitializeException
registerJDBCDriver
in class JDBCResource
InitializeException
protected DataSource createDataSource()
createDataSource
in class JDBCResource
public boolean isConnected()
AbstractDBResourceNoBlocker
isConnected
in class JDBCResource
public String getStatusInformation()
getStatusInformation
in class JDBCResource
protected Object getTheConnection() throws DataException
AbstractDBResourceNoBlocker
AbstractDBResourceNoBlocker.connect()
getTheConnection
in class JDBCResource
DataException