deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.io.sdeapi
Class SDEConnectionPool

java.lang.Object
  extended by org.deegree.io.sdeapi.SDEConnectionPool

public class SDEConnectionPool
extends Object

class to manage a pool of sde connections.

Version:
2.0
Author:
Christoph Pollmann

Method Summary
 SDEConnection acquireConnection(String server, int instance, String database, String version, String user, String password)
          get an object from the object pool
static SDEConnectionPool getInstance()
          realize singelton pattern using double checked locking pattern.
 void releaseConnection(SDEConnection con, String server, int instance, String database, String version, String user)
          releases a connection back to the pool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SDEConnectionPool getInstance()
realize singelton pattern using double checked locking pattern.

Returns:
an instance of the data base pool. it is gauranteed that there exists only one instance of pool for each submitted class name.

acquireConnection

public SDEConnection acquireConnection(String server,
                                       int instance,
                                       String database,
                                       String version,
                                       String user,
                                       String password)
                                throws Exception
get an object from the object pool

Parameters:
server -
instance -
database -
version -
user -
password -
Returns:
the connection
Throws:
Exception

releaseConnection

public void releaseConnection(SDEConnection con,
                              String server,
                              int instance,
                              String database,
                              String version,
                              String user)
                       throws DBPoolException
releases a connection back to the pool

Parameters:
con -
server -
instance -
database -
version -
user -
Throws:
DBPoolException

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org