Uses of Class
com.mckoi.database.DatabaseConnection
Packages that use DatabaseConnection
Package
Description
The core database classes for Mckoi.
Implementation of the DatabaseInterface interface,
including classes to handle local (embedded) mode
and remote (client/server) mode.
-
Uses of DatabaseConnection in com.mckoi.database
Methods in com.mckoi.database that return DatabaseConnectionModifier and TypeMethodDescriptionDatabase.createNewConnection
(User user, DatabaseConnection.CallBack call_back) Returns a new DatabaseConnection instance that is used against this database.TableModificationEvent.getDatabaseConnection()
Returns the DatabaseConnection that this event fired in.Methods in com.mckoi.database with parameters of type DatabaseConnectionModifier and TypeMethodDescriptionfinal void
Database.execute
(User user, DatabaseConnection database, Runnable runner) Executes database functions from the 'run' method of the given runnable instance on the first available worker thread.void
DatabaseConnection.fireTrigger
(DatabaseConnection database, String trigger_name, TriggerEvent evt) Notifies when a trigger has fired for this user.void
TriggerListener.fireTrigger
(DatabaseConnection database, String trigger_name, TriggerEvent trigger_evt) Notifies that a trigger event fired.Database.getDBProcedure
(String procedure_name, DatabaseConnection connection) Resolves a procedure name into a DBProcedure object.DatabaseProcedure.getReadTables
(DatabaseConnection db) This returns a DataTable[] array that lists the DataTables that are read during this procedure.DatabaseProcedure.getWriteTables
(DatabaseConnection db) Returns a DataTable[] array that lists the DataTables that are written to during this procedure.void
JoiningSet.prepare
(DatabaseConnection connection) Resolves the schema of tables in this joining set.void
DataTableDef.resolveColumnsInArray
(DatabaseConnection connection, ArrayList list) Given a list of column names referencing entries in this table, this will resolve each one to its correct form.void
Database.setupSystemFunctions
(DatabaseConnection connection, String admin_user) Sets all the standard functions and procedures available to engine.Constructors in com.mckoi.database with parameters of type DatabaseConnectionModifierConstructorDescriptionDatabaseQueryContext
(DatabaseConnection database) Constructs the QueryContext.GTPrivMapDataSource
(DatabaseConnection connection) Constructor.GTSQLTypeInfoDataSource
(DatabaseConnection connection) Constructor. -
Uses of DatabaseConnection in com.mckoi.database.interpret
Fields in com.mckoi.database.interpret declared as DatabaseConnectionModifier and TypeFieldDescriptionprotected DatabaseConnection
Statement.database
The Database context.Methods in com.mckoi.database.interpret with parameters of type DatabaseConnectionModifier and TypeMethodDescriptionboolean
AlterTable.checkColumnNamesMatch
(DatabaseConnection db, String col1, String col2) Returns true if the column names match.SQLQueryExecutor.execute
(DatabaseConnection connection, SQLQuery query) Executes the given SQLQuery object on the given DatabaseConnection object.static QueryPlanNode
Planner.formQueryPlan
(DatabaseConnection db, TableSelectExpression expression, com.mckoi.database.interpret.TableExpressionFromSet from_set, ArrayList order_by) Forms a query plan (QueryPlanNode) from the given TableSelectExpression and TableExpressionFromSet.final void
Statement.init
(DatabaseConnection db, StatementTree stree, SQLQuery query) Sets up internal variables for this statement for derived classes to use.Constructors in com.mckoi.database.interpret with parameters of type DatabaseConnectionModifierConstructorDescriptionFromTableDirectSource
(DatabaseConnection connection, TableQueryDef table_query, String unique_name, TableName given_name, TableName root_name) Constructs the source.FromTableSubQuerySource
(DatabaseConnection connection, String unique_key, TableSelectExpression table_expression, com.mckoi.database.interpret.TableExpressionFromSet from_set, TableName aliased_table_name) Constructs the source. -
Uses of DatabaseConnection in com.mckoi.database.jdbcserver
Methods in com.mckoi.database.jdbcserver that return DatabaseConnectionModifier and TypeMethodDescriptionprotected final DatabaseConnection
AbstractJDBCDatabaseInterface.getDatabaseConnection()
Returns the DatabaseConnection objcet for this connection.Methods in com.mckoi.database.jdbcserver with parameters of type DatabaseConnectionModifier and TypeMethodDescriptionprotected final void
AbstractJDBCDatabaseInterface.init
(User user, DatabaseConnection connection) Initializes this database interface with a User and DatabaseConnection object.