Class DatabaseDriver
java.lang.Object
com.storedobject.database.postgres.DatabaseDriver
- All Implemented Interfaces:
DatabaseDriver
-
Constructor Details
-
DatabaseDriver
public DatabaseDriver()
-
-
Method Details
-
getDatabase
Description copied from interface:DatabaseDriverGets an instance of the Database for this driver.- Specified by:
getDatabasein interfaceDatabaseDriver- Returns:
- The database.
-
getConnector
public SQLConnector getConnector(String ip, int port, String database, String databaseMaster, String user, String password) Description copied from interface:DatabaseDriverGets a SQL connector for this driver.- Specified by:
getConnectorin interfaceDatabaseDriver- Parameters:
ip- The IP address or domain name of the machine where the underlying database is running.port- The TCP port number of the database listener.database- The name of the database. (Maybe null if no such concept exists).databaseMaster- The name of the master database. (Maybe null if no such concept exists or is the same as database).user- The username.password- The password of the user.- Returns:
- The new SQL connector.
-