net.sf.extjwnl.dictionary.database
Class ConnectionManager

java.lang.Object
  extended by net.sf.extjwnl.dictionary.database.ConnectionManager

public class ConnectionManager
extends Object

Connection manager for database-backed dictionaries.

Author:
John Didion

Constructor Summary
ConnectionManager(String jndi)
           
ConnectionManager(String driverClass, String url, String userName, String password)
           
 
Method Summary
 Connection getConnection()
           
 Query getQuery(String sql)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionManager

public ConnectionManager(String driverClass,
                         String url,
                         String userName,
                         String password)

ConnectionManager

public ConnectionManager(String jndi)
Method Detail

getQuery

public Query getQuery(String sql)
               throws SQLException,
                      JWNLException
Throws:
SQLException
JWNLException

getConnection

public Connection getConnection()
                         throws SQLException,
                                JWNLException
Throws:
SQLException
JWNLException


Copyright © 2011. All Rights Reserved.