Uses of Interface
com.mckoi.database.control.DBConfig
-
Packages that use DBConfig Package Description com.mckoi.database The core database classes for Mckoi.com.mckoi.database.control com.mckoi.database.jdbc The JDBC interface to Mckoi.com.mckoi.database.jdbcserver Implementation of the DatabaseInterface interface, including classes to handle local (embedded) mode and remote (client/server) mode.com.mckoi.runtime The main (starting) class for a Mckoi database server. -
-
Uses of DBConfig in com.mckoi.database
Fields in com.mckoi.database declared as DBConfig Modifier and Type Field Description private DBConfig
TransactionSystem. config
The ResourceBundle that contains properties of the entire database system.Methods in com.mckoi.database with parameters of type DBConfig Modifier and Type Method Description void
DatabaseSystem. init(DBConfig config)
Inits the DatabaseSystem with the configuration properties of the system.void
TransactionSystem. init(DBConfig config)
Inits the TransactionSystem with the configuration properties of the system.private void
TransactionSystem. setupLog(DBConfig config)
Sets up the log file from the config information. -
Uses of DBConfig in com.mckoi.database.control
Classes in com.mckoi.database.control that implement DBConfig Modifier and Type Class Description class
AbstractDBConfig
An abstract implementation of DBConfig.class
DefaultDBConfig
Implements a default database configuration that is useful for setting up a database.Fields in com.mckoi.database.control declared as DBConfig Modifier and Type Field Description private DBConfig
DBSystem. config
The DBConfig object that describes the startup configuration of the database.Methods in com.mckoi.database.control that return DBConfig Modifier and Type Method Description DBConfig
DBSystem. getConfig()
Returns an immutable version of the database system configuration.DBConfig
AbstractDBConfig. immutableCopy()
DBConfig
DBConfig. immutableCopy()
Makes an immutable copy of this configuration.Methods in com.mckoi.database.control with parameters of type DBConfig Modifier and Type Method Description private static Database
DBController. createDatabase(DBConfig config)
Creates a Database object for the given DBConfig configuration.DBSystem
DBController. createDatabase(DBConfig config, java.lang.String admin_user, java.lang.String admin_pass)
Creates a database in the local JVM (and filesystem) given the configuration in DBConfig and returns a DBSystem object.boolean
DBController. databaseExists(DBConfig config)
Returns true if a Mckoi database exists in the given directory of the file system, otherwise returns false if the path doesn't contain a database.DBSystem
DBController. startDatabase(DBConfig config)
Starts a database in the local JVM given the configuration in DBConfig and returns a DBSystem object.Constructors in com.mckoi.database.control with parameters of type DBConfig Constructor Description DBSystem(DBController controller, DBConfig config, Database database)
Package-protected constructor. -
Uses of DBConfig in com.mckoi.database.jdbc
Methods in com.mckoi.database.jdbc with parameters of type DBConfig Modifier and Type Method Description DatabaseInterface
LocalBootable. boot(DBConfig config)
Boots the database with the given configuration.boolean
LocalBootable. checkExists(DBConfig config)
Attempts to test if the database exists or not.DatabaseInterface
LocalBootable. create(java.lang.String username, java.lang.String password, DBConfig config)
Attempts to create a new database system with the given name, and the given username/password as the admin user for the system. -
Uses of DBConfig in com.mckoi.database.jdbcserver
Methods in com.mckoi.database.jdbcserver with parameters of type DBConfig Modifier and Type Method Description DatabaseInterface
DefaultLocalBootable. boot(DBConfig config)
Boots the local database with the given configuration.boolean
DefaultLocalBootable. checkExists(DBConfig config)
Attempts to test if the database exists or not.DatabaseInterface
DefaultLocalBootable. create(java.lang.String username, java.lang.String password, DBConfig config)
Creates and boots a local database with the given configuration. -
Uses of DBConfig in com.mckoi.runtime
Methods in com.mckoi.runtime with parameters of type DBConfig Modifier and Type Method Description private static void
McKoiDBMain. doBoot(DBConfig conf)
Performs the boot command.private static void
McKoiDBMain. doCreate(java.lang.String database_name, java.lang.String username, java.lang.String password, DBConfig config)
Performs the create command.
-