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 boolean
checkExisting
private boolean
ifTableExists
private java.lang.String
tableName
private int
type
private boolean
value
-
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 int
getType()
Get the command type as defined in CommandInterfaceboolean
isTransactional()
Check if this command is transactional.void
setCheckExisting(boolean b)
void
setIfTableExists(boolean b)
void
setTableName(java.lang.String tableName)
long
update()
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:Prepared
Check if this command is transactional. If it is not, then it forces the current transaction to commit.- Overrides:
isTransactional
in 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:Prepared
Execute the statement.
-
-