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 DatabaseConnectionConnectionTriggerManager. connectionThe DatabaseConnection.private DatabaseConnectionDataTable. connectionThe DatabaseConnection object that is the parent of this DataTable.private DatabaseConnectionGrantManager. connectionThe DatabaseConnection instance.private DatabaseConnectionProcedureManager. connectionThe DatabaseConnection.private DatabaseConnectionTableModificationEvent. connectionThe DatabaseConnection of the table that the modification occurred in.private DatabaseConnectionViewManager. connectionThe DatabaseConnection.private DatabaseConnectionDatabaseQueryContext. databaseThe DatabaseConnection.private DatabaseConnectionGTConnectionInfoDataSource. databaseThe DatabaseConnection object that this is table is modelling the information within.private DatabaseConnectionGTCurrentConnectionsDataSource. databaseThe DatabaseConnection object that this is table is modelling the information within.private DatabaseConnectionGTSQLTypeInfoDataSource. databaseThe DatabaseConnection object.private DatabaseConnectionInternalJDBCHelper.InternalDatabaseInterface. databaseThe internal connection to the database.private DatabaseConnectionTriggerManager.TriggerAction. database(package private) DatabaseConnectionWorkerPool.RunCommand. databaseMethods in com.mckoi.database that return DatabaseConnection Modifier and Type Method Description DatabaseConnectionDatabase. createNewConnection(User user, DatabaseConnection.CallBack call_back)Returns a new DatabaseConnection instance that is used against this database.DatabaseConnectionTableModificationEvent. 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) voidTriggerManager. 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) voidTriggerManager. clearAllDatabaseConnectionTriggers(DatabaseConnection database)Clears all the user triggers that have been defined.private voidDatabase. clearAllGrants(DatabaseConnection connection)Clears all the grant information in the sUSRGrant table.private voidDatabase. 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 voidDatabase. 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 voidDatabase. convertPreSchema(DatabaseConnection connection)Converts tables from a database that are pre database schema.(package private) static java.sql.ConnectionInternalJDBCHelper. createJDBCConnection(User user, DatabaseConnection connection)Returns a java.sql.Connection object that is bound to the given DatabaseConnection object.(package private) voidDatabase. createSchemaInfoTables(DatabaseConnection connection)Creates the schema information tables introducted in version 0.90.private voidDatabase. createSystemTables(DatabaseConnection connection)Creates all the priv/password system tables.private voidDatabase. createSystemViews(DatabaseConnection connection)Creates all the system views.voidDatabase. 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) voidDatabaseSystem. 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) voidWorkerPool. 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) voidWorkerThread. execute(User user, DatabaseConnection database_connection, java.lang.Runnable runner)Tells the worker thread that the user is executing the given command.voidDatabaseConnection. fireTrigger(DatabaseConnection database, java.lang.String trigger_name, TriggerEvent evt)Notifies when a trigger has fired for this user.voidTriggerListener. fireTrigger(DatabaseConnection database, java.lang.String trigger_name, TriggerEvent trigger_evt)Notifies that a trigger event fired.DatabaseProcedureDatabase. 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 voidDatabase. 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.voidJoiningSet. prepare(DatabaseConnection connection)Resolves the schema of tables in this joining set.(package private) voidTriggerManager. removeTriggerListener(DatabaseConnection database, java.lang.String trigger_name)Removes a trigger for the given user session.voidDataTableDef. 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 voidDatabase. setSystemGrants(DatabaseConnection connection, java.lang.String grantee)Set up the system table grants.voidDatabase. 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 DatabaseConnectionStatement. databaseThe Database context.Methods in com.mckoi.database.interpret with parameters of type DatabaseConnection Modifier and Type Method Description (package private) static voidCreateTable. addSchemaConstraint(DatabaseConnection manager, TableName table, ConstraintDef constraint)Adds a schema constraint to the rules for the schema represented by the manager.booleanAlterTable. checkColumnNamesMatch(DatabaseConnection db, java.lang.String col1, java.lang.String col2)Returns true if the column names match.TableSQLQueryExecutor. execute(DatabaseConnection connection, SQLQuery query)Executes the given SQLQuery object on the given DatabaseConnection object.static QueryPlanNodePlanner. 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 TableExpressionFromSetPlanner. generateFromSet(TableSelectExpression select_expression, DatabaseConnection db)Given a TableExpression, generates a TableExpressionFromSet object.voidStatement. init(DatabaseConnection db, StatementTree stree, SQLQuery query)Sets up internal variables for this statement for derived classes to use.private static voidPlanner. prepareSearchExpression(DatabaseConnection db, TableExpressionFromSet from_set, SearchExpression expression)Prepares the given SearchExpression object.(package private) TableNameStatement. resolveTableName(java.lang.String name, DatabaseConnection db)Resolves a TableName string (eg.(package private) static ColumnCheckerColumnChecker. 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 DatabaseConnectionAbstractJDBCDatabaseInterface. database_connectionThe database connection transaction.Methods in com.mckoi.database.jdbcserver that return DatabaseConnection Modifier and Type Method Description protected DatabaseConnectionAbstractJDBCDatabaseInterface. 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 voidAbstractJDBCDatabaseInterface. init(User user, DatabaseConnection connection)Initializes this database interface with a User and DatabaseConnection object.
-