Uses of Class
com.mckoi.database.TableName
Packages that use TableName
Package
Description
The core database classes for Mckoi.
-
Uses of TableName in com.mckoi.database
Fields in com.mckoi.database declared as TableNameModifier and TypeFieldDescriptionstatic final TableNameTableDataConglomerate.CHECK_INFO_TABLEstatic final TableNameTableDataConglomerate.FOREIGN_COLS_TABLEstatic final TableNameTableDataConglomerate.FOREIGN_INFO_TABLETransaction.ColumnGroupReference.key_table_nameThe key table name.static final TableNameDatabase.NEW_TRIGGER_TABLEThe NEW table used inside a triggered procedure to represent a triggered row after the operation occurs.static final TableNameDatabase.OLD_TRIGGER_TABLEThe OLD table used inside a triggered procedure to represent a triggered row before the operation occurs.static final TableNameTableDataConglomerate.PERSISTENT_VAR_TABLEstatic final TableNameTableDataConglomerate.PRIMARY_COLS_TABLEstatic final TableNameTableDataConglomerate.PRIMARY_INFO_TABLETransaction.ColumnGroupReference.ref_table_nameThe referenced table name.static final TableNameTableDataConglomerate.SCHEMA_INFO_TABLEThe schema info table.static final TableNameDatabase.SYS_DATA_TRIGGERThe system internally generated 'sUSRDataTrigger' table.static final TableNameDatabase.SYS_DB_STATISTICSThe system internally generated 'sUSRDatabaseStatistics' table.static final TableNameDatabase.SYS_FUNCTIONThe function table.static final TableNameDatabase.SYS_FUNCTIONFACTORYThe function factory table.static final TableNameDatabase.SYS_GRANTSstatic final TableNameDatabase.SYS_LABELThe label table.static final TableNameDatabase.SYS_PASSWORDThe password privs and grants table.static final TableNameTableDataConglomerate.SYS_SEQUENCEstatic final TableNameTableDataConglomerate.SYS_SEQUENCE_INFOstatic final TableNameDatabase.SYS_SERVICEThe services table.static final TableNameDatabase.SYS_TABLE_COLUMNSThe system internally generated 'sUSRTableColumns' table.static final TableNameDatabase.SYS_TABLE_INFOThe system internally generated 'sUSRTableInfo' table.static final TableNameDatabase.SYS_USERCONNECTstatic final TableNameDatabase.SYS_USERPRIVstatic final TableNameDatabase.SYS_VIEWThe view table.static final TableNameTableDataConglomerate.UNIQUE_COLS_TABLEstatic final TableNameTableDataConglomerate.UNIQUE_INFO_TABLEMethods in com.mckoi.database that return TableNameModifier and TypeMethodDescriptionprotected TableName[]SimpleTransaction.getDynamicTableList()Returns a list of all dynamic table names.protected TableName[]Transaction.getDynamicTableList()Returns a list of all dynamic table names.JoiningSet.getFirstTable()Returns the first table in the join set.JoiningSet.getTable(int n) Returns table 'n' in the result set where table 0 is the first table in the join set.DatabaseConnection.getTableList()Returns a TableName[] array that contains the list of database tables that are visible by this transaction.SimpleTransaction.getTableList()Returns a list of table names that are visible within this transaction.AbstractDataTable.getTableName()Returns the fully resolved table name.DataTableDef.getTableName()ReferenceTable.getTableName()Filters the name of the table.TableCommitModificationEvent.getTableName()Returns the name of the table.TableModificationEvent.getTableName()Returns the name of the table of this modification.Variable.getTableName()Returns the TableName context.DatabaseConnection.queryTablesRelationallyLinkedTo(TableName table) Same as the Transaction.queryTablesRelationallyLinkedTo method.static TableName[]Transaction.queryTablesRelationallyLinkedTo(SimpleTransaction transaction, TableName table) Returns the list of tables (as a TableName array) that are dependant on the data in the given table to maintain referential consistancy.static TableNameResolves a [schema name].[table name] type syntax to a TableName object.static TableNameResolves a [schema name].[table name] type syntax to a TableName object.TableName.resolveSchema(String scheman) Resolves a schema reference in a table name.DatabaseConnection.resolveTableName(String name) Resolves a TableName string (eg.DatabaseConnection.resolveToTableName(String name) Resolves the given string to a table name, throwing an exception if the reference is ambiguous.SimpleTransaction.resolveToTableName(String current_schema, String name, boolean case_insensitive) Resolves the given string to a table name, throwing an exception if the reference is ambiguous.DatabaseConnection.tryResolveCase(TableName table_name) Attempts to resolve the given table name to its correct case assuming the table name represents a case insensitive version of the name.SimpleTransaction.tryResolveCase(TableName table_name) Attempts to resolve the given table name to its correct case assuming the table name represents a case insensitive version of the name.Methods in com.mckoi.database with parameters of type TableNameModifier and TypeMethodDescriptionvoidDatabaseConnection.addCheckConstraint(TableName table_name, Expression expression, short deferred, String constraint_name) Same as the Transaction.addCheckConstraint method.voidTransaction.addCheckConstraint(TableName table_name, Expression expression, short deferred, String constraint_name) Adds a check expression that becomes perminent when the transaction is committed.voidDatabaseConnection.addForeignKeyConstraint(TableName table, String[] cols, TableName ref_table, String[] ref_cols, String delete_rule, String update_rule, short deferred, String constraint_name) Same as the Transaction.addForeignKeyConstraint method.voidTransaction.addForeignKeyConstraint(TableName table, String[] cols, TableName ref_table, String[] ref_cols, String delete_rule, String update_rule, short deferred, String constraint_name) Adds a foreign key constraint to the database which becomes perminent when the transaction is committed.voidDatabaseConnection.addPrimaryKeyConstraint(TableName table_name, String[] cols, short deferred, String constraint_name) Same as the Transaction.addPrimaryKeyConstraint method.voidTransaction.addPrimaryKeyConstraint(TableName table_name, String[] cols, short deferred, String constraint_name) Adds a primary key constraint that becomes perminent when the transaction is committed.voidDatabaseConnection.addSelectedFromTable(TableName name) Adds the given table name to the list of tables that are selected from within the transaction in this connection.voidTransaction.addSelectedFromTable(TableName table_name) Called by the query evaluation layer when information is selected from this table as part of this transaction.voidAdds a new table into the set being joined.voidTableDataConglomerate.addTransactionModificationListener(TableName table_name, TransactionModificationListener listener) Adds a listener for transactional modification events that occur on the given table in this conglomerate.voidDatabaseConnection.addUniqueConstraint(TableName table_name, String[] cols, short deferred, String constraint_name) Same as the Transaction.addUniqueConstraint method.voidTransaction.addUniqueConstraint(TableName table_name, String[] cols, short deferred, String constraint_name) Adds a unique constraint to the database which becomes perminant when the transaction is committed.voidTransaction.alterTable(TableName table_name, DataTableDef table_def) Alters the table with the given name within this transaction to the specified table definition.voidTransaction.alterTable(TableName table_name, DataTableDef table_def, int data_sector_size, int index_sector_size) Alter the table with the given name to the new definition and give the copied table a new data sector size.booleanDatabase.canUserAlterTableObject(DatabaseQueryContext context, User user, TableName table) Returns true if the user can alter a table or view with the given name, otherwise returns false.booleanDatabase.canUserCompactTableObject(DatabaseQueryContext context, User user, TableName table) Returns true if the user can compact a table with the given name, otherwise returns false.booleanDatabase.canUserCreateProcedureObject(DatabaseQueryContext context, User user, TableName table) Returns true if the user can create a procedure with the given name, otherwise returns false.booleanDatabase.canUserCreateSequenceObject(DatabaseQueryContext context, User user, TableName table) Returns true if the user can create a sequence with the given name, otherwise returns false.booleanDatabase.canUserCreateTableObject(DatabaseQueryContext context, User user, TableName table) Returns true if the user can create a table or view with the given name, otherwise returns false.booleanDatabase.canUserDeleteFromTableObject(DatabaseQueryContext context, User user, TableName table) Returns true if the user can delete from a table or view with the given name and given columns, otherwise returns false.booleanDatabase.canUserDropProcedureObject(DatabaseQueryContext context, User user, TableName table) Returns true if the user can drop a procedure with the given name, otherwise returns false.booleanDatabase.canUserDropSequenceObject(DatabaseQueryContext context, User user, TableName table) Returns true if the user can drop a sequence with the given name, otherwise returns false.booleanDatabase.canUserDropTableObject(DatabaseQueryContext context, User user, TableName table) Returns true if the user can drop a table or view with the given name, otherwise returns false.booleanDatabase.canUserInsertIntoTableObject(DatabaseQueryContext context, User user, TableName table, Variable[] columns) Returns true if the user can insert into a table or view with the given name and given columns, otherwise returns false.booleanDatabase.canUserSelectFromTableObject(DatabaseQueryContext context, User user, TableName table, Variable[] columns) Returns true if the user can select from a table or view with the given name and given columns, otherwise returns false.booleanDatabase.canUserUpdateTableObject(DatabaseQueryContext context, User user, TableName table, Variable[] columns) Returns true if the user can update a table or view with the given name and given columns, otherwise returns false.voidDatabaseConnection.checkAllConstraints(TableName table_name) Checks all the rows in the table for immediate constraint violations and when the transaction is next committed check for all deferred constraint violations.voidTransaction.checkAllConstraints(TableName table_name) Checks all the rows in the table for immediate constraint violations and when the transaction is next committed check for all deferred constraint violations.voidDatabaseConnection.compactTable(TableName table_name) Compacts the table with the given name.voidTransaction.compactTable(TableName table_name) Compacts the table with the given name within this transaction.DatabaseConnection.createObjectFetchQueryPlan(TableName table_name, TableName aliased_name) Creates a QueryPlanNode to fetch the given table object from this connection.voidDatabaseConnection.createSequenceGenerator(TableName name, long start_value, long increment_by, long min_value, long max_value, long cache, boolean cycle) Creates a new sequence generator with the given TableName and initializes it with the given details.voidTransaction.createSequenceGenerator(TableName name, long start_value, long increment_by, long min_value, long max_value, long cache, boolean cycle) Creates a new sequence generator with the given TableName and initializes it with the given details.voidConnectionTriggerManager.createTableTrigger(String schema, String name, int type, TableName on_table, String procedure_name, TObject[] params) Creates a new trigger action on a stored procedure and makes the change to the transaction of this DatabaseConnection.DatabaseQueryContext.createViewQueryPlanNode(TableName name) Creates a QueryPlanNode for the view with the given name.ViewManager.createViewQueryPlanNode(TableName view_name) Returns a freshly deserialized QueryPlanNode object for the given view object.longSimpleTransaction.currentUniqueID(TableName table_name) Returns the current unique id for the given table name.We can declare a DataTable as a new type.booleanViewManager.deleteView(TableName view_name) Deletes the view with the given name, or returns false if no entries were deleted from the view table.voidDatabaseConnection.dropAllConstraintsForTable(TableName table_name) Same as the Transaction.dropAllConstraintsForTable method.voidTransaction.dropAllConstraintsForTable(TableName table_name) Drops all the constraints defined for the given table.booleanTransaction.dropCheckConstraintForTable(TableName table, String constraint_name) Drops a single named check constraint from the given table.booleanTransaction.dropForeignKeyReferenceConstraintForTable(TableName table, String constraint_name) Drops a single named foreign key reference from the given table.intDatabaseConnection.dropNamedConstraint(TableName table_name, String constraint_name) Same as the Transaction.dropNamedConstraint method.intTransaction.dropNamedConstraint(TableName table_name, String constraint_name) Drops the named constraint from the transaction.booleanDatabaseConnection.dropPrimaryKeyConstraintForTable(TableName table_name, String constraint_name) Same as the Transaction.dropPrimaryKeyConstraintForTable method.booleanTransaction.dropPrimaryKeyConstraintForTable(TableName table_name, String constraint_name) Drops the primary key constraint for the given table.voidDatabaseConnection.dropSequenceGenerator(TableName name) Drops an existing sequence generator with the given name.voidTransaction.dropSequenceGenerator(TableName name) Drops an existing sequence generator with the given name.voidDrops a table from within the context of the current connection transaction.voidDrops a table within this transaction.booleanTransaction.dropUniqueConstraintForTable(TableName table, String constraint_name) Drops a single named unique constraint from the given table.booleanDrops the view with the given name and returns true if the drop succeeded.booleanTableName.equalsIgnoreCase(TableName tn) Equality but ignore the case.protected com.mckoi.database.MasterTableDataSourceSimpleTransaction.findVisibleTable(TableName table_name, boolean ignore_case) Searches through the list of tables visible within this transaction and returns the MasterTableDataSource object with the given name.protected voidSimpleTransaction.flushTableCache(TableName table_name) Flushes the table cache and purges the cache of the entry for the given table name.DatabaseConnection.getDataTableDef(TableName name) Returns the DataTableDef for the table with the given name.DatabaseQueryContext.getDataTableDef(TableName name) Returns a DataTableDef for the given table name.SimpleTransaction.getDataTableDef(TableName table_name) Returns the DataTableDef for the table with the given name that is visible within this transaction.protected DataTableDefSimpleTransaction.getDynamicDataTableDef(TableName table_name) Returns the DataTableDef for a dynamic table defined in this transaction.protected DataTableDefTransaction.getDynamicDataTableDef(TableName table_name) Returns the DataTableDef for the given internal table.protected MutableTableDataSourceSimpleTransaction.getDynamicTable(TableName table_name) If this transaction implementation defines dynamic tables (tables whose content is determined by some function), this should return the table here as a MutableTableDataSource object.protected MutableTableDataSourceTransaction.getDynamicTable(TableName table_name) Returns an instance of MutableDataTableSource that represents the contents of the internal table with the given name.protected StringSimpleTransaction.getDynamicTableType(TableName table_name) Returns a string type describing the type of the dynamic table.Transaction.getDynamicTableType(TableName table_name) Returns a string type describing the type of the dynamic table.Returns a DataTable that represents the table from the given schema, name in the database.Returns a DataTable from the database with the given table name.Returns a MutableTableDataSource object that represents the table with the given name within this transaction.SimpleTransaction.getTableDataSource(TableName table_name) Returns a TableDataSource object that represents the table with the given name within this transaction.DatabaseConnection.getTableQueryDef(TableName table_name, TableName aliased_as) Returns a TableQueryDef object that describes the characteristics of a table including the name (TableName), the columns (DataTableDef) and the query plan to produce the table (QueryPlanNode).DatabaseConnection.getTableType(TableName table_name) Returns the type of the table object.SimpleTransaction.getTableType(TableName table_name) Returns the type of the table object with the given name.protected booleanSimpleTransaction.isDynamicTable(TableName table_name) Returns true if the given table name is a dynamically generated table and is not a table that is found in the table list defined in this transaction object.protected booleanTransaction.isDynamicTable(TableName table_name) Returns true if the given table name represents a dynamically generated system table.longSimpleTransaction.lastSequenceValue(TableName name) Returns the sequence value for the given sequence generator that was last returned by a call to 'nextSequenceValue'.longSimpleTransaction.nextSequenceValue(TableName name) Requests of the sequence generator the next value from the sequence.longDatabaseConnection.nextUniqueID(TableName name) Returns the next unique identifier for the given table from the schema.longSimpleTransaction.nextUniqueID(TableName table_name) Atomically returns a unique id that can be used as a seed for a set of unique identifiers for a table.booleanProcedureManager.procedureExists(TableName procedure_name) Returns true if the procedure with the given table name exists.DatabaseConnection.queryTableCheckExpressions(TableName table_name) Same as the Transaction.queryTableCheckExpression method.static Transaction.CheckExpression[]Transaction.queryTableCheckExpressions(SimpleTransaction transaction, TableName table_name) Returns a set of check expressions that are constrained over all new columns added to the given table in this transaction.DatabaseConnection.queryTableForeignKeyReferences(TableName table_name) Same as the Transaction.queryTableForeignKeyReferences method.static Transaction.ColumnGroupReference[]Transaction.queryTableForeignKeyReferences(SimpleTransaction transaction, TableName table_name) Returns an array of column references in the given table that represent foreign key references.DatabaseConnection.queryTableImportedForeignKeyReferences(TableName table_name) Same as the Transaction.queryTableImportedForeignKeyReferences method.static Transaction.ColumnGroupReference[]Transaction.queryTableImportedForeignKeyReferences(SimpleTransaction transaction, TableName ref_table_name) Returns an array of column references in the given table that represent foreign key references that reference columns in the given table.DatabaseConnection.queryTablePrimaryKeyGroup(TableName table_name) Same as the Transaction.queryTablePrimaryKeyGroup method.static Transaction.ColumnGroupTransaction.queryTablePrimaryKeyGroup(SimpleTransaction transaction, TableName table_name) Returns a set of primary key groups that are constrained to be unique for the given table in this transaction (there can be only 1 primary key defined for a table).DatabaseConnection.queryTablesRelationallyLinkedTo(TableName table) Same as the Transaction.queryTablesRelationallyLinkedTo method.static TableName[]Transaction.queryTablesRelationallyLinkedTo(SimpleTransaction transaction, TableName table) Returns the list of tables (as a TableName array) that are dependant on the data in the given table to maintain referential consistancy.DatabaseConnection.queryTableUniqueGroups(TableName table_name) Same as the Transaction.queryTableUniqueGroups method.static Transaction.ColumnGroup[]Transaction.queryTableUniqueGroups(SimpleTransaction transaction, TableName table_name) Returns a set of unique groups that are constrained to be unique for the given table in this transaction.voidTableDataConglomerate.removeTransactionModificationListener(TableName table_name, TransactionModificationListener listener) Removes a listener for transaction modification events on the given table in this conglomerate as previously set by the 'addTransactionModificationListener' method.static VariableAttempts to resolve a string '[table_name].[column]' to a Variable instance.Variable.resolveTableName(TableName tablen) Returns a ColumnName that is resolved against a table name context only if the ColumnName is unknown in this object.voidQueryPlan.SubsetNode.setGivenName(TableName name) Sets the given table name of the resultant table.voidSimpleTransaction.setSequenceValue(TableName name, long value) Sets the sequence value for the given sequence generator.voidDataTableDef.setTableName(TableName name) voidVariable.setTableName(TableName tname) Sets the TableName of this variable.voidSimpleTransaction.setUniqueID(TableName table_name, long unique_id) Sets the unique id for the given table name.booleanDatabaseConnection.tableExists(TableName table_name) Returns true if the table exists within this connection transaction.booleanSimpleTransaction.tableExists(TableName table_name) Returns true if the database table object with the given name exists within this transaction.DatabaseConnection.tryResolveCase(TableName table_name) Attempts to resolve the given table name to its correct case assuming the table name represents a case insensitive version of the name.SimpleTransaction.tryResolveCase(TableName table_name) Attempts to resolve the given table name to its correct case assuming the table name represents a case insensitive version of the name.booleanViewManager.viewExists(TableName view_name) Returns true if the view with the given name exists.Constructors in com.mckoi.database with parameters of type TableNameModifierConstructorDescriptionDataIndexSetDef(TableName table_name) Constructor.FetchTableNode(TableName table_name, TableName aliased_as) FetchViewNode(TableName table_name, TableName aliased_as) ProcedureName(TableName table_name) Constructs the ProcedureName from a TableName.TableCommitModificationEvent(SimpleTransaction transaction, TableName table_name, int[] added, int[] removed) Constructs the event.Constructs the ColumnName. -
Uses of TableName in com.mckoi.database.interpret
Methods in com.mckoi.database.interpret that return TableNameModifier and TypeMethodDescriptionFromTableDirectSource.getGivenTableName()Returns the given name of the table.FromTableDirectSource.getRootTableName()Returns the root name of the table.Constructors in com.mckoi.database.interpret with parameters of type TableNameModifierConstructorDescriptionFromTableDirectSource(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.