Package com.storedobject.core
Interface DatabaseDriver
- All Known Implementing Classes:
DatabaseDriver
public interface DatabaseDriver
The database driver interface. In order to write a database driver that works with the stored objects system,
one of the tasks is to create a class that implements all the methods of this interface. The class should be
packaged in a package like "com.storedobject.database.DDD" where DDD is the name of the database driver.
For example, the Sybase Adaptive Server Enterprise driver package is "com.storedobject.database.ase" and the
Oracle driver package is "com.storedobject.database.oracle".
- See Also:
-
Method Details
-
getDatabase
-
getConnector
SQLConnector getConnector(String ip, int port, String database, String databaseMaster, String user, String password) Gets a SQL connector for this driver.- 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.
-