Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.sbugs.logic
Class ConnectionPool  view ConnectionPool download ConnectionPool.java

java.lang.Object
  extended byorg.sbugs.logic.ConnectionPool

public class ConnectionPool
extends java.lang.Object

For now, we don't actually pool connections - we'll implement it later when we actually need the peformance boost.


Field Summary
protected static ConnectionPool instance
           
protected  java.util.ResourceBundle jdbcProps
           
private  javax.sql.DataSource source
           
 
Constructor Summary
protected ConnectionPool()
           
 
Method Summary
 java.sql.Connection getConnection()
           
private  javax.sql.DataSource getDataSource()
           
static ConnectionPool getInstance()
           
protected  void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static ConnectionPool instance

jdbcProps

protected java.util.ResourceBundle jdbcProps

source

private javax.sql.DataSource source
Constructor Detail

ConnectionPool

protected ConnectionPool()
Method Detail

getInstance

public static ConnectionPool getInstance()

init

protected void init()

getConnection

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

getDataSource

private javax.sql.DataSource getDataSource()
                                    throws java.sql.SQLException