Package | Description |
---|---|
com.mckoi.database |
The core database classes for Mckoi.
|
com.mckoi.database.interpret | |
com.mckoi.database.jdbcserver |
Implementation of the DatabaseInterface interface,
including classes to handle local (embedded) mode
and remote (client/server) mode.
|
Modifier and Type | Method and Description |
---|---|
DatabaseConnection |
Database.createNewConnection(User user,
DatabaseConnection.CallBack call_back)
Returns a new DatabaseConnection instance that is used against this
database.
|
DatabaseConnection |
TableModificationEvent.getDatabaseConnection()
Returns the DatabaseConnection that this event fired in.
|
Modifier and Type | Method and Description |
---|---|
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 |
TriggerListener.fireTrigger(DatabaseConnection database,
String trigger_name,
TriggerEvent trigger_evt)
Notifies that a trigger event fired.
|
void |
DatabaseConnection.fireTrigger(DatabaseConnection database,
String trigger_name,
TriggerEvent evt)
Notifies when a trigger has fired for this user.
|
DatabaseProcedure |
Database.getDBProcedure(String procedure_name,
DatabaseConnection connection)
Resolves a procedure name into a DBProcedure object.
|
DataTable[] |
DatabaseProcedure.getReadTables(DatabaseConnection db)
This returns a DataTable[] array that lists the DataTables that are read
during this procedure.
|
DataTable[] |
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.
|
Constructor and Description |
---|
DatabaseQueryContext(DatabaseConnection database)
Constructs the QueryContext.
|
GTPrivMapDataSource(DatabaseConnection connection)
Constructor.
|
GTSQLTypeInfoDataSource(DatabaseConnection connection)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
protected DatabaseConnection |
Statement.database
The Database context.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AlterTable.checkColumnNamesMatch(DatabaseConnection db,
String col1,
String col2)
Returns true if the column names match.
|
Table |
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.
|
void |
Statement.init(DatabaseConnection db,
StatementTree stree,
SQLQuery query)
Sets up internal variables for this statement for derived classes to use.
|
Constructor and Description |
---|
FromTableDirectSource(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.
|
Modifier and Type | Method and Description |
---|---|
protected DatabaseConnection |
AbstractJDBCDatabaseInterface.getDatabaseConnection()
Returns the DatabaseConnection objcet for this connection.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractJDBCDatabaseInterface.init(User user,
DatabaseConnection connection)
Initializes this database interface with a User and DatabaseConnection
object.
|
Copyright © 2015. All rights reserved.