Class jif.sql.JifConnector
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jif.sql.JifConnector

java.lang.Object
   |
   +----jif.sql.JifConnector

public class JifConnector
extends Object
The JifConnector class encapsulates some of the rudimentary JDBC initialization that is always performed. This is a specialized class as it only connects with mSQL data sources.
See Also:
jiflet

Variable Index

 o isConnected
 o myConnection
 o myDriver
 o myJiflet
 o myStatement

Constructor Index

 o JifConnector(Jiflet)
Creates a JifConnector object

Method Index

 o connect(String, String, String, int, String)
Establishes a session/connection with the database
 o connected()
 o disconnect()
Disconnects the currently connected session

Variables

 o myDriver
  protected iMsqlDriver myDriver
 o myJiflet
  protected Jiflet myJiflet
 o myConnection
  protected Connection myConnection
 o isConnected
  protected boolean isConnected
 o myStatement
  public Statement myStatement

Constructors

 o JifConnector
  public JifConnector(Jiflet jiflet)
Creates a JifConnector object
Parameters:
jiflet - The Jiflet that is using this connection

Methods

 o connect
  public boolean connect(String user,
                         String passwd,
                         String host,
                         int port,
                         String dbInst)
Establishes a session/connection with the database
Parameters:
user - The user who is connecting
passwd - The password of the user
host - The host name of where the database resides
port - The port on which the server is listening
dbInst - The database instance to connect to
 o disconnect
  public boolean disconnect()
Disconnects the currently connected session
 o connected
  public boolean connected()

All Packages  Class Hierarchy  This Package  Previous  Next  Index