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.
Implementation of the JDBC database metadata API (package java.sql).
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 that return SchemaModifier and TypeMethodDescriptionprivate Schema
Parser.findSchema
(String schemaName) private Schema
Parser.getSchema()
private Schema
private Schema
Parser.getSchemaWithDefault()
Methods in org.h2.command with parameters of type SchemaModifier and TypeMethodDescriptionprivate void
Parser.checkSchema
(Schema old) private Column
Parser.columnIfTableExists
(Schema schema, String tableName, String columnName, boolean ifTableExists, boolean ifExists) private Prepared
Parser.commandIfTableExists
(Schema schema, String tableName, boolean ifTableExists, Prepared commandIfTableExists) private UserDefinedFunction
Parser.findUserDefinedFunctionWithinPath
(Schema schema, String name) private Prepared
Parser.getAlterTableAlterColumnDropDefaultExpression
(Schema schema, String tableName, boolean ifTableExists, Column column, int type) private FunctionAlias
Parser.getFunctionAliasWithinPath
(String name, Schema schema) static AlterTableAddConstraint
Parser.newPrimaryKeyConstraintCommand
(SessionLocal session, Schema schema, String tableName, Column column) Create a new alter table command.private AlterTableAlterColumn
Parser.parseAlterTableAddColumn
(String tableName, Schema schema, boolean ifTableExists) private Prepared
Parser.parseAlterTableAlter
(Schema schema, String tableName, boolean ifTableExists) private AlterTableAlterColumn
Parser.parseAlterTableAlterColumnDataType
(Schema schema, String tableName, String columnName, boolean ifTableExists, boolean ifExists) private Prepared
Parser.parseAlterTableAlterColumnIdentity
(Schema schema, String tableName, boolean ifTableExists, Column column) private Prepared
Parser.parseAlterTableAlterColumnSet
(Schema schema, String tableName, boolean ifTableExists, boolean ifExists, String columnName, Column column) private AlterTableAlterColumn
Parser.parseAlterTableAlterColumnType
(Schema schema, String tableName, String columnName, boolean ifTableExists, boolean ifExists, boolean preserveNotNull) private Prepared
Parser.parseAlterTableCompatibility
(Schema schema, String tableName, boolean ifTableExists, Mode mode) private Prepared
Parser.parseAlterTableDrop
(Schema schema, String tableName, boolean ifTableExists) private Prepared
Parser.parseAlterTableDropCompatibility
(Schema schema, String tableName, boolean ifTableExists) private Prepared
Parser.parseAlterTableRename
(Schema schema, String tableName, boolean ifTableExists) private Prepared
Parser.parseAlterTableSet
(Schema schema, String tableName, boolean ifTableExists) private void
Parser.parseReferences
(AlterTableAddConstraint command, Schema schema, String tableName) private void
Parser.parseTableColumnDefinition
(CommandWithColumns command, Schema schema, String tableName, boolean forCreateTable) private DefineCommand
Parser.parseTableConstraintIf
(String tableName, Schema schema, boolean ifTableExists) private void
Parser.readColumnConstraints
(CommandWithColumns command, Schema schema, String tableName, Column column) private Expression
Parser.readFunction
(Schema schema, String name) private Expression
Parser.readFunctionWithSchema
(Schema schema, String name, String upperName) private TableFunction
Parser.readTableFunction
(String name, Schema schema) private Expression
Parser.readUserDefinedFunctionIf
(Schema schema, String functionName) private Table
Parser.tableIfTableExists
(Schema schema, String tableName, boolean ifTableExists) -
Uses of Schema in org.h2.command.ddl
Fields in org.h2.command.ddl declared as SchemaModifier and TypeFieldDescriptionprivate Schema
AlterIndexRename.oldSchema
private Schema
AlterSchemaRename.oldSchema
private Schema
AlterTableAddConstraint.refSchema
CreateSynonymData.schema
The schema.CreateTableData.schema
The schema.(package private) final Schema
DropTable.SchemaAndTable.schema
private Schema
GrantRevoke.schema
private final Schema
SchemaCommand.schema
CreateSynonymData.synonymForSchema
Schema synonymFor is located in.Methods in org.h2.command.ddl that return SchemaModifier and TypeMethodDescriptionprotected final Schema
SchemaCommand.getSchema()
Get the schemaMethods in org.h2.command.ddl with parameters of type SchemaModifier and TypeMethodDescriptionvoid
Add a table to drop.void
AlterIndexRename.setOldSchema
(Schema old) void
AlterSchemaRename.setOldSchema
(Schema schema) void
AlterTableAddConstraint.setRefTableName
(Schema refSchema, String ref) Set the referenced table.void
Set the specified schemavoid
CreateSynonym.setSynonymForSchema
(Schema synonymForSchema) private int
Try to execute the statement.(package private) final long
(package private) abstract long
(package private) long
(package private) long
(package private) long
(package private) long
(package private) long
(package private) long
(package private) long
(package private) long
(package private) long
(package private) long
(package private) long
(package private) long
(package private) long
(package private) long
(package private) long
(package private) long
(package private) long
(package private) abstract long
Method parameters in org.h2.command.ddl with type arguments of type SchemaModifier and TypeMethodDescriptionprivate static void
DropDatabase.addAll
(Collection<Schema> schemas, int type, ArrayList<SchemaObject> list) Constructors in org.h2.command.ddl with parameters of type SchemaModifierConstructorDescription(package private)
AlterDomain
(SessionLocal session, Schema schema) AlterDomainAddConstraint
(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) (package private)
AlterTable
(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) protected
CommandWithColumns
(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) (package private)
SchemaAndTable
(Schema schema, String tableName) SchemaCommand
(SessionLocal session, Schema schema) Create a new command.(package private)
SchemaOwnerCommand
(SessionLocal session, Schema schema) Create a new command. -
Uses of Schema in org.h2.command.dml
Methods in org.h2.command.dml with parameters of type SchemaMethod parameters in org.h2.command.dml with type arguments of type SchemaModifier and TypeMethodDescriptionprivate void
ScriptCommand.dumpDomains
(ArrayList<Schema> schemas) 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 SchemaModifierConstructorDescription(package private)
Constraint
(Schema schema, int id, String name, Table table) ConstraintCheck
(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
Fields in org.h2.engine declared as SchemaModifier and TypeFieldDescriptionprivate final Schema
Database.infoSchema
private final Schema
Database.mainSchema
private final Schema
Database.pgCatalogSchema
Fields in org.h2.engine with type parameters of type SchemaMethods 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 TypeMethodDescriptionvoid
User.checkSchemaOwner
(Schema schema) Checks if this user has schema owner rights for the specified schema.private boolean
User.hasSchemaRight
(Schema schema) See if this user has owner rights for the specified schema(package private) final boolean
RightOwner.isSchemaRightGrantedRecursive
(Schema schema) Checks if a schema owner right is already granted to this object or to objects that were granted to this object.void
SessionLocal.setCurrentSchema
(Schema schema) -
Uses of Schema in org.h2.jdbc.meta
Methods in org.h2.jdbc.meta that return types with arguments of type SchemaModifier and TypeMethodDescriptionprivate Collection
<Schema> DatabaseMetaLocal.getSchemas
(String schema) private Collection
<Schema> DatabaseMetaLocal.getSchemasForPattern
(String schemaPattern) Methods in org.h2.jdbc.meta with parameters of type SchemaModifier and TypeMethodDescriptionprivate boolean
DatabaseMetaLocal.checkSchema
(String schemaName, Schema schema) private Collection
<? extends SchemaObject> DatabaseMetaLocal.getTablesForPattern
(Schema schema, String tablePattern) -
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 class
Information schema.class
Meta data schema.Fields in org.h2.schema declared as SchemaMethods in org.h2.schema that return SchemaModifier and TypeMethodDescriptionfinal Schema
SchemaObject.getSchema()
Get the schema in which this object is definedMethods in org.h2.schema with parameters of type SchemaModifier and TypeMethodDescriptionstatic FunctionAlias
FunctionAlias.newInstance
(Schema schema, int id, String name, String javaClassMethod, boolean force) Create a new alias based on a method name.static FunctionAlias
FunctionAlias.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 SchemaModifierConstructorDescriptionprivate
FunctionAlias
(Schema schema, int id, String name) protected
SchemaObject
(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) (package private)
UserDefinedFunction
(Schema newSchema, int id, String name, int traceModuleId) -
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 Table
TableView.createShadowTableForRecursiveTableExpression
(boolean isTemporary, SessionLocal targetSession, String cteViewName, Schema schema, List<Column> columns, Database db) Create a table for a recursive query.static TableView
TableView.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.void
Column.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.protected
Create 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) protected
TableLink
(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) protected
VirtualConstructedTable
(Schema schema, int id, String name) protected
VirtualTable
(Schema schema, int id, String name)