Uses of Class
org.h2.schema.Schema
Packages that use Schema
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.
Database constraints such as check constraints, unique constraints, and referential constraints.
Contains high level classes of the database and classes that don't fit in another sub-package.
Utility classes for compatibility with other database, for example MySQL.
Schema implementation and objects that are stored in a schema (for example, sequences and constants).
Classes related to a table and table meta data.
-
Uses of Schema in org.h2.command
Methods in org.h2.command with parameters of type SchemaModifier and TypeMethodDescriptionstatic AlterTableAddConstraintParser.newPrimaryKeyConstraintCommand(SessionLocal session, Schema schema, String tableName, Column column) Create a new alter table command. -
Uses of Schema in org.h2.command.ddl
Fields in org.h2.command.ddl declared as SchemaModifier and TypeFieldDescriptionCreateSynonymData.schemaThe schema.CreateTableData.schemaThe schema.CreateSynonymData.synonymForSchemaSchema synonymFor is located in.Methods in org.h2.command.ddl that return SchemaModifier and TypeMethodDescriptionprotected final SchemaSchemaCommand.getSchema()Get the schemaMethods in org.h2.command.ddl with parameters of type SchemaModifier and TypeMethodDescriptionvoidAdd a table to drop.voidAlterIndexRename.setOldSchema(Schema old) voidAlterSchemaRename.setOldSchema(Schema schema) voidAlterTableAddConstraint.setRefTableName(Schema refSchema, String ref) Set the referenced table.voidSet the specified schemavoidCreateSynonym.setSynonymForSchema(Schema synonymForSchema) Constructors in org.h2.command.ddl with parameters of type SchemaModifierConstructorDescriptionAlterDomainAddConstraint(SessionLocal session, Schema schema, boolean ifNotExists) AlterDomainDropConstraint(SessionLocal session, Schema schema, boolean ifConstraintExists) AlterDomainExpressions(SessionLocal session, Schema schema, int type) AlterDomainRename(SessionLocal session, Schema schema) AlterDomainRenameConstraint(SessionLocal session, Schema schema) AlterSequence(SessionLocal session, Schema schema) AlterTableAddConstraint(SessionLocal session, Schema schema, int type, boolean ifNotExists) AlterTableAlterColumn(SessionLocal session, Schema schema) AlterTableDropConstraint(SessionLocal session, Schema schema, boolean ifExists) AlterTableRename(SessionLocal session, Schema schema) AlterTableRenameColumn(SessionLocal session, Schema schema) AlterTableRenameConstraint(SessionLocal session, Schema schema) protectedCommandWithColumns(SessionLocal session, Schema schema) CreateAggregate(SessionLocal session, Schema schema) CreateConstant(SessionLocal session, Schema schema) CreateDomain(SessionLocal session, Schema schema) CreateFunctionAlias(SessionLocal session, Schema schema) CreateIndex(SessionLocal session, Schema schema) CreateLinkedTable(SessionLocal session, Schema schema) CreateSequence(SessionLocal session, Schema schema) CreateSynonym(SessionLocal session, Schema schema) CreateTable(SessionLocal session, Schema schema) CreateTrigger(SessionLocal session, Schema schema) CreateView(SessionLocal session, Schema schema) DropAggregate(SessionLocal session, Schema schema) DropConstant(SessionLocal session, Schema schema) DropDomain(SessionLocal session, Schema schema) DropFunctionAlias(SessionLocal session, Schema schema) DropIndex(SessionLocal session, Schema schema) DropSequence(SessionLocal session, Schema schema) DropSynonym(SessionLocal session, Schema schema) DropTrigger(SessionLocal session, Schema schema) DropView(SessionLocal session, Schema schema) SchemaCommand(SessionLocal session, Schema schema) Create a new command. -
Uses of Schema in org.h2.command.dml
Constructors in org.h2.command.dml with parameters of type SchemaModifierConstructorDescriptionAlterTableSet(SessionLocal session, Schema schema, int type, boolean value) -
Uses of Schema in org.h2.constraint
Constructors in org.h2.constraint with parameters of type SchemaModifierConstructorDescriptionConstraintCheck(Schema schema, int id, String name, Table table) ConstraintDomain(Schema schema, int id, String name, Domain domain) ConstraintReferential(Schema schema, int id, String name, Table table) ConstraintUnique(Schema schema, int id, String name, Table table, boolean primaryKey) -
Uses of Schema in org.h2.engine
Methods in org.h2.engine that return SchemaModifier and TypeMethodDescriptionDatabase.findSchema(String schemaName) Get the schema if it exists, or null if not.Database.getMainSchema()Returns main schema (usually PUBLIC).Get the schema.Methods in org.h2.engine that return types with arguments of type SchemaMethods in org.h2.engine with parameters of type SchemaModifier and TypeMethodDescriptionvoidUser.checkSchemaOwner(Schema schema) Checks if this user has schema owner rights for the specified schema.voidSessionLocal.setCurrentSchema(Schema schema) -
Uses of Schema in org.h2.mode
Subclasses of Schema in org.h2.modeConstructors in org.h2.mode with parameters of type SchemaModifierConstructorDescriptionPgCatalogTable(Schema schema, int id, int type) Create a new metadata table. -
Uses of Schema in org.h2.schema
Subclasses of Schema in org.h2.schemaModifier and TypeClassDescriptionfinal classInformation schema.classMeta data schema.Methods in org.h2.schema that return SchemaModifier and TypeMethodDescriptionfinal SchemaSchemaObject.getSchema()Get the schema in which this object is definedMethods in org.h2.schema with parameters of type SchemaModifier and TypeMethodDescriptionstatic FunctionAliasFunctionAlias.newInstance(Schema schema, int id, String name, String javaClassMethod, boolean force) Create a new alias based on a method name.static FunctionAliasFunctionAlias.newInstanceFromSource(Schema schema, int id, String name, String source, boolean force) Create a new alias based on source code.Constructors in org.h2.schema with parameters of type SchemaModifierConstructorDescriptionprotectedSchemaObject(Schema newSchema, int id, String name, int traceModuleId) Initialize some attributes of this object.Sequence(SessionLocal session, Schema schema, int id, String name, SequenceOptions options, boolean belongsToTable) Creates a new sequence.TriggerObject(Schema schema, int id, String name, Table table) UserAggregate(Schema schema, int id, String name, String className, boolean force) -
Uses of Schema in org.h2.table
Methods in org.h2.table that return SchemaMethods in org.h2.table with parameters of type SchemaModifier and TypeMethodDescriptionstatic TableTableView.createShadowTableForRecursiveTableExpression(boolean isTemporary, SessionLocal targetSession, String cteViewName, Schema schema, List<Column> columns, Database db) Create a table for a recursive query.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.voidColumn.initializeSequence(SessionLocal session, Schema schema, int id, boolean temporary) Initialize the sequence for this column.Constructors in org.h2.table with parameters of type SchemaModifierConstructorDescriptionDataChangeDeltaTable(Schema schema, SessionLocal session, DataChangeStatement statement, DataChangeDeltaTable.ResultOption resultOption) FunctionTable(Schema schema, SessionLocal session, TableFunction function) InformationSchemaTable(Schema schema, int id, int type) Create a new metadata table.InformationSchemaTableLegacy(Schema schema, int id, int type) Create a new metadata table.protectedCreate a new metadata table.RangeTable(Schema schema, Expression min, Expression max) Create a new range with the given start and end expressions.RangeTable(Schema schema, Expression min, Expression max, Expression step) protectedTableLink(Schema schema, int id, String name, String driver, String url, String user, String password, String originalSchema, String originalTable, boolean emitUpdates, boolean force) 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) protectedVirtualConstructedTable(Schema schema, int id, String name) protectedVirtualTable(Schema schema, int id, String name)