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 TableName
TableDataConglomerate.CHECK_INFO_TABLE
static final TableName
TableDataConglomerate.FOREIGN_COLS_TABLE
static final TableName
TableDataConglomerate.FOREIGN_INFO_TABLE
Transaction.ColumnGroupReference.key_table_name
The key table name.static final TableName
Database.NEW_TRIGGER_TABLE
The NEW table used inside a triggered procedure to represent a triggered row after the operation occurs.static final TableName
Database.OLD_TRIGGER_TABLE
The OLD table used inside a triggered procedure to represent a triggered row before the operation occurs.static final TableName
TableDataConglomerate.PERSISTENT_VAR_TABLE
static final TableName
TableDataConglomerate.PRIMARY_COLS_TABLE
static final TableName
TableDataConglomerate.PRIMARY_INFO_TABLE
Transaction.ColumnGroupReference.ref_table_name
The referenced table name.static final TableName
TableDataConglomerate.SCHEMA_INFO_TABLE
The schema info table.static final TableName
Database.SYS_DATA_TRIGGER
The system internally generated 'sUSRDataTrigger' table.static final TableName
Database.SYS_DB_STATISTICS
The system internally generated 'sUSRDatabaseStatistics' table.static final TableName
Database.SYS_FUNCTION
The function table.static final TableName
Database.SYS_FUNCTIONFACTORY
The function factory table.static final TableName
Database.SYS_GRANTS
static final TableName
Database.SYS_LABEL
The label table.static final TableName
Database.SYS_PASSWORD
The password privs and grants table.static final TableName
TableDataConglomerate.SYS_SEQUENCE
static final TableName
TableDataConglomerate.SYS_SEQUENCE_INFO
static final TableName
Database.SYS_SERVICE
The services table.static final TableName
Database.SYS_TABLE_COLUMNS
The system internally generated 'sUSRTableColumns' table.static final TableName
Database.SYS_TABLE_INFO
The system internally generated 'sUSRTableInfo' table.static final TableName
Database.SYS_USERCONNECT
static final TableName
Database.SYS_USERPRIV
static final TableName
Database.SYS_VIEW
The view table.static final TableName
TableDataConglomerate.UNIQUE_COLS_TABLE
static final TableName
TableDataConglomerate.UNIQUE_INFO_TABLE
Methods 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 TableName
Resolves a [schema name].[table name] type syntax to a TableName object.static TableName
Resolves 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 TypeMethodDescriptionvoid
DatabaseConnection.addCheckConstraint
(TableName table_name, Expression expression, short deferred, String constraint_name) Same as the Transaction.addCheckConstraint method.void
Transaction.addCheckConstraint
(TableName table_name, Expression expression, short deferred, String constraint_name) Adds a check expression that becomes perminent when the transaction is committed.void
DatabaseConnection.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.void
Transaction.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.void
DatabaseConnection.addPrimaryKeyConstraint
(TableName table_name, String[] cols, short deferred, String constraint_name) Same as the Transaction.addPrimaryKeyConstraint method.void
Transaction.addPrimaryKeyConstraint
(TableName table_name, String[] cols, short deferred, String constraint_name) Adds a primary key constraint that becomes perminent when the transaction is committed.void
DatabaseConnection.addSelectedFromTable
(TableName name) Adds the given table name to the list of tables that are selected from within the transaction in this connection.void
Transaction.addSelectedFromTable
(TableName table_name) Called by the query evaluation layer when information is selected from this table as part of this transaction.void
Adds a new table into the set being joined.void
TableDataConglomerate.addTransactionModificationListener
(TableName table_name, TransactionModificationListener listener) Adds a listener for transactional modification events that occur on the given table in this conglomerate.void
DatabaseConnection.addUniqueConstraint
(TableName table_name, String[] cols, short deferred, String constraint_name) Same as the Transaction.addUniqueConstraint method.void
Transaction.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.void
Transaction.alterTable
(TableName table_name, DataTableDef table_def) Alters the table with the given name within this transaction to the specified table definition.void
Transaction.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.boolean
Database.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.boolean
Database.canUserCompactTableObject
(DatabaseQueryContext context, User user, TableName table) Returns true if the user can compact a table with the given name, otherwise returns false.boolean
Database.canUserCreateProcedureObject
(DatabaseQueryContext context, User user, TableName table) Returns true if the user can create a procedure with the given name, otherwise returns false.boolean
Database.canUserCreateSequenceObject
(DatabaseQueryContext context, User user, TableName table) Returns true if the user can create a sequence with the given name, otherwise returns false.boolean
Database.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.boolean
Database.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.boolean
Database.canUserDropProcedureObject
(DatabaseQueryContext context, User user, TableName table) Returns true if the user can drop a procedure with the given name, otherwise returns false.boolean
Database.canUserDropSequenceObject
(DatabaseQueryContext context, User user, TableName table) Returns true if the user can drop a sequence with the given name, otherwise returns false.boolean
Database.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.boolean
Database.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.boolean
Database.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.boolean
Database.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.void
DatabaseConnection.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.void
Transaction.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.void
DatabaseConnection.compactTable
(TableName table_name) Compacts the table with the given name.void
Transaction.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.void
DatabaseConnection.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.void
Transaction.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.void
ConnectionTriggerManager.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.long
SimpleTransaction.currentUniqueID
(TableName table_name) Returns the current unique id for the given table name.We can declare a DataTable as a new type.boolean
ViewManager.deleteView
(TableName view_name) Deletes the view with the given name, or returns false if no entries were deleted from the view table.void
DatabaseConnection.dropAllConstraintsForTable
(TableName table_name) Same as the Transaction.dropAllConstraintsForTable method.void
Transaction.dropAllConstraintsForTable
(TableName table_name) Drops all the constraints defined for the given table.boolean
Transaction.dropCheckConstraintForTable
(TableName table, String constraint_name) Drops a single named check constraint from the given table.boolean
Transaction.dropForeignKeyReferenceConstraintForTable
(TableName table, String constraint_name) Drops a single named foreign key reference from the given table.int
DatabaseConnection.dropNamedConstraint
(TableName table_name, String constraint_name) Same as the Transaction.dropNamedConstraint method.int
Transaction.dropNamedConstraint
(TableName table_name, String constraint_name) Drops the named constraint from the transaction.boolean
DatabaseConnection.dropPrimaryKeyConstraintForTable
(TableName table_name, String constraint_name) Same as the Transaction.dropPrimaryKeyConstraintForTable method.boolean
Transaction.dropPrimaryKeyConstraintForTable
(TableName table_name, String constraint_name) Drops the primary key constraint for the given table.void
DatabaseConnection.dropSequenceGenerator
(TableName name) Drops an existing sequence generator with the given name.void
Transaction.dropSequenceGenerator
(TableName name) Drops an existing sequence generator with the given name.void
Drops a table from within the context of the current connection transaction.void
Drops a table within this transaction.boolean
Transaction.dropUniqueConstraintForTable
(TableName table, String constraint_name) Drops a single named unique constraint from the given table.boolean
Drops the view with the given name and returns true if the drop succeeded.boolean
TableName.equalsIgnoreCase
(TableName tn) Equality but ignore the case.protected com.mckoi.database.MasterTableDataSource
SimpleTransaction.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 void
SimpleTransaction.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 DataTableDef
SimpleTransaction.getDynamicDataTableDef
(TableName table_name) Returns the DataTableDef for a dynamic table defined in this transaction.protected DataTableDef
Transaction.getDynamicDataTableDef
(TableName table_name) Returns the DataTableDef for the given internal table.protected MutableTableDataSource
SimpleTransaction.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 MutableTableDataSource
Transaction.getDynamicTable
(TableName table_name) Returns an instance of MutableDataTableSource that represents the contents of the internal table with the given name.protected String
SimpleTransaction.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 boolean
SimpleTransaction.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 boolean
Transaction.isDynamicTable
(TableName table_name) Returns true if the given table name represents a dynamically generated system table.long
SimpleTransaction.lastSequenceValue
(TableName name) Returns the sequence value for the given sequence generator that was last returned by a call to 'nextSequenceValue'.long
SimpleTransaction.nextSequenceValue
(TableName name) Requests of the sequence generator the next value from the sequence.long
DatabaseConnection.nextUniqueID
(TableName name) Returns the next unique identifier for the given table from the schema.long
SimpleTransaction.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.boolean
ProcedureManager.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.ColumnGroup
Transaction.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.void
TableDataConglomerate.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 Variable
Attempts 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.void
QueryPlan.SubsetNode.setGivenName
(TableName name) Sets the given table name of the resultant table.void
SimpleTransaction.setSequenceValue
(TableName name, long value) Sets the sequence value for the given sequence generator.void
DataTableDef.setTableName
(TableName name) void
Variable.setTableName
(TableName tname) Sets the TableName of this variable.void
SimpleTransaction.setUniqueID
(TableName table_name, long unique_id) Sets the unique id for the given table name.boolean
DatabaseConnection.tableExists
(TableName table_name) Returns true if the table exists within this connection transaction.boolean
SimpleTransaction.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.boolean
ViewManager.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.