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

public Class AlterSequence

extends SchemaOwnerCommand
Class Inheritance
Imports
org.h2.api.ErrorCode, org.h2.command.CommandInterface, org.h2.engine.Right, .SessionLocal, org.h2.message.DbException, org.h2.schema.Schema, .Sequence, org.h2.table.Column

This class represents the statement ALTER SEQUENCE.

Field Summary

Modifier and TypeField and Description
private Boolean
private Column
private boolean
private SequenceOptions
private Sequence
private String

Constructor Summary

AccessConstructor and Description
public

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
setColumn(Column
the column
column
,
Boolean
whether value should be always generated, or null if "set generated is not specified
always
)

Set the column

public void
setIfExists(boolean b)

public void
public void
setSequenceName(String sequenceName)

pack-priv long
Inherited from org.h2.command.ddl.SchemaOwnerCommand:
update

Field Detail

alwaysback to summary
private Boolean always
columnback to summary
private Column column
ifExistsback to summary
private boolean ifExists
optionsback to summary
private SequenceOptions options
sequenceback to summary
private Sequence sequence
sequenceNameback to summary
private String sequenceName

Constructor Detail

AlterSequenceback to summary
public AlterSequence(SessionLocal session, Schema schema)

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
setColumnback to summary
public void setColumn(Column column, Boolean always)

Set the column

Parameters
column:Column

the column

always:Boolean

whether value should be always generated, or null if "set generated is not specified

setIfExistsback to summary
public void setIfExists(boolean b)
setOptionsback to summary
public void setOptions(SequenceOptions options)
setSequenceNameback to summary
public void setSequenceName(String sequenceName)
updateback to summary
pack-priv long update(Schema schema)

Implements abstract org.h2.command.ddl.SchemaOwnerCommand.update.

Annotations
@Override