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
This class represents a non-transaction statement, for example a CREATE or
DROP.
-
Field Summary
FieldsFields inherited from class org.h2.command.Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if this command is read only.booleanReturns is this command can be repeated again on locking failure.booleanCheck if this command is transactional.Get an empty result set containing the meta data.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, isCacheable, isQuery, isWithParamValues, needRecompile, prepare, query, setCommand, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, setWithParamValues, toString, update
-
Field Details
-
transactional
protected boolean transactionalThe transactional behavior. The default is disabled, meaning the command commits an open transaction.
-
-
Method Details
-
isReadOnly
public boolean isReadOnly()Description copied from class:PreparedCheck if this command is read only.- Overrides:
isReadOnlyin classPrepared- Returns:
- true if it is
-
queryMeta
Description copied from class:PreparedGet an empty result set containing the meta data. -
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 again on locking failure.- Overrides:
isRetryablein classPrepared- Returns:
- is this command can be repeated again on locking failure
-