deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.io.sdeapi
Class SDEConnectionPool

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

public class SDEConnectionPool
extends java.lang.Object

class to manage a pool of sde connections.

Version:
2.0
Author:
Christoph Pollmann

Method Summary
 SDEConnection acquireConnection(java.lang.String server, int instance, java.lang.String database, java.lang.String version, java.lang.String user, java.lang.String password)
          get an object from the object pool
static SDEConnectionPool getInstance()
          realize singelton pattern using double checked locking pattern.
 void releaseConnection(SDEConnection con, java.lang.String server, int instance, java.lang.String database, java.lang.String version, java.lang.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(java.lang.String server,
                                       int instance,
                                       java.lang.String database,
                                       java.lang.String version,
                                       java.lang.String user,
                                       java.lang.String password)
                                throws java.lang.Exception
get an object from the object pool

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

releaseConnection

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

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

deegree 2.5 (2011/06/29 09:44 build-8-official)

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