Package org.h2.command.ddl
Class DefineCommand
- java.lang.Object
-
- org.h2.command.Prepared
-
- org.h2.command.ddl.DefineCommand
-
- Direct Known Subclasses:
AlterIndexRename,AlterSchemaRename,AlterUser,AlterView,Analyze,CreateRole,CreateSchema,CreateUser,DeallocateProcedure,DropDatabase,DropRole,DropSchema,DropTable,DropUser,GrantRevoke,PrepareProcedure,SchemaCommand,SetComment,TruncateTable
public abstract class DefineCommand extends Prepared
This class represents a non-transaction statement, for example a CREATE or DROP.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleantransactionalThe transactional behavior.-
Fields inherited from class org.h2.command.Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisReadOnly()Check if this command is read only.booleanisRetryable()Returns is this command can be repeated on locking failure.booleanisTransactional()Check if this command is transactional.ResultInterfacequeryMeta()Get an empty result set containing the metadata.voidsetTransactional(boolean transactional)-
Methods inherited from class org.h2.command.Prepared
checkCanceled, checkParameters, collectDependencies, getCurrentRowNumber, getDatabase, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, getType, invalidateCachedResult, isCacheable, isQuery, isWithParamValues, needRecompile, prepare, query, setCommand, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, setWithParamValues, toString, update
-
-
-
-
Method Detail
-
isReadOnly
public boolean isReadOnly()
Description copied from class:PreparedCheck if this command is read only.- Overrides:
isReadOnlyin classPrepared- Returns:
- true if it is
-
queryMeta
public ResultInterface queryMeta()
Description copied from class:PreparedGet an empty result set containing the metadata.
-
setTransactional
public void setTransactional(boolean transactional)
-
isTransactional
public boolean isTransactional()
Description copied from class:PreparedCheck if this command is transactional. If it is not, then it forces the current transaction to commit.- Specified by:
isTransactionalin classPrepared- Returns:
- true if it is
-
isRetryable
public boolean isRetryable()
Description copied from class:PreparedReturns is this command can be repeated on locking failure.- Overrides:
isRetryablein classPrepared- Returns:
- is this command can be repeated on locking failure
-
-