public class PostgreSQLResource extends JDBCResource
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DESCRIPTION |
static java.lang.String |
NAME |
dataSourcelock, 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 javax.sql.DataSource |
createDataSource() |
java.lang.String |
getName()
Returns the name of the
Resource. |
java.lang.String |
getStatusInformation() |
protected java.lang.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() |
java.lang.String |
toString() |
beginUse, closeConnection, endUse, getJDBCConnection, isThisconnect, equals, get, getConnectionexecuteaddConsumer, 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, updateLastTimeUsedpublic static final java.lang.String NAME
public static final java.lang.String DESCRIPTION
public PostgreSQLResource(PostgreSQLResourceParameters parameters) throws InitializeException
InitializeExceptionpublic java.lang.String getName()
throws AccessResourceException
AbstractResourceResource.getName in interface ResourcegetName in class JDBCResourceAccessResourceException - if there is an error while accessing the resourcepublic java.lang.String toString()
toString in class java.lang.Objectprotected void connectToDB()
throws DataException
AbstractDBResourceNoBlockerAbstractDBResourceNoBlocker.get()connectToDB in class JDBCResourceDataExceptionprotected void registerJDBCDriver()
throws InitializeException
registerJDBCDriver in class JDBCResourceInitializeExceptionprotected javax.sql.DataSource createDataSource()
createDataSource in class JDBCResourcepublic boolean isConnected()
AbstractDBResourceNoBlockerisConnected in class JDBCResourcepublic java.lang.String getStatusInformation()
getStatusInformation in class JDBCResourceprotected java.lang.Object getTheConnection()
throws DataException
AbstractDBResourceNoBlockerAbstractDBResourceNoBlocker.connect()getTheConnection in class JDBCResourceDataException