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
-
isConnected
-
-
myConnection
-
-
myDriver
-
-
myJiflet
-
-
myStatement
-
-
JifConnector(Jiflet)
- Creates a JifConnector object
-
connect(String, String, String, int, String)
- Establishes a session/connection with the database
-
connected()
-
-
disconnect()
- Disconnects the currently connected session
myDriver
protected iMsqlDriver myDriver
myJiflet
protected Jiflet myJiflet
myConnection
protected Connection myConnection
isConnected
protected boolean isConnected
myStatement
public Statement myStatement
JifConnector
public JifConnector(Jiflet jiflet)
- Creates a JifConnector object
- Parameters:
- jiflet - The Jiflet that is using this connection
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
disconnect
public boolean disconnect()
- Disconnects the currently connected session
connected
public boolean connected()
All Packages Class Hierarchy This Package Previous Next Index