|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.jdbc.JdbcContext
Class used to store the properties of a JDBC connection.
Field Summary | |
private Connection |
conn
|
private Hashtable |
env
|
Constructor Summary | |
JdbcContext()
Create an uninitialized instance |
|
JdbcContext(Hashtable env)
Create an instance and initialize with the provided parameter |
Method Summary | |
void |
close()
Close the database connection associated with this context |
Connection |
getConnection()
Get the connection object associated with this context |
Hashtable |
getEnv()
Get the context unique identifier |
void |
setConnection(Connection c)
Set the connection object associated with this context |
void |
setEnv(Hashtable h)
Set the unique identifier for this instance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Hashtable env
private Connection conn
Constructor Detail |
public JdbcContext()
public JdbcContext(Hashtable env)
env
- Specifies the context unique identifierMethod Detail |
public void close()
public void setEnv(Hashtable h)
h
- Specifies the context unique identifierpublic Hashtable getEnv()
public void setConnection(Connection c)
c
- An instance of a java.sql.Connectionpublic Connection getConnection()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |