At the present moment, this file defines methods which will at some point be moved to to the external database interface. There are a bunch of the unimplemninted interface that used to be in this file. They have been moved to old_Database.java. old_Database.java is checked into the codeline but is not built, it is there for reference
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public AuthenticationService | Returns: The authentication service handle for the databaseThis method returns the authentication service handle for the database. |
| public DataDictionary | Returns: the DataDictionary for this database, set up at boot time.Return the DataDictionary for this database, set up at boot time. |
| public int | |
| public Object | Returns: the resource Adapter for the database, null if no resource adapter is available for this database. Returned as an Object so that non-XA aggressive JVMs such as Chai don't get ClassNotFound. caller must cast result to ResourceAdapter.Get a Resource Adapter - only used by XA system. |
| public boolean | |
| public boolean | Returns: true if this database is in replication slave mode, false otherwise.Used to indicated whether the database is in the replication slave mode. |
| public void | pushDbContext(ContextManager
The context manager cm)Push a DbContext onto the provided context stack. |
| public void | |
| public LanguageConnectionContext | Returns: A new LanguageConnectionContextThe context manager cm, String The UserID of the user getting the connection user, String The drda id of the connection (from network server) drdaID, String The database name dbname)Sets up a connection to the Database, owned by the given user. |
| public void | startReplicationMaster(String
The master database that is being replicated. dbmaster, String The hostname for the slave host, int The port the slave is listening on port, String The type of replication contract.
Currently only asynchronous replication is supported, but
1-safe/2-safe/very-safe modes may be added later. replicationMode)Start the replication master role for this database |
| public void | |
| public void |
| failover | back to summary |
|---|---|
| public void failover(String dbname) throws StandardException Start failover for the given database.
| |
| getAuthenticationService | back to summary |
|---|---|
| public AuthenticationService getAuthenticationService() throws StandardException This method returns the authentication service handle for the database. Note There is always a Authentication Service per database and at the system level.
| |
| getDataDictionary | back to summary |
|---|---|
| public DataDictionary getDataDictionary() Return the DataDictionary for this database, set up at boot time.
| |
| getEngineType | back to summary |
|---|---|
public int getEngineType()
| |
| getResourceAdapter | back to summary |
|---|---|
| public Object getResourceAdapter() Get a Resource Adapter - only used by XA system. There is one and only one resource adapter per Derby database.
| |
| isActive | back to summary |
|---|---|
| public boolean isActive() Is the database active (open).
| |
| isInSlaveMode | back to summary |
|---|---|
| public boolean isInSlaveMode() Used to indicated whether the database is in the replication slave mode.
| |
| pushDbContext | back to summary |
|---|---|
| public void pushDbContext(ContextManager cm) Push a DbContext onto the provided context stack. This conext will shut down the database in case of a DatabaseException being cleaned up.
| |
| setLocale | back to summary |
|---|---|
| public void setLocale(Locale locale) Set the Locale that is returned by this LocaleFinder
| |
| setupConnection | back to summary |
|---|---|
| public LanguageConnectionContext setupConnection(ContextManager cm, String user, String drdaID, String dbname) throws StandardException Sets up a connection to the Database, owned by the given user. The JDBC version of getConnection takes a URL. The purpose of the URL is to tell the driver where the database system is. By the time we get here, we have found the database system (that's how we're making this method call), so the URL is not necessary to establish the connection here. The driver should remember the URL that was used to establish the connection, so it can implement the DatabaseMetaData.getURL() method.
| |
| startReplicationMaster | back to summary |
|---|---|
| public void startReplicationMaster(String dbmaster, String host, int port, String replicationMode) throws SQLException Start the replication master role for this database
| |
| stopReplicationMaster | back to summary |
|---|---|
| public void stopReplicationMaster() throws SQLException Stop the replication master role for the given database.
| |
| stopReplicationSlave | back to summary |
|---|---|
| public void stopReplicationSlave() throws SQLException Stop the replication slave role for the given database.
| |