Top Description Fields Constructors Methods
org.h2.command.dml

public Class AlterTableSet

extends SchemaCommand
Class Inheritance
Imports
org.h2.api.ErrorCode, org.h2.command.CommandInterface, org.h2.command.ddl.SchemaCommand, org.h2.engine.Right, .SessionLocal, org.h2.message.DbException, org.h2.schema.Schema, org.h2.table.Table

This class represents the statement ALTER TABLE SET

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private String
private final int
private final boolean

Constructor Summary

AccessConstructor and Description
public
AlterTableSet(SessionLocal session, Schema schema, int type, boolean value)

Method Summary

Modifier and TypeMethod and Description
public int
getType()

Implements abstract org.h2.command.Prepared.getType.

Get the command type as defined in CommandInterface

public boolean
isTransactional()

Overrides org.h2.command.ddl.DefineCommand.isTransactional.

Check if this command is transactional.

public void
setCheckExisting(boolean b)

public void
setIfTableExists(boolean b)

public void
setTableName(String tableName)

public long
update()

Overrides org.h2.command.Prepared.update.

Execute the statement.

Inherited from org.h2.command.ddl.SchemaCommand:
getSchema

Field Detail

checkExistingback to summary
private boolean checkExisting
ifTableExistsback to summary
private boolean ifTableExists
tableNameback to summary
private String tableName
typeback to summary
private final int type
valueback to summary
private final boolean value

Constructor Detail

AlterTableSetback to summary
public AlterTableSet(SessionLocal session, Schema schema, int type, boolean value)

Method Detail

getTypeback to summary
public int getType()

Implements abstract org.h2.command.Prepared.getType.

Doc from org.h2.command.Prepared.getType.

Get the command type as defined in CommandInterface

Returns:int

the statement type

Annotations
@Override
isTransactionalback to summary
public boolean isTransactional()

Overrides org.h2.command.ddl.DefineCommand.isTransactional.

Doc from org.h2.command.Prepared.isTransactional.

Check if this command is transactional. If it is not, then it forces the current transaction to commit.

Returns:boolean

true if it is

Annotations
@Override
setCheckExistingback to summary
public void setCheckExisting(boolean b)
setIfTableExistsback to summary
public void setIfTableExists(boolean b)
setTableNameback to summary
public void setTableName(String tableName)
updateback to summary
public long update()

Overrides org.h2.command.Prepared.update.

Doc from org.h2.command.Prepared.update.

Execute the statement.

Returns:long

the update count

Annotations
@Override