bsys.database.DBManager Class Reference

Collaboration diagram for bsys.database.DBManager:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static Driver loadDriver (final String thisFilePath, final String thisDriverClass) throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException
static Driver loadDelegateDriver (final String thisFilePath, final String thisDriverClass) throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException
static void registerDriver (final String thisFilePath, final String thisDriverClass) throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException, SQLException
static void attemptConnect (final String thisUrl, final String thisUsername, final String thisPassword) throws SQLException
static void main (final String[] args) throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException, SQLException

Detailed Description

SQL Manager

Author:
Bernard Bou

Member Function Documentation

static void bsys.database.DBManager.attemptConnect ( final String  thisUrl,
final String  thisUsername,
final String  thisPassword 
) throws SQLException [static]

Attempt to connect

Parameters:
thisUrl connection url
thisUsername username
thisPassword password
Exceptions:
SQLException 
static Driver bsys.database.DBManager.loadDelegateDriver ( final String  thisFilePath,
final String  thisDriverClass 
) throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException [static]

Load delegate driver

Parameters:
thisFilePath path jar file containig driver
thisDriverClass driver class name
Returns:
driver class
Exceptions:
MalformedURLException 
ClassNotFoundException 
InstantiationException 
IllegalAccessException 
static Driver bsys.database.DBManager.loadDriver ( final String  thisFilePath,
final String  thisDriverClass 
) throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException [static]

Load driver

Parameters:
thisFilePath path jar file containig driver
thisDriverClass driver class name
Returns:
driver class
Exceptions:
MalformedURLException 
ClassNotFoundException 
InstantiationException 
IllegalAccessException 
static void bsys.database.DBManager.main ( final String[]  args  )  throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException, SQLException [static]

Main

Parameters:
args command-line arguments
Exceptions:
MalformedURLException 
ClassNotFoundException 
InstantiationException 
IllegalAccessException 
SQLException 
static void bsys.database.DBManager.registerDriver ( final String  thisFilePath,
final String  thisDriverClass 
) throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException, SQLException [static]

Register driver

Parameters:
thisFilePath path to driver jar
thisDriverClass driver class
Exceptions:
MalformedURLException 
ClassNotFoundException 
InstantiationException 
IllegalAccessException 
SQLException 

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations
Generated on Tue May 25 16:43:50 2010 for WordNetScope by  doxygen 1.6.3