net.toften.jlips.persist.db
Class DBAbstractConnection

java.lang.Object
  extended by net.toften.jlips.persist.db.DBAbstractConnection
Direct Known Subclasses:
DBPooledConnection, DBSimpleConnection, DBWrappedConnection

public abstract class DBAbstractConnection
extends Object

Provide an abstract base class for connection handlers The class will implement the DataSource interface

Version:
$Revision: 1.4 $
Author:
thomas

Field Summary
protected  DBProperties connectionProperties
          Holds the Properties provided by the connection factory
 
Constructor Summary
DBAbstractConnection()
           
 
Method Summary
 Connection getConnection(String username, String password)
          This is not supported by this handler
 DBProperties getConnectionProperties()
           
 int getLoginTimeout()
           
 PrintWriter getLogWriter()
           
 void releaseConnection(Connection theConnection)
           
 void setConnectionProperties(DBProperties connectionProperties)
          This method loads the driver for the database
 void setLoginTimeout(int seconds)
           
 void setLogWriter(PrintWriter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionProperties

protected DBProperties connectionProperties
Holds the Properties provided by the connection factory

See Also:
DBConnectionFactory.init(Map)
Constructor Detail

DBAbstractConnection

public DBAbstractConnection()
Method Detail

getConnection

public Connection getConnection(String username,
                                String password)
                         throws SQLException
This is not supported by this handler

Throws:
SQLException
See Also:
DataSource.getConnection(java.lang.String, java.lang.String)

getLogWriter

public PrintWriter getLogWriter()
                         throws SQLException
Throws:
SQLException
See Also:
DataSource.getLogWriter()

setLogWriter

public void setLogWriter(PrintWriter out)
                  throws SQLException
Throws:
SQLException
See Also:
DataSource.setLogWriter(java.io.PrintWriter)

setLoginTimeout

public void setLoginTimeout(int seconds)
                     throws SQLException
Throws:
SQLException
See Also:
DataSource.setLoginTimeout(int)

getLoginTimeout

public int getLoginTimeout()
                    throws SQLException
Throws:
SQLException
See Also:
DataSource.getLoginTimeout()

setConnectionProperties

public void setConnectionProperties(DBProperties connectionProperties)
                             throws DBBadPropertiesException
This method loads the driver for the database

Throws:
DBBadPropertiesException
See Also:
DBConnectionHandler.setConnectionProperties(DBProperties)

getConnectionProperties

public DBProperties getConnectionProperties()
See Also:
DBConnectionHandler.getConnectionProperties()

releaseConnection

public void releaseConnection(Connection theConnection)
See Also:
DBConnectionHandler.releaseConnection(Connection)