|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pedviz.loader.MultiDatabase
public class MultiDatabase
This class allows the DatabaseGraphLoader to load data from the database defined in the given property file.
Constructor Summary | |
---|---|
MultiDatabase(java.lang.String filename)
Creates a new Database object with the properties stored in the given file. |
|
MultiDatabase(java.lang.String user,
java.lang.String password,
java.lang.String host,
java.lang.String driver)
Creates a new Database object with the given username, password, host and driver. |
Method Summary | |
---|---|
void |
close()
Closes the db connection. |
boolean |
connect()
Connects to the db with the given |
boolean |
connect(java.lang.String user,
java.lang.String passord,
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.util.Vector<java.lang.String> |
getColumns(java.lang.String table)
Returns a collection of all columns defined in the given table. |
java.sql.Connection |
getConnection()
Returns the connection. |
java.lang.String |
getInfo()
Returns some informations about the db. |
java.lang.String |
getLabel()
Returns the description od the database. |
java.util.Vector<java.lang.String> |
getTables()
Returns a collection of all tables in this database. |
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 MultiDatabase(java.lang.String user, java.lang.String password, java.lang.String host, java.lang.String driver)
user
- username.password
- passsword.host
- hostname.driver
- drivername.public MultiDatabase(java.lang.String filename)
filename
- filename of the property file.Method Detail |
---|
public boolean connect(java.lang.String user, java.lang.String passord, java.lang.String host)
Database
connect
in interface Database
public boolean connect()
public void close()
Database
close
in interface Database
public boolean isConnected()
Database
isConnected
in interface Database
public java.lang.String getInfo()
Database
getInfo
in interface Database
public java.sql.ResultSet executeQuerie(java.lang.String querie)
Database
executeQuerie
in interface Database
public java.util.Vector<java.lang.String> getTables()
public java.util.Vector<java.lang.String> getColumns(java.lang.String table)
table
- tablename.
public java.sql.Connection getConnection()
Database
getConnection
in interface Database
public java.lang.String getLabel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |