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.
Implementation of the JDBC database metadata API (package java.sql).
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 that return ColumnModifier and TypeMethodDescriptionprivate ColumnParser.columnIfTableExists(Schema schema, String tableName, String columnName, boolean ifTableExists, boolean ifExists) private static ColumnParser.getColumnWithDomain(String columnName, Domain domain) private ColumnParser.parseColumn(Table table) private ColumnParser.parseColumnForTable(String columnName, boolean defaultNullable) private Column[]Parser.parseColumnList(Table table) private ColumnParser.parseColumnWithType(String columnName) private ColumnParser.readTableColumn(TableFilter filter) Methods in org.h2.command with parameters of type ColumnModifier and TypeMethodDescriptionprivate ExpressionParser.addJoinColumn(Expression on, TableFilter filter1, TableFilter filter2, Column column1, Column column2, boolean rightJoin) private PreparedParser.getAlterTableAlterColumnDropDefaultExpression(Schema schema, String tableName, boolean ifTableExists, Column column, int type) static AlterTableAddConstraintParser.newPrimaryKeyConstraintCommand(SessionLocal session, Schema schema, String tableName, Column column) Create a new alter table command.private PreparedParser.parseAlterTableAlterColumnIdentity(Schema schema, String tableName, boolean ifTableExists, Column column) private PreparedParser.parseAlterTableAlterColumnSet(Schema schema, String tableName, boolean ifTableExists, boolean ifExists, String columnName, Column column) private booleanParser.parseCompatibilityIdentity(Column column, Mode mode) private voidParser.parseCompatibilityIdentityOptions(Column column) private voidParser.parseInsertSet(Insert command, Table table, Column[] columns) private voidParser.readColumnConstraints(CommandWithColumns command, Schema schema, String tableName, Column column) Method parameters in org.h2.command with type arguments of type Column -
Uses of Column in org.h2.command.ddl
Fields in org.h2.command.ddl declared as ColumnModifier and TypeFieldDescriptionprivate ColumnAlterSequence.columnprivate ColumnAlterTableAlterColumn.newColumnprivate ColumnAlterTableAlterColumn.oldColumnFields in org.h2.command.ddl with type parameters of type ColumnModifier and TypeFieldDescriptionCreateTableData.columnsThe column list.AlterTableAlterColumn.columnsToAddAlterTableAlterColumn.columnsToRemoveMethods in org.h2.command.ddl that return types with arguments of type ColumnMethods in org.h2.command.ddl with parameters of type ColumnModifier and TypeMethodDescriptionvoidprivate static StringBuilderAlterTableAlterColumn.addColumn(Column column, StringBuilder columnNames, StringBuilder columnValues) abstract voidAdd a column to this table.voidprivate voidAlterTableAlterColumn.checkClustering(Column c) private TableAlterTableAlterColumn.cloneTableStructure(Table table, Column[] columns, Database db, String tempName, ArrayList<Column> newColumns) private voidAlterTableAlterColumn.convertIdentityColumn(Table table, Column c) private booleanAlterDomainExpressions.copyColumn(Domain domain, Column targetColumn) private booleanDropDomain.copyColumn(Domain domain, Column targetColumn) voidSet 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.private TableAlterTableAlterColumn.cloneTableStructure(Table table, Column[] columns, Database db, String tempName, ArrayList<Column> newColumns) 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.private static booleanAlterDomain.forTable(SessionLocal session, Domain domain, BiPredicate<Domain, Column> columnProcessor, boolean recompileExpressions, Table t) 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
Fields in org.h2.command.dml declared as ColumnModifier and TypeFieldDescriptionprivate Column[]Insert.columnsprivate Column[]Merge.columnsprivate Column[]MergeUsing.WhenNotMatched.columnsprivate Column[]Merge.keysFields in org.h2.command.dml with type parameters of type ColumnModifier and TypeFieldDescriptionprivate HashMap<Column, Expression> Insert.duplicateKeyAssignmentMapFor MySQL-style INSERT ...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.(package private) voidSetClauseList.SetSimple.getSQL(StringBuilder builder, int sqlFlags, Column column) (package private) voidSetClauseList.UpdateAction.getSQL(StringBuilder builder, int sqlFlags, Column 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
Fields in org.h2.command.query declared as ColumnFields in org.h2.command.query with type parameters of type ColumnMethods in org.h2.command.query that return ColumnModifier and TypeMethodDescriptionSelectListColumnResolver.findColumn(String name) TableValueConstructor.TableValueColumnResolver.findColumn(String name) Column[]SelectListColumnResolver.getColumns()Column[]TableValueConstructor.TableValueColumnResolver.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.private intSelect.addExpandedColumn(TableFilter filter, int index, HashMap<Column, ExpressionColumn> except, String schema, String alias, Column c) 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) TableValueConstructor.TableValueColumnResolver.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) Method parameters in org.h2.command.query with type arguments of type ColumnModifier and TypeMethodDescriptionprivate intSelect.addExpandedColumn(TableFilter filter, int index, HashMap<Column, ExpressionColumn> except, String schema, String alias, Column c) private intSelect.expandColumnList(TableFilter filter, int index, boolean forAlias, HashMap<Column, ExpressionColumn> except) -
Uses of Column in org.h2.constraint
Fields in org.h2.constraint declared as ColumnMethods 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
Fields in org.h2.expression declared as ColumnModifier and TypeFieldDescriptionprivate ColumnExpressionColumn.columnprivate ColumnParameter.columnMethods 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 ColumnModifier and TypeMethodDescription(package private) voidExpressionVisitor.addColumn1(Column column) Add a new column to the set of columns.(package private) voidExpressionVisitor.addColumn2(Column column) Add a new column to the set of columns.private voidExpressionColumn.mapColumn(ColumnResolver resolver, Column col, int level) voidMethod 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
Fields in org.h2.expression.function.table declared as ColumnMethod 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 TypeFieldDescriptionprivate final ColumnIndexCondition.columnprotected Column[]Index.columnsTable columns used in this index.private ColumnIndexCursor.inColumnMethods 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 TypeMethodDescriptionprivate voidLinkedIndex.addParameter(StringBuilder builder, Column col) private booleanIndexCursor.canUseIndexFor(Column column) private booleanIndexCursor.canUseIndexForIn(Column column) intIndex.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.jdbc.meta
Methods in org.h2.jdbc.meta with parameters of type ColumnModifier and TypeMethodDescriptionprivate voidDatabaseMetaLocal.addPrivilege(SimpleResult result, Value catalogValue, Value schemaValue, Value tableValue, Value granteeValue, String right, boolean isAdmin, CompareLike columnLike, Column[] columns) private voidDatabaseMetaLocal.addPrivileges(SimpleResult result, Value catalogValue, String schemaName, String tableName, DbObject grantee, int rightMask, CompareLike columnLike, Column[] columns) private voidDatabaseMetaLocal.getPseudoColumnsAdd(SimpleResult result, Value catalogValue, Value schemaValue, Value tableName, CompareLike columnLike, Column c) -
Uses of Column in org.h2.mode
Fields in org.h2.mode declared as ColumnMethods in org.h2.mode with parameters of type ColumnModifier and TypeMethodDescriptionprivate voidPgCatalogTable.addAttribute(SessionLocal session, ArrayList<Row> rows, int id, int relId, Table table, Column column, int ordinal) Constructors in org.h2.mode with parameters of type Column -
Uses of Column in org.h2.mvstore.db
Fields in org.h2.mvstore.db declared as ColumnMethods 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.private Column[]GeneratedColumnResolver.columnsprotected Column[]Table.columnsThe columns of this table.private Column[]TableView.columnTemplatesFields in org.h2.table with type parameters of type ColumnModifier and TypeFieldDescriptionGeneratedColumnResolver.columnMapTable.columnMapprivate LinkedHashMap<Column, Column> TableFilter.commonJoinColumnsMap of common join columns, used for NATURAL joins and USING clause of other joins.private LinkedHashMap<Column, Column> TableFilter.commonJoinColumnsMap of common join columns, used for NATURAL joins and USING clause of other joins.TableFilter.commonJoinColumnsToExcludeprivate LinkedHashMap<Column, String> TableFilter.derivedColumnMapMap of derived column names.Methods in org.h2.table that return ColumnModifier and TypeMethodDescription(package private) final ColumnCreates a column with the specified name and character string data type.protected final ColumnCreates a column with the specified name and data type.private Column[]GeneratedColumnResolver.createColumns()ColumnResolver.findColumn(String name) Get the column with the specified name.GeneratedColumnResolver.findColumn(String 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[]GeneratedColumnResolver.getColumns()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.GeneratedColumnResolver.getRowIdColumn()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.private voidInformationSchemaTable.addConstraintColumnUsage(SessionLocal session, ArrayList<Row> rows, String catalog, Constraint constraint, Column column) private voidInformationSchemaTableLegacy.addConstraintColumnUsage(SessionLocal session, ArrayList<Row> rows, String catalog, Constraint constraint, Column column) private voidInformationSchemaTable.columns(SessionLocal session, ArrayList<Row> rows, String catalog, String mainSchemaName, String collation, Table table, String tableName, Column c, int ordinalPosition) 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) private ValueTableFilter.getDelegatedValue(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.private voidTableView.init(String querySQL, ArrayList<Parameter> params, Column[] columnTemplates, SessionLocal session, boolean allowRecursive, boolean literalsChecked, boolean isTableExpression) 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 TypeMethodDescriptionprivate voidstatic 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.private voidTableLink.readIndexes(DatabaseMetaData meta, HashMap<String, Column> columnMap) private voidprivate StringTableLink.readPrimaryKey(ResultSet rs, HashMap<String, Column> columnMap) 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)