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

public Class CreateView

extends SchemaOwnerCommand
Class Inheritance
Imports
java.util.ArrayList, org.h2.api.ErrorCode, org.h2.command.CommandInterface, org.h2.command.query.Query, org.h2.engine.Database, .SessionLocal, org.h2.expression.Parameter, org.h2.message.DbException, org.h2.schema.Schema, org.h2.table.Column, .Table, .TableType, .TableView, org.h2.util.HasSQL, org.h2.value.TypeInfo

This class represents the statement CREATE VIEW

Field Summary

Modifier and TypeField and Description
private String[]
private String
private boolean
private boolean
private boolean
private Query
private String
private String

Constructor Summary

AccessConstructor and Description
public
CreateView(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
setComment(String comment)

public void
setForce(boolean force)

public void
setIfNotExists(boolean ifNotExists)

public void
setOrReplace(boolean orReplace)

public void
setQuery(Query select)

public void
setSelectSQL(String selectSQL)

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

Field Detail

columnNamesback to summary
private String[] columnNames
commentback to summary
private String comment
forceback to summary
private boolean force
ifNotExistsback to summary
private boolean ifNotExists
orReplaceback to summary
private boolean orReplace
queryback to summary
private Query query
selectSQLback to summary
private String selectSQL
viewNameback to summary
private String viewName

Constructor Detail

CreateViewback to summary
public CreateView(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
setColumnNamesback to summary
public void setColumnNames(String[] cols)
setCommentback to summary
public void setComment(String comment)
setForceback to summary
public void setForce(boolean force)
setIfNotExistsback to summary
public void setIfNotExists(boolean ifNotExists)
setOrReplaceback to summary
public void setOrReplace(boolean orReplace)
setQueryback to summary
public void setQuery(Query select)
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