net.toften.jlips.persist.db
Class DBJNDIConnection

java.lang.Object
  extended by net.toften.jlips.persist.db.DBAbstractConnection
      extended by net.toften.jlips.persist.db.DBWrappedConnection
          extended by 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

Field Summary
 
Fields inherited from class net.toften.jlips.persist.db.DBWrappedConnection
wrappedDS
 
Fields inherited from class net.toften.jlips.persist.db.DBAbstractConnection
connectionProperties
 
Constructor Summary
DBJNDIConnection()
           
 
Method Summary
 void setConnectionProperties(DBProperties connectionProperties)
          This method loads the driver for the database
 
Methods inherited from class net.toften.jlips.persist.db.DBWrappedConnection
getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 
Methods inherited from class net.toften.jlips.persist.db.DBAbstractConnection
getConnectionProperties, releaseConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.toften.jlips.persist.db.DBConnectionHandler
getConnectionProperties, releaseConnection
 
Methods inherited from interface javax.sql.DataSource
getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 

Constructor Detail

DBJNDIConnection

public DBJNDIConnection()
Method Detail

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)