Uses of Class
org.h2.table.Column
Packages that use Column
Package
Description
This package contains the parser and the base classes for prepared SQL statements.
Contains DDL (data definition language) and related SQL statements.
Contains DML (data manipulation language) and related SQL statements.
Contains queries.
Database constraints such as check constraints, unique constraints, and referential constraints.
Expressions include mathematical operations, simple values, and others.
Functions.
Table value functions.
Various table index implementations, as well as cursors to navigate in an index.
Utility classes for compatibility with other database, for example MySQL.
Helper classes to use the MVStore in the H2 database.
Implementation of row and internal result sets.
Classes related to a table and table meta data.
-
Uses of Column in org.h2.command
Methods in org.h2.command with parameters of type ColumnModifier and TypeMethodDescriptionstatic AlterTableAddConstraintParser.newPrimaryKeyConstraintCommand(SessionLocal session, Schema schema, String tableName, Column column) Create a new alter table command. -
Uses of Column in org.h2.command.ddl
Fields in org.h2.command.ddl with type parameters of type ColumnMethods in org.h2.command.ddl that return types with arguments of type ColumnMethods in org.h2.command.ddl with parameters of type ColumnModifier and TypeMethodDescriptionvoidabstract voidAdd a column to this table.voidvoidSet the columnvoidAlterTableAlterColumn.setNewColumn(Column newColumn) voidAlterTableAlterColumn.setOldColumn(Column oldColumn) Method parameters in org.h2.command.ddl with type arguments of type ColumnModifier and TypeMethodDescriptionprotected voidCommandWithColumns.changePrimaryKeysToNotNull(ArrayList<Column> columns) For the given list of columns, disable "nullable" for those columns that are primary key columns.static voidAlterDomain.forAllDependencies(SessionLocal session, Domain domain, BiPredicate<Domain, Column> columnProcessor, BiPredicate<Domain, Domain> domainProcessor, boolean recompileExpressions) Processes all columns and domains that use the specified domain.CommandWithColumns.generateSequences(ArrayList<Column> columns, boolean temporary) For the given list of columns, create sequences for identity columns (if needed), and then get the list of all sequences of the columns.voidAlterTableAlterColumn.setColumnsToRemove(ArrayList<Column> columnsToRemove) -
Uses of Column in org.h2.command.dml
Methods in org.h2.command.dml with parameters of type ColumnModifier and TypeMethodDescriptionvoidInsert.addAssignmentForDuplicate(Column column, Expression expression) Keep a collection of the columns to pass to update if a duplicate key happens, for MySQL-style INSERT ...voidSetClauseList.addSingle(Column column, Expression expression) Add a single column.voidInsert.setColumns(Column[] columns) voidMerge.setColumns(Column[] columns) voidMethod parameters in org.h2.command.dml with type arguments of type ColumnModifier and TypeMethodDescriptionvoidSetClauseList.addMultiple(ArrayList<Column> columns, Expression expression) Add multiple columns.Constructors in org.h2.command.dml with parameters of type ColumnModifierConstructorDescriptionWhenNotMatched(Column[] columns, Boolean overridingSystem, Expression[] values) -
Uses of Column in org.h2.command.query
Methods in org.h2.command.query that return ColumnModifier and TypeMethodDescriptionSelectListColumnResolver.findColumn(String name) Column[]SelectListColumnResolver.getColumns()Methods in org.h2.command.query that return types with arguments of type ColumnModifier and TypeMethodDescriptionUsed by index to calculate the cost of a scan.Methods in org.h2.command.query with parameters of type ColumnModifier and TypeMethodDescriptionvoidCalled by ExpressionVisitor.static voidTableValueConstructor.getVisibleResult(SessionLocal session, ResultTarget result, Column[] columns, ArrayList<ArrayList<Expression>> rows) Appends visible columns of all rows to the specified result.SelectListColumnResolver.optimize(ExpressionColumn expressionColumn, Column column) Query.toTable(String alias, Column[] columnTemplates, ArrayList<Parameter> parameters, boolean forCreateView, Query topQuery) Converts this query to a table or a view.TableValueConstructor.toTable(String alias, Column[] columnTemplates, ArrayList<Parameter> parameters, boolean forCreateView, Query topQuery) -
Uses of Column in org.h2.constraint
Methods in org.h2.constraint that return ColumnModifier and TypeMethodDescriptionDomainColumnResolver.findColumn(String name) Column[]DomainColumnResolver.getColumns()Methods in org.h2.constraint that return types with arguments of type ColumnModifier and TypeMethodDescriptionConstraint.getReferencedColumns(Table table) Get all referenced columns.ConstraintCheck.getReferencedColumns(Table table) ConstraintDomain.getReferencedColumns(Table table) ConstraintReferential.getReferencedColumns(Table table) ConstraintUnique.getReferencedColumns(Table table) Methods in org.h2.constraint with parameters of type Column -
Uses of Column in org.h2.expression
Methods in org.h2.expression that return ColumnMethods in org.h2.expression that return types with arguments of type ColumnModifier and TypeMethodDescriptionWildcard.mapExceptColumns()Returns map of excluded table columns to expression columns and validates that all columns are resolved and not duplicated.Methods in org.h2.expression with parameters of type ColumnMethod parameters in org.h2.expression with type arguments of type ColumnModifier and TypeMethodDescriptionstatic ExpressionVisitorExpressionVisitor.getColumnsVisitor(HashSet<Column> columns, Table table) Create a new visitor to get all referenced columns.Constructors in org.h2.expression with parameters of type ColumnModifierConstructorDescriptionExpressionColumn(Database database, Column column) Creates a new column reference for metadata of queries; should not be used as normal expression. -
Uses of Column in org.h2.expression.function
Constructors in org.h2.expression.function with parameters of type Column -
Uses of Column in org.h2.expression.function.table
Method parameters in org.h2.expression.function.table with type arguments of type Column -
Uses of Column in org.h2.index
Fields in org.h2.index declared as ColumnModifier and TypeFieldDescriptionprotected Column[]Index.columnsTable columns used in this index.Methods in org.h2.index that return ColumnModifier and TypeMethodDescriptionIndexCondition.getColumn()Get the referenced column.final Column[]Index.getColumns()Get the indexed columns.Methods in org.h2.index with parameters of type ColumnModifier and TypeMethodDescriptionintIndex.getColumnIndex(Column col) Get the index of a column in the list of index columnsintMetaIndex.getColumnIndex(Column col) booleanIndex.isFirstColumn(Column column) Check if the given column is the first for this indexbooleanMetaIndex.isFirstColumn(Column column) -
Uses of Column in org.h2.mode
Constructors in org.h2.mode with parameters of type Column -
Uses of Column in org.h2.mvstore.db
Methods in org.h2.mvstore.db that return ColumnMethods in org.h2.mvstore.db with parameters of type ColumnModifier and TypeMethodDescriptionintMVDelegateIndex.getColumnIndex(Column col) intMVPrimaryIndex.getColumnIndex(Column col) static longMVSpatialIndex.getCostRangeIndex(int[] masks, Column[] columns) Compute spatial index costbooleanMVDelegateIndex.isFirstColumn(Column column) booleanMVPrimaryIndex.isFirstColumn(Column column) -
Uses of Column in org.h2.result
Methods in org.h2.result that return ColumnModifier and TypeMethodDescriptionSortOrder.getColumn(int index, TableFilter filter) Get the column for the given table filter, if the sort column is for this filter. -
Uses of Column in org.h2.table
Fields in org.h2.table declared as ColumnModifier and TypeFieldDescriptionIndexColumn.columnThe column, or null if not set.protected Column[]Table.columnsThe columns of this table.Methods in org.h2.table that return ColumnModifier and TypeMethodDescriptionprotected final ColumnCreates a column with the specified name and data type.ColumnResolver.findColumn(String name) Get the column with the specified name.Table.findColumn(String columnName) Get the column with the given name if it exists.TableFilter.findColumn(String name) Column.getClone()Table.getColumn(int index) Get the column at the given index.Get the column with the given name.Get the column with the given name.Get the column with the given name.Column[]ColumnResolver.getColumns()Get the column list.Column[]Table.getColumns()Column[]TableFilter.getColumns()Table.getIdentityColumn()Returns first identity column, ornull.default ColumnColumnResolver.getRowIdColumn()Get the row id pseudo column, if there is one.Table.getRowIdColumn()Get the row id column if this table has one.TableFilter.getRowIdColumn()default Column[]ColumnResolver.getSystemColumns()Get the list of system columns, if any.Column[]TableFilter.getSystemColumns()Get the system columns that this table understands.Methods in org.h2.table that return types with arguments of type ColumnModifier and TypeMethodDescriptionTableView.createQueryColumnTemplateList(String[] cols, Query theQuery, String[] querySQLOutput) Creates a list of column templates from a query (usually from WITH query, but could be any query)TableFilter.getCommonJoinColumns()Returns common join columns map.TableFilter.getCommonJoinColumns()Returns common join columns map.Methods in org.h2.table with parameters of type ColumnModifier and TypeMethodDescriptionvoidTableFilter.addCommonJoinColumns(Column leftColumn, Column replacementColumn, TableFilter replacementFilter) Add a column to the common join column list for a left table filter.voidTableFilter.addCommonJoinColumnToExclude(Column columnToExclude) Add an excluded column to the common join column list.voidCopy the data of the source column into the current column.static TableViewTableView.createTableViewMaybeRecursive(Schema schema, int id, String name, String querySQL, ArrayList<Parameter> parameters, Column[] columnTemplates, SessionLocal session, boolean literalsChecked, boolean isTableExpression, boolean isTemporary, Database db) Create a view.static TableViewTableView.createTempView(SessionLocal session, User owner, String name, Column[] columnTemplates, Query query, Query topQuery) Create a temporary view out of the given query.default StringColumnResolver.getColumnName(Column column) Get the name of the specified column.TableFilter.getColumnName(Column column) Table.getIndexForColumn(Column column, boolean needGetFirstOrLast, boolean needFindNext) Get the index that has the given column as the first element.Get the value for the given column.booleanTableFilter.isCommonJoinColumnToExclude(Column c) Check if the given column is an excluded common join column.booleanColumn.isWideningConversion(Column newColumn) Check whether the new column is of the same type and not more restricted than this column.default ExpressionColumnResolver.optimize(ExpressionColumn expressionColumn, Column column) Get the expression that represents this column.voidTable.renameColumn(Column column, String newName) Rename a column of this table.voidTableView.replace(String querySQL, Column[] newColumnTemplates, SessionLocal session, boolean recursive, boolean force, boolean literalsChecked) Try to replace the SQL statement of the view and re-compile this and all dependent views.protected voidTable.setColumns(Column[] columns) static IndexColumn[]Create an array of index columns from a list of columns.static StringBuilderColumn.writeColumns(StringBuilder builder, Column[] columns, int sqlFlags) Appends the specified columns to the specified builder.static StringBuilderColumn.writeColumns(StringBuilder builder, Column[] columns, String separator, String suffix, int sqlFlags) Appends the specified columns to the specified builder.Method parameters in org.h2.table with type arguments of type ColumnModifier and TypeMethodDescriptionstatic TableTableView.createShadowTableForRecursiveTableExpression(boolean isTemporary, SessionLocal targetSession, String cteViewName, Schema schema, List<Column> columns, Database db) Create a table for a recursive query.voidTable.dropMultipleColumnsConstraintsAndIndexes(SessionLocal session, ArrayList<Column> columnsToDrop) Check that these columns are not referenced by a multi-column constraint or multi-column index.Constructors in org.h2.table with parameters of type ColumnModifierConstructorDescriptionIndexColumn(Column column) Creates a new instance with the specified column.TableValueConstructorTable(Schema schema, SessionLocal session, Column[] columns, ArrayList<ArrayList<Expression>> rows) TableView(Schema schema, int id, String name, String querySQL, ArrayList<Parameter> params, Column[] columnTemplates, SessionLocal session, boolean allowRecursive, boolean literalsChecked, boolean isTableExpression, boolean isTemporary)