The Database interface does not provide control over things that are part of the Domain, such as users.
I'm not sure what this will hold in a real system, for now it simply provides connection-creation for us. Perhaps when it boots, it creates the datadictionary object for the database, which all users will then interact with?
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected AccessFactory | |
| private AuthenticationService | |
| protected ClassFactory | |
| private Locale | |
| private DateFormat | |
| private DataDictionary | dd
DataDictionary for this database. |
| protected boolean | |
| protected LanguageConnectionFactory | |
| protected LanguageFactory | |
| private UUID | |
| protected PropertyFactory | |
| protected Object | |
| private DateFormat | |
| private DateFormat |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Serviceable | apply(String
Property key for the property being set key, Serializable proposed new value for the property being set or null if
the property is being dropped. value, Dictionary<K, V> Property set before the change. SettingProperty may read but
must never change p. p)Implements org. Apply a property change. |
| public void | backup(String
the directory name where the database backup should
go. This directory will be created if not it does not exist. backupDir, boolean if true, waits for all the backup blocking
operations in progress to finish. wait)Implements org. Backup the database to a backup directory. |
| public void | backupAndEnableLogArchiveMode(String
The directory name where the
database backup should go. This
directory will be created if it
does not exist. backupDir, boolean If true deletes online archived log
files that exist before this backup;
otherwise they will not be deleted.
Deletion will occur only after
backup is complete. deleteOnlineArchivedLogFiles, boolean if true, waits for all
the backup blocking operations in
progress to finish. wait)Implements org. Backup the database to a backup directory and enable the log archive mode that will keep the archived log files required for roll-forward from this version backup. |
| private void | |
| public void | boot(boolean
True if the database should be created create, Properties Configuration properties startParams)Implements org. Boot this module with the given properties. |
| protected AuthenticationService | |
| protected void | |
| protected void | |
| private static Object | bootServiceModule(final boolean create, final Object serviceModule, final String factoryInterface, final Properties properties)
Must be private so that user code can't call this entry point. |
| protected void | |
| protected void | |
| public boolean | canSupport(Properties startParams)
Implements org. See if this implementation can support any attributes that are listed in properties. |
| public void | checkpoint()
Implements org. Checkpoints the database, that is, flushes all dirty data to disk. |
| protected void | |
| public void | disableLogArchiveMode(boolean
If true deletes all online archived
log files that exist before this
call immediately; otherwise they
will not be deleted. deleteOnlineArchivedLogFiles)Implements org. Disables the log archival process, i.e No old log files will be kept around for a roll-forward recovery. |
| public void | failover(String
the replication database that is being failed over. dbname)Implements org. Start failover for the given database. |
| private static Object | findServiceModule(final Object serviceModule, final String factoryInterface)
Must be private so that user code can't call this entry point. |
| public void | freeze()
Implements org. Freeze the database temporarily so a backup can be taken. |
| protected Properties | getAllDatabaseProperties()
Get the set of database properties from the set stored on disk outside of service.properties. |
| public AuthenticationService | getAuthenticationService()
Implements org. This method returns the authentication service handle for the database. |
| protected String | |
| protected TransactionController | |
| private static ContextService | |
| public Locale | |
| public final DataDictionary | getDataDictionary()
Implements org. Return the DataDictionary for this database, set up at boot time. |
| public DateFormat | getDateFormat()
Implements org. Get a formatter for formatting dates. |
| public int | getEngineType()
Implements org. Return the engine type that this Database implementation supports. |
| public final UUID | getId()
Implements org.
Deprecated
Return the UUID of this database. |
| public StorageFile | getJarFile(String
The schema where the jar lives schemaName, String The unqualified name of the jar sqlName)Implements org. Get the StorageFile for an installed jar file. |
| public Locale | getLocale()
Implements org. Get the Locale for this database. |
| private StorageFile | |
| private static ModuleFactory | |
| public Object | getResourceAdapter()
Implements org. Get a Resource Adapter - only used by XA system. |
| private StorageFactory | |
| public DateFormat | getTimeFormat()
Implements org. Get a formatter for formatting times. |
| public DateFormat | getTimestampFormat()
Implements org. Get a formatter for formatting timestamps. |
| public void | init(boolean
true if only per-database properties are to be looked at dbOnly, Dictionary<K, V> the complete set of per-database properties. p)Implements org. Initialize the properties for this callback. |
| public boolean | |
| public boolean | isInSlaveMode()
Implements org. Used to indicated whether the database is in the replication slave mode. |
| public boolean | isReadOnly()
Implements org. Tells whether the Database is configured as read-only, or the Database was started in read-only mode. |
| private boolean | |
| protected UUID | |
| public Serializable | map(String
Property key for the property being set key, Serializable proposed new value for the property being set or null if
the property is being dropped. value, Dictionary<K, V> Property set before the change. SettingProperty may read but
must never change p. p)Implements org. Map a proposed new value for a property to an official value. |
| private static StandardException | |
| protected void | |
| public void | pushDbContext(ContextManager
The context manager cm)Implements org. Push a DbContext onto the provided context stack. |
| public void | setLocale(Locale
The locale to set locale)Implements org. Set the Locale that is returned by this LocaleFinder |
| public LanguageConnectionContext | setupConnection(ContextManager
The 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)Implements org. 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)Implements org. Start the replication master role for this database |
| public void | |
| public void | stopReplicationMaster()
Implements org. Stop the replication master role for this database. |
| public void | stopReplicationSlave()
Implements org. Only a SlaveDatabase can be in replication slave mode. |
| public void | unfreeze()
Implements org. Unfreeze the database after a backup has been taken. |
| public boolean | validate(String
Property key for the property being set key, Serializable proposed new value for the property being set or null if
the property is being dropped. value, Dictionary<K, V> Property set before the change. SettingProperty may read but
must never change p. p)Implements org. Validate a property change. |