pedviz.loader
Interface Database

All Known Implementing Classes:
HSQLDatabase, MultiDatabase, MySQLDatabase, PostgreSQLDatabase

public interface Database

Implementations of this interface represent a database. progress.

Author:
lukas forer

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.
 

Method Detail

connect

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.

Parameters:
user -
password -
host -
Returns:
true, if the connection is ok.

close

void close()
Closes the db connection.


isConnected

boolean isConnected()
Returns true, if the db is connected.

Returns:
true, if the db is connected.

getInfo

java.lang.String getInfo()
Returns some informations about the db.

Returns:
some informations about the db.

executeQuerie

java.sql.ResultSet executeQuerie(java.lang.String querie)
Executes the given Querie.

Parameters:
querie -
Returns:
result

getConnection

java.sql.Connection getConnection()
Returns the connection.

Returns:
connection