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

public Class TruncateTable

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

This class represents the statement TRUNCATE TABLE

Field Summary

Modifier and TypeField and Description
private boolean
private Table
Inherited from org.h2.command.ddl.DefineCommand:
transactional

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 void
setRestart(boolean restart)

public void
setTable(Table table)

public long
update()

Overrides org.h2.command.Prepared.update.

Execute the statement.

Inherited from org.h2.command.ddl.DefineCommand:
isReadOnlyisRetryableisTransactionalqueryMetasetTransactional

Field Detail

restartback to summary
private boolean restart
tableback to summary
private Table table

Constructor Detail

TruncateTableback to summary
public TruncateTable(SessionLocal session)

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
setRestartback to summary
public void setRestart(boolean restart)
setTableback to summary
public void setTable(Table table)
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