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

public Class CreateMaterializedView

extends SchemaOwnerCommand
Class Inheritance
Imports
org.h2.api.ErrorCode, org.h2.command.CommandInterface, org.h2.command.query.Query, org.h2.engine.Database, .SessionLocal, org.h2.message.DbException, org.h2.schema.Schema, org.h2.table.MaterializedView, .Table, .TableType

This class represents the statement CREATE MATERIALIZED VIEW

Field Summary

Modifier and TypeField and Description
private String
private final CreateTable
createTable

Re-use the CREATE TABLE functionality to avoid duplicating a bunch of logic

private boolean
private boolean
private Query
private String
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 void
setComment(String comment)

public void
setIfNotExists(boolean ifNotExists)

public void
setOrReplace(boolean orReplace)

public void
public void
setSelectSQL(String selectSQL)

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

Field Detail

commentback to summary
private String comment
createTableback to summary
private final CreateTable createTable

Re-use the CREATE TABLE functionality to avoid duplicating a bunch of logic

ifNotExistsback to summary
private boolean ifNotExists
orReplaceback to summary
private boolean orReplace
selectback to summary
private Query select
selectSQLback to summary
private String selectSQL
viewNameback to summary
private String viewName

Constructor Detail

CreateMaterializedViewback to summary
public CreateMaterializedView(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
setCommentback to summary
public void setComment(String comment)
setIfNotExistsback to summary
public void setIfNotExists(boolean ifNotExists)
setOrReplaceback to summary
public void setOrReplace(boolean orReplace)
setSelectback to summary
public void setSelect(Query query)
setSelectSQLback to summary
public void setSelectSQL(String selectSQL)
setViewNameback to summary
public void setViewName(String name)
updateback to summary
pack-priv long update(Schema schema)

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

Annotations
@Override