org.h2.command.ddl
Class SchemaCommand

java.lang.Object
  extended by org.h2.command.Prepared
      extended by org.h2.command.ddl.DefineCommand
          extended by org.h2.command.ddl.SchemaCommand
Direct Known Subclasses:
AlterSequence, AlterTableAddConstraint, AlterTableAlterColumn, AlterTableDropConstraint, AlterTableRename, AlterTableSet, CreateConstant, CreateFunctionAlias, CreateIndex, CreateLinkedTable, CreateSequence, CreateTable, CreateTrigger, CreateView, DropConstant, DropFunctionAlias, DropIndex, DropSequence, DropTable, DropTrigger, DropView

public abstract class SchemaCommand
extends DefineCommand

This class represents a non-transaction statement that involves a schema.


Field Summary
 
Fields inherited from class org.h2.command.ddl.DefineCommand
transactional
 
Fields inherited from class org.h2.command.Prepared
create, parameters, prepareAlways, session, sqlStatement
 
Constructor Summary
SchemaCommand(Session session, Schema schema)
          Create a new command.
 
Method Summary
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, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSQL, getSQL, getSQL, getType, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCurrentRowNumber, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toString, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SchemaCommand

public SchemaCommand(Session session,
                     Schema schema)
Create a new command.

Parameters:
session - the session
schema - the schema
Method Detail

getSchema

protected Schema getSchema()
Get the schema

Returns:
the schema