Uses of Class
com.mckoi.database.DatabaseConnection
-
Packages that use DatabaseConnection 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. -
-
Uses of DatabaseConnection in com.mckoi.database
Fields in com.mckoi.database declared as DatabaseConnection Modifier and Type Field Description private DatabaseConnection
ConnectionTriggerManager. connection
The DatabaseConnection.private DatabaseConnection
DataTable. connection
The DatabaseConnection object that is the parent of this DataTable.private DatabaseConnection
GrantManager. connection
The DatabaseConnection instance.private DatabaseConnection
ProcedureManager. connection
The DatabaseConnection.private DatabaseConnection
TableModificationEvent. connection
The DatabaseConnection of the table that the modification occurred in.private DatabaseConnection
ViewManager. connection
The DatabaseConnection.private DatabaseConnection
DatabaseQueryContext. database
The DatabaseConnection.private DatabaseConnection
GTConnectionInfoDataSource. database
The DatabaseConnection object that this is table is modelling the information within.private DatabaseConnection
GTCurrentConnectionsDataSource. database
The DatabaseConnection object that this is table is modelling the information within.private DatabaseConnection
GTSQLTypeInfoDataSource. database
The DatabaseConnection object.private DatabaseConnection
InternalJDBCHelper.InternalDatabaseInterface. database
The internal connection to the database.private DatabaseConnection
TriggerManager.TriggerAction. database
(package private) DatabaseConnection
WorkerPool.RunCommand. database
Methods in com.mckoi.database that return DatabaseConnection Modifier and Type Method 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.Methods in com.mckoi.database with parameters of type DatabaseConnection Modifier and Type Method Description (package private) void
TriggerManager. addTriggerListener(DatabaseConnection database, java.lang.String trigger_name, int event_id, java.lang.String trigger_source, TriggerListener listener)
Adds a listener for an event with the given 'id' for this user session.(package private) void
TriggerManager. clearAllDatabaseConnectionTriggers(DatabaseConnection database)
Clears all the user triggers that have been defined.private void
Database. clearAllGrants(DatabaseConnection connection)
Clears all the grant information in the sUSRGrant table.private void
Database. convertAllUserTables(DatabaseConnection connection, java.io.PrintStream out)
Processes each table in user space and converts the format to the newest version of the data file format.private void
Database. convertPreGrant(DatabaseConnection connection, java.lang.String grantee)
Goes through all tables in the database not in the SYS_INFO schema and adds an entry in the grant table for it.private void
Database. convertPreSchema(DatabaseConnection connection)
Converts tables from a database that are pre database schema.(package private) static java.sql.Connection
InternalJDBCHelper. createJDBCConnection(User user, DatabaseConnection connection)
Returns a java.sql.Connection object that is bound to the given DatabaseConnection object.(package private) void
Database. createSchemaInfoTables(DatabaseConnection connection)
Creates the schema information tables introducted in version 0.90.private void
Database. createSystemTables(DatabaseConnection connection)
Creates all the priv/password system tables.private void
Database. createSystemViews(DatabaseConnection connection)
Creates all the system views.void
Database. execute(User user, DatabaseConnection database, java.lang.Runnable runner)
Executes database functions from the 'run' method of the given runnable instance on the first available worker thread.(package private) void
DatabaseSystem. execute(User user, DatabaseConnection database, java.lang.Runnable runner)
Executes database functions from the 'run' method of the given runnable instance on the first available worker thread.(package private) void
WorkerPool. execute(User user, DatabaseConnection database, java.lang.Runnable runner)
Executes database functions from the 'run' method of the given runnable instance on a worker thread.(package private) void
WorkerThread. execute(User user, DatabaseConnection database_connection, java.lang.Runnable runner)
Tells the worker thread that the user is executing the given command.void
DatabaseConnection. fireTrigger(DatabaseConnection database, java.lang.String trigger_name, TriggerEvent evt)
Notifies when a trigger has fired for this user.void
TriggerListener. fireTrigger(DatabaseConnection database, java.lang.String trigger_name, TriggerEvent trigger_evt)
Notifies that a trigger event fired.DatabaseProcedure
Database. getDBProcedure(java.lang.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.private void
Database. moveLargeObjectsToBlobStore(DatabaseConnection connection, java.io.PrintStream out)
Scans all the user tables for large objects and if a large object is found, it is moved into the BlobStore.void
JoiningSet. prepare(DatabaseConnection connection)
Resolves the schema of tables in this joining set.(package private) void
TriggerManager. removeTriggerListener(DatabaseConnection database, java.lang.String trigger_name)
Removes a trigger for the given user session.void
DataTableDef. resolveColumnsInArray(DatabaseConnection connection, java.util.ArrayList list)
Given a list of column names referencing entries in this table, this will resolve each one to its correct form.private void
Database. setSystemGrants(DatabaseConnection connection, java.lang.String grantee)
Set up the system table grants.void
Database. setupSystemFunctions(DatabaseConnection connection, java.lang.String admin_user)
Sets all the standard functions and procedures available to engine.Constructors in com.mckoi.database with parameters of type DatabaseConnection Constructor Description ConnectionTriggerManager(DatabaseConnection connection)
Constructs the manager.DatabaseQueryContext(DatabaseConnection database)
Constructs the QueryContext.DataTable(DatabaseConnection connection, MutableTableDataSource data_source)
Cosntructs the data table.GrantManager(DatabaseConnection connection)
Constructs the GrantManager.GTConnectionInfoDataSource(DatabaseConnection connection)
Constructor.GTCurrentConnectionsDataSource(DatabaseConnection connection)
Constructor.GTPrivMapDataSource(DatabaseConnection connection)
Constructor.GTSQLTypeInfoDataSource(DatabaseConnection connection)
Constructor.GTStatisticsDataSource(DatabaseConnection connection)
Constructor.InternalConnection(DatabaseConnection db, InternalJDBCHelper.InternalDatabaseInterface jdbc_interface, int cache_size, int max_size)
Constructs the internal java.sql.Connection.InternalDatabaseInterface(User user, DatabaseConnection db)
Constructor.ProcedureManager(DatabaseConnection connection)
Constructs the ProcedureManager for a DatabaseConnection.RunCommand(User user, DatabaseConnection database, java.lang.Runnable runnable)
TableModificationEvent(DatabaseConnection connection, TableName table_name, int row_index, boolean before)
Constructs a delete event.TableModificationEvent(DatabaseConnection connection, TableName table_name, int row_index, RowData row_data, boolean before)
Constructs an update event.TableModificationEvent(DatabaseConnection connection, TableName table_name, int row_index, RowData row_data, int type, boolean before)
General Constructor.TableModificationEvent(DatabaseConnection connection, TableName table_name, RowData row_data, boolean before)
Constructs an insert event.TriggerAction(DatabaseConnection database, java.lang.String name, int type, java.lang.String trigger_source, TriggerListener listener)
Constructor.ViewManager(DatabaseConnection connection)
Constructs the ViewManager for a DatabaseConnection. -
Uses of DatabaseConnection in com.mckoi.database.interpret
Fields in com.mckoi.database.interpret declared as DatabaseConnection Modifier and Type Field Description protected DatabaseConnection
Statement. database
The Database context.Methods in com.mckoi.database.interpret with parameters of type DatabaseConnection Modifier and Type Method Description (package private) static void
CreateTable. addSchemaConstraint(DatabaseConnection manager, TableName table, ConstraintDef constraint)
Adds a schema constraint to the rules for the schema represented by the manager.boolean
AlterTable. checkColumnNamesMatch(DatabaseConnection db, java.lang.String col1, java.lang.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, TableExpressionFromSet from_set, java.util.ArrayList order_by)
Forms a query plan (QueryPlanNode) from the given TableSelectExpression and TableExpressionFromSet.(package private) static TableExpressionFromSet
Planner. generateFromSet(TableSelectExpression select_expression, DatabaseConnection db)
Given a TableExpression, generates a TableExpressionFromSet object.void
Statement. init(DatabaseConnection db, StatementTree stree, SQLQuery query)
Sets up internal variables for this statement for derived classes to use.private static void
Planner. prepareSearchExpression(DatabaseConnection db, TableExpressionFromSet from_set, SearchExpression expression)
Prepares the given SearchExpression object.(package private) TableName
Statement. resolveTableName(java.lang.String name, DatabaseConnection db)
Resolves a TableName string (eg.(package private) static ColumnChecker
ColumnChecker. standardColumnChecker(DatabaseConnection database, TableName tname)
Given a DatabaseConnection and a TableName object, this returns an implementation of ColumnChecker that is able to check that the column name exists in the table, and that the reference is not ambigious.Constructors in com.mckoi.database.interpret with parameters of type DatabaseConnection Constructor Description FromTableDirectSource(DatabaseConnection connection, TableQueryDef table_query, java.lang.String unique_name, TableName given_name, TableName root_name)
Constructs the source.FromTableSubQuerySource(DatabaseConnection connection, java.lang.String unique_key, TableSelectExpression table_expression, TableExpressionFromSet from_set, TableName aliased_table_name)
Constructs the source.TableExpressionFromSet(DatabaseConnection connection)
Constructs the object. -
Uses of DatabaseConnection in com.mckoi.database.jdbcserver
Fields in com.mckoi.database.jdbcserver declared as DatabaseConnection Modifier and Type Field Description private DatabaseConnection
AbstractJDBCDatabaseInterface. database_connection
The database connection transaction.Methods in com.mckoi.database.jdbcserver that return DatabaseConnection Modifier and Type Method Description protected DatabaseConnection
AbstractJDBCDatabaseInterface. getDatabaseConnection()
Returns the DatabaseConnection objcet for this connection.Methods in com.mckoi.database.jdbcserver with parameters of type DatabaseConnection Modifier and Type Method Description protected void
AbstractJDBCDatabaseInterface. init(User user, DatabaseConnection connection)
Initializes this database interface with a User and DatabaseConnection object.
-