com.astroshare.astroonline.database
Class Pool

java.lang.Object
  extended by com.astroshare.astroonline.database.Pool

public class Pool
extends java.lang.Object

Implementation of the Astro-Online database connection Pool.

By default Astro-Online uses class Pool for connection pooling. This behaviour can be influenced by modifying the node AstroOnlineConfiguration.server.database in the configuration file. The default value for this node is DATABASE, leading to the usage of class Pool for connection pooling. Changing the node value to JNDI leads to the usage of connection pooling through JNDI.

See Also:
Database

Constructor Summary
Pool()
           
 
Method Summary
static java.sql.Connection getConnection()
           Get a connection from the pool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pool

public Pool()
Method Detail

getConnection

public static java.sql.Connection getConnection()
                                         throws java.sql.SQLException

Get a connection from the pool.

Returns:
A connection from the pool
Throws:
java.sql.SQLException - Exception trown if an SQL error occurs


Astro-Online © 2001 − 2008 Astro Share
Documentation generated on: Thursday August 12th 2008 (PS)