Fido Alpha 3.2

fido.util
Class FidoDataSource

java.lang.Object
  |
  +--fido.util.FidoDataSource

public class FidoDataSource
extends java.lang.Object

Singleton class that is used by the fido.db package to obtain a database connection.


Method Summary
static java.sql.Connection getConnection()
          Returns a database connection created from the datasource java:/FidoDS in the JNDI tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConnection

public static java.sql.Connection getConnection()
                                         throws java.sql.SQLException
Returns a database connection created from the datasource java:/FidoDS in the JNDI tree. The administrator of the EJB container must setup a datasource called FidoDS.

Throws:
java.sql.SQLException - Thrown if the name FidoDS was not found in the EJB containers JNDI tree.

Fido Alpha 3.2