Package org.h2.command.ddl
Class SchemaCommand
- java.lang.Object
-
- org.h2.command.Prepared
-
- org.h2.command.ddl.DefineCommand
-
- org.h2.command.ddl.SchemaCommand
-
- Direct Known Subclasses:
AlterTable
,AlterTableSet
,CommandWithColumns
,CreateAggregate
,CreateFunctionAlias
,CreateIndex
,CreateLinkedTable
,CreateTrigger
,DropIndex
,DropTrigger
,DropView
,SchemaOwnerCommand
public abstract class SchemaCommand extends DefineCommand
This class represents a non-transaction statement that involves a schema.
-
-
Field Summary
Fields Modifier and Type Field Description private Schema
schema
-
Fields inherited from class org.h2.command.ddl.DefineCommand
transactional
-
Fields inherited from class org.h2.command.Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens
-
-
Constructor Summary
Constructors Constructor Description SchemaCommand(SessionLocal session, Schema schema)
Create a new command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Schema
getSchema()
Get the schema-
Methods inherited from class org.h2.command.ddl.DefineCommand
isReadOnly, isTransactional, queryMeta, setTransactional
-
Methods inherited from class org.h2.command.Prepared
checkCanceled, checkParameters, collectDependencies, getCteCleanups, getCurrentRowNumber, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, getType, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, toString, update
-
-
-
-
Field Detail
-
schema
private final Schema schema
-
-
Constructor Detail
-
SchemaCommand
public SchemaCommand(SessionLocal session, Schema schema)
Create a new command.- Parameters:
session
- the sessionschema
- the schema
-
-
Method Detail
-
getSchema
protected final Schema getSchema()
Get the schema- Returns:
- the schema
-
-