org.gcube.data.spd.obisplugin.pool
Class JDBCConnectionPool
java.lang.Object
org.gcube.data.spd.obisplugin.pool.ObjectPool<Connection>
org.gcube.data.spd.obisplugin.pool.JDBCConnectionPool
public class JDBCConnectionPool
- extends ObjectPool<Connection>
- Author:
- "Federico De Faveri defaveri@isti.cnr.it"
Adapted from http://sourcemaking.com/design_patterns/object_pool/java
url
protected String url
username
protected String username
password
protected String password
JDBCConnectionPool
public JDBCConnectionPool(String driver,
String dsn,
String usr,
String pwd)
create
protected Connection create()
- Specified by:
create in class ObjectPool<Connection>
expire
protected void expire(Connection o)
- Specified by:
expire in class ObjectPool<Connection>
validate
protected boolean validate(Connection o)
- Specified by:
validate in class ObjectPool<Connection>
Copyright © 2013. All Rights Reserved.