Package org.h2.command.dml
Class AlterTableSet
- java.lang.Object
-
- org.h2.command.Prepared
-
- org.h2.command.ddl.DefineCommand
-
- org.h2.command.ddl.SchemaCommand
-
- org.h2.command.dml.AlterTableSet
-
public class AlterTableSet extends SchemaCommand
This class represents the statement ALTER TABLE SET
-
-
Field Summary
Fields Modifier and Type Field Description private booleancheckExistingprivate booleanifTableExistsprivate java.lang.StringtableNameprivate inttypeprivate booleanvalue-
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 AlterTableSet(SessionLocal session, Schema schema, int type, boolean value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetType()Get the command type as defined in CommandInterfacebooleanisTransactional()Check if this command is transactional.voidsetCheckExisting(boolean b)voidsetIfTableExists(boolean b)voidsetTableName(java.lang.String tableName)longupdate()Execute the statement.-
Methods inherited from class org.h2.command.ddl.SchemaCommand
getSchema
-
Methods inherited from class org.h2.command.ddl.DefineCommand
isReadOnly, queryMeta, setTransactional
-
Methods inherited from class org.h2.command.Prepared
checkCanceled, checkParameters, collectDependencies, getCteCleanups, getCurrentRowNumber, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, toString
-
-
-
-
Constructor Detail
-
AlterTableSet
public AlterTableSet(SessionLocal session, Schema schema, int type, boolean value)
-
-
Method Detail
-
setCheckExisting
public void setCheckExisting(boolean b)
-
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.- Overrides:
isTransactionalin classDefineCommand- Returns:
- true if it is
-
setIfTableExists
public void setIfTableExists(boolean b)
-
setTableName
public void setTableName(java.lang.String tableName)
-
update
public long update()
Description copied from class:PreparedExecute the statement.
-
-