org.deegree.io
Class DBPool
java.lang.Object
  
java.util.TimerTask
      
org.deegree.framework.util.ObjectPool
          
org.deegree.io.DBPool
- All Implemented Interfaces: 
 - Runnable
 
public class DBPool
- extends ObjectPool
 
class to manage a pool of database connections.
- Since:
 
  - 2.0
 
- Version:
 
  - $Revision: 6259 $, 1.0. $Revision: 6259 $, $Date: 2007-03-20 10:15:15 +0100 (Di, 20 Mär 2007) $
 
- Author:
 
  - Andreas Poth, last edited by: $Author: bezema $
 
 
 
 
 
| Methods inherited from class org.deegree.framework.util.ObjectPool | 
clear, getInstance, getMaxInstances, getMaxLifeTime, getMaxUsageTime, getUpdateInterval, releaseObject, run, setMaxInstances, setMaxLifeTime, setMaxUsageTime, setUpdateInterval, toString | 
 
 
 
DBPool
public DBPool(String driver,
              String database,
              String user,
              String password)
- initialize pool for defined connection parameters
- Parameters:
 driver - database - user - password - 
 
DBPool
public DBPool(String driver,
              String database,
              Properties properties)
- initialize pool for defined connection parameters
- Parameters:
 driver - database - properties - 
 
acquireObject
public Object acquireObject()
                     throws DBPoolException
- get an object from the object pool
- Throws:
 DBPoolException
 
 
onObjectKill
public void onObjectKill(Object o)
- will be called when the object is removed from the pool
- Specified by:
 onObjectKill in class ObjectPool
 
- Parameters:
 o - 
 
 
				an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net