|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DBConnectionHandler
This interface must be implemented by the class handling the connection
to the database.
The responsibility of the connction handler is to create and release connections
to the database. The interface extends the DataSource
interface
and must thus implement it's methods aswell.
jLips provides a number of connection handlers aswell as an
abstract
connection handler
and a DataSource wrapper
connection handler for the use of the application.
Normally the application would use the DBSimpleConnection
connection handler.
DataSource
Method Summary | |
---|---|
DBProperties |
getConnectionProperties()
This method must return a reference to the properties passed in by the application. |
void |
releaseConnection(Connection theConnection)
When jLips is done with a connection it will call this method to allow the connection handler to properly dispose of the connection |
void |
setConnectionProperties(DBProperties connectionProperties)
Method used to pass in the database connection properties provided by the application The connection handler will need these properties to connect to the database |
Methods inherited from interface javax.sql.DataSource |
---|
getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Method Detail |
---|
void setConnectionProperties(DBProperties connectionProperties) throws DBBadPropertiesException
connectionProperties
- The database connection properties
passed in bu the application
DBBadPropertiesException
- Should be thrown if the passed in
properties are not valid or does not contain all the necessary informationvoid releaseConnection(Connection theConnection)
theConnection
- The connection to be disposedDBProperties getConnectionProperties()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |