net.toften.jlips.persist.db
Class DBJNDIConnection
java.lang.Object
net.toften.jlips.persist.db.DBAbstractConnection
net.toften.jlips.persist.db.DBWrappedConnection
net.toften.jlips.persist.db.DBJNDIConnection
- All Implemented Interfaces:
- DataSource, DBConnectionHandler
public class DBJNDIConnection
- extends DBWrappedConnection
- implements DBConnectionHandler
Connection handler for a JNDI connection
When using this connection handler, the URI of the JNDI database must be passed
in by the application.
This is done usign the database properties object passed in through the
{@link net.toften.jlips.persist.EntityFactory#init(Properties, Map) method
- Author:
- thomas
- See Also:
DBJNDIProperties
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBJNDIConnection
public DBJNDIConnection()
setConnectionProperties
public void setConnectionProperties(DBProperties connectionProperties)
throws DBBadPropertiesException
- Description copied from class:
DBAbstractConnection
- This method loads the driver for the database
- Specified by:
setConnectionProperties
in interface DBConnectionHandler
- Overrides:
setConnectionProperties
in class DBAbstractConnection
- Parameters:
connectionProperties
- The database connection properties
passed in bu the application
- Throws:
DBBadPropertiesException
- Should be thrown if the passed in
properties are not valid or does not contain all the necessary information- See Also:
DBConnectionHandler.setConnectionProperties(net.toften.jlips.persist.db.DBProperties)