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

public Class DropView

extends SchemaCommand
Class Inheritance
Imports
org.h2.api.ErrorCode, org.h2.command.CommandInterface, org.h2.constraint.ConstraintActionType, org.h2.engine.Database, .DbObject, .SessionLocal, org.h2.message.DbException, org.h2.schema.Schema, org.h2.table.Table, .TableType, .TableView

This class represents the statement DROP VIEW

Field Summary

Modifier and TypeField and Description
private ConstraintActionType
private boolean
private String

Constructor Summary

AccessConstructor and Description
public
DropView(SessionLocal session, Schema schema)

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
public void
setIfExists(boolean b)

public void
setViewName(String viewName)

public long
update()

Overrides org.h2.command.Prepared.update.

Execute the statement.

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

Field Detail

dropActionback to summary
private ConstraintActionType dropAction
ifExistsback to summary
private boolean ifExists
viewNameback to summary
private String viewName

Constructor Detail

DropViewback to summary
public DropView(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
setDropActionback to summary
public void setDropAction(ConstraintActionType dropAction)
setIfExistsback to summary
public void setIfExists(boolean b)
setViewNameback to summary
public void setViewName(String viewName)
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