|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.problets.lib.comm.database.CommunicateDatabase
public class CommunicateDatabase
Lower class used to connect to database
| Constructor Summary | |
|---|---|
CommunicateDatabase(java.lang.String host,
java.lang.String database,
java.lang.String username,
java.lang.String password)
constructor that connects to a database specified by the parameters |
|
| Method Summary | |
|---|---|
boolean |
connect(java.lang.String host,
java.lang.String database,
java.lang.String username,
java.lang.String password)
Connect to the database based on the specified parameters |
void |
disconnect()
Disconnect from the database |
boolean |
isConnected()
Check if the client is still connected to the database |
static void |
main(java.lang.String[] args)
|
int |
update(java.lang.String statementString)
executes the statement string to update the database and returns the number of records were updated |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommunicateDatabase(java.lang.String host,
java.lang.String database,
java.lang.String username,
java.lang.String password)
host - the host of the connection. current
is acharya.phobos.ramapo.edudatabase - the database to be usedusername - the username to be usedpassword - the password for the user to be used for
the connection| Method Detail |
|---|
public boolean isConnected()
public boolean connect(java.lang.String host,
java.lang.String database,
java.lang.String username,
java.lang.String password)
host - the host to be useddatabase - the database to be usedusername - the username to be used for logging to the databasepassword - the password corresponding to the specified username
public void disconnect()
public int update(java.lang.String statementString)
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||