com.infoengine.jdbc
Class JdbcContext

java.lang.Object
  extended bycom.infoengine.jdbc.JdbcContext

public class JdbcContext
extends Object

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

env

private Hashtable env

conn

private Connection conn
Constructor Detail

JdbcContext

public JdbcContext()
Create an uninitialized instance


JdbcContext

public JdbcContext(Hashtable env)
Create an instance and initialize with the provided parameter

Parameters:
env - Specifies the context unique identifier
Method Detail

close

public void close()
Close the database connection associated with this context


setEnv

public void setEnv(Hashtable h)
Set the unique identifier for this instance

Parameters:
h - Specifies the context unique identifier

getEnv

public Hashtable getEnv()
Get the context unique identifier

Returns:
Context unique identifier

setConnection

public void setConnection(Connection c)
Set the connection object associated with this context

Parameters:
c - An instance of a java.sql.Connection

getConnection

public Connection getConnection()
Get the connection object associated with this context