Top Description Fields Constructors Methods
org.h2.command.ddl

public abstract Class DefineCommand

extends Prepared
Class Inheritance
Known Direct Subclasses
org.h2.command.ddl.DropDatabase, org.h2.command.ddl.DropRole, org.h2.command.ddl.DropSchema, org.h2.command.ddl.DropTable, org.h2.command.ddl.DropUser, org.h2.command.ddl.GrantRevoke, org.h2.command.ddl.PrepareProcedure, org.h2.command.ddl.SchemaCommand, org.h2.command.ddl.SetComment, org.h2.command.ddl.TruncateTable, org.h2.command.ddl.AlterIndexRename, org.h2.command.ddl.AlterSchemaRename, org.h2.command.ddl.AlterUser, org.h2.command.ddl.AlterView, org.h2.command.ddl.Analyze, org.h2.command.ddl.CreateRole, org.h2.command.ddl.CreateSchema, org.h2.command.ddl.CreateUser, org.h2.command.ddl.DeallocateProcedure
Imports
org.h2.command.Prepared, org.h2.engine.SessionLocal, org.h2.result.ResultInterface

This class represents a non-transaction statement, for example a CREATE or DROP.

Field Summary

Modifier and TypeField and Description
protected boolean
transactional

The transactional behavior.

Inherited from org.h2.command.Prepared:
createparametersprepareAlwayssessionsqlStatementsqlTokens

Constructor Summary

AccessConstructor and Description
pack-priv
DefineCommand(SessionLocal
the session
session
)

Create a new command for the given session.

Method Summary

Modifier and TypeMethod and Description
public boolean
isReadOnly()

Overrides org.h2.command.Prepared.isReadOnly.

Check if this command is read only.

public boolean
isRetryable()

Overrides org.h2.command.Prepared.isRetryable.

Returns is this command can be repeated again on locking failure.

public boolean
isTransactional()

Implements abstract org.h2.command.Prepared.isTransactional.

Check if this command is transactional.

public ResultInterface
queryMeta()

Implements abstract org.h2.command.Prepared.queryMeta.

Get an empty result set containing the meta data.

public void
setTransactional(boolean transactional)

Inherited from org.h2.command.Prepared:
checkCanceledcheckParameterscollectDependenciesgetCurrentRowNumbergetDatabasegetObjectIdgetParametersgetPersistedObjectIdgetPlanSQLgetPlanSQLgetSessiongetSimpleSQLgetSQLgetSQLTokensgetTypeisCacheableisQueryisWithParamValuesneedRecompilepreparequerysetCommandsetCurrentRowNumbersetParameterListsetPersistedObjectIdsetPrepareAlwayssetRowsetSessionsetSQLsetWithParamValuestoStringupdate

Field Detail

transactionalback to summary
protected boolean transactional

The transactional behavior. The default is disabled, meaning the command commits an open transaction.

Constructor Detail

DefineCommandback to summary
pack-priv DefineCommand(SessionLocal session)

Create a new command for the given session.

Parameters
session:SessionLocal

the session

Method Detail

isReadOnlyback to summary
public boolean isReadOnly()

Overrides org.h2.command.Prepared.isReadOnly.

Doc from org.h2.command.Prepared.isReadOnly.

Check if this command is read only.

Returns:boolean

true if it is

Annotations
@Override
isRetryableback to summary
public boolean isRetryable()

Overrides org.h2.command.Prepared.isRetryable.

Doc from org.h2.command.Prepared.isRetryable.

Returns is this command can be repeated again on locking failure.

Returns:boolean

is this command can be repeated again on locking failure

Annotations
@Override
isTransactionalback to summary
public boolean isTransactional()

Implements abstract org.h2.command.Prepared.isTransactional.

Doc from org.h2.command.Prepared.isTransactional.

Check if this command is transactional. If it is not, then it forces the current transaction to commit.

Returns:boolean

true if it is

Annotations
@Override
queryMetaback to summary
public ResultInterface queryMeta()

Implements abstract org.h2.command.Prepared.queryMeta.

Doc from org.h2.command.Prepared.queryMeta.

Get an empty result set containing the meta data.

Returns:ResultInterface

the result set

Annotations
@Override
setTransactionalback to summary
public void setTransactional(boolean transactional)