|
MDi JLib 1.7.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionPoolInterface
Interface class used by the ConnectionPool implementation class.
Revision History:
May 16, 2005 20:27:01 Open nows throws SQLException and setDB
Jan 18, 2005 12:40:22 Created.
DesEncrypter,
ConnectionPool| Method Summary | |
|---|---|
void |
close()
Closes the current pooled connection. |
String |
generatePassword(String database,
String name,
String password)
Generates a new encrypted password and returns the result. |
Connection |
getConnection()
Returns the active java.sql.Connection object. |
String |
getDb()
Returns the currently established database name |
String |
getDbAlias()
Returns the currently established database alias |
String |
getDriver()
Returns the driver currently in effect from the dbnames file. |
String |
getJNDIDbFromAlias(String alias)
Returns the associated JNDI database name for the given alias name |
String |
getPassword()
Returns the encrypted password for the current user |
String |
getSid()
Returns the optional established sid for Oracle databases. |
String |
getUrl()
Returns the URL to the database connection from the dbnames file. |
String |
getUsername()
Returns the current username for the ConnectionPool |
boolean |
isOpen()
Determines if the connection is open or not. |
void |
open()
Opens the connection to the database using the established properties. |
void |
open(String database)
Open the connection to database |
void |
open(String database,
String name,
String pw)
Open the connection to database using name and password given |
boolean |
setDb(String dbAlias)
Sets the name of the database to use for subsequent connections. |
boolean |
setDbAlias(String dbAlias)
Sets the name of the database to use for subsequent connections. |
void |
setDbNamesFile(String value)
Set the name and path of the database name lookup file. |
void |
setPassword(String pw)
Sets the password for the ConnectionPool and subsequent connections. |
void |
setSid(String s)
Sets the Oracle Sid variable but has no effect on the connection. |
void |
setUsername(String name)
Sets the username for the ConnectionPool and subsequent connections. |
| Method Detail |
|---|
void open(String database)
throws SQLException,
NamingException
database - the alias name of the database from the database properties file
SQLException
NamingException
void open(String database,
String name,
String pw)
throws SQLException,
NamingException
database - the alias name of the database from the database properties filename - username to connect aspw - password for the given name
SQLException
NamingException
void open()
throws SQLException,
NamingException
SQLException - thrown if an error occurs while connecting to the database
NamingException - thrown if an error occurs while attempting to read the parameters for the database(String, String, String),
(String),
open(String)void setDbNamesFile(String value)
value - the relative path the file (must be readable by server process)String getUsername()
String getPassword()
void setSid(String s)
s - SID to set for this connectionvoid setUsername(String name)
name - database usernamevoid setPassword(String pw)
pw - clear text password for the current user
boolean setDb(String dbAlias)
throws NamingException
dbAlias - database alias name from the dbnames properties file.
NamingException
boolean setDbAlias(String dbAlias)
throws NamingException
dbAlias - database alias name from the dbnames properties file.
NamingExceptionString getDb()
String getDriver()
String getUrl()
String getSid()
String getDbAlias()
boolean isOpen()
void close()
Connection getConnection()
String getJNDIDbFromAlias(String alias)
alias - alias name of the database to lookup
String generatePassword(String database,
String name,
String password)
name - name of the user account to be stored or setpassword - associated to the user that will be encrypteddatabase - to associate with this passwordgeneratePassword(String,String,String)
|
MDi JLib 1.7.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||