|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pedviz.loader.PostgreSQLDatabase
public class PostgreSQLDatabase
This class allows the DatabaseGraphLoader to load data from a PostgreSQL database.
Constructor Summary | |
---|---|
PostgreSQLDatabase()
|
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 PostgreSQLDatabase()
Method Detail |
---|
public boolean connect(java.lang.String user, java.lang.String password, java.lang.String host)
Database
connect
in interface Database
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.sql.Connection getConnection()
Database
getConnection
in interface Database
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |