|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpedviz.loader.MySQLDatabase
public class MySQLDatabase
This class allows the DatabaseGraphLoader to load data from a MySQL database.
| Constructor Summary | |
|---|---|
MySQLDatabase()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the db connection. |
boolean |
connect(java.lang.String user,
java.lang.String password,
java.lang.String host)
Connects to the db with the given username, password and host. |
java.sql.ResultSet |
executeQuerie(java.lang.String querie)
Executes the given Querie. |
java.sql.Connection |
getConnection()
Returns the connection. |
java.lang.String |
getInfo()
Returns some informations about the db. |
boolean |
isConnected()
Returns true, if the db is connected. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MySQLDatabase()
| Method Detail |
|---|
public boolean connect(java.lang.String user,
java.lang.String password,
java.lang.String host)
Database
connect in interface Databasepublic void close()
Database
close in interface Databasepublic boolean isConnected()
Database
isConnected in interface Databasepublic java.lang.String getInfo()
Database
getInfo in interface Databasepublic java.sql.ResultSet executeQuerie(java.lang.String querie)
Database
executeQuerie in interface Databasepublic java.sql.Connection getConnection()
Database
getConnection in interface Database
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||