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
This class represents the statement
ALTER TABLE SET
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private String
private final int
private final boolean
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 -
Method Summary
Modifier and TypeMethodDescriptionint
getType()
Get the command type as defined in CommandInterfaceboolean
Check if this command is transactional.void
setCheckExisting
(boolean b) void
setIfTableExists
(boolean b) void
setTableName
(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
-
Field Details
-
ifTableExists
private boolean ifTableExists -
tableName
-
type
private final int type -
value
private final boolean value -
checkExisting
private boolean checkExisting
-
-
Constructor Details
-
AlterTableSet
-
-
Method Details
-
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
-
update
public long update()Description copied from class:Prepared
Execute the statement. -
getType
public int getType()Description copied from class:Prepared
Get the command type as defined in CommandInterface
-