Package org.h2.command.ddl
Class CreateView
- java.lang.Object
-
- org.h2.command.Prepared
-
- org.h2.command.ddl.DefineCommand
-
- org.h2.command.ddl.SchemaCommand
-
- org.h2.command.ddl.SchemaOwnerCommand
-
- org.h2.command.ddl.CreateView
-
public class CreateView extends SchemaOwnerCommand
This class represents the statement CREATE VIEW
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]columnNamesprivate java.lang.Stringcommentprivate booleanforceprivate booleanifNotExistsprivate booleanisTableExpressionprivate booleanorReplaceprivate Queryselectprivate java.lang.StringselectSQLprivate java.lang.StringviewName-
Fields inherited from class org.h2.command.ddl.DefineCommand
transactional
-
Fields inherited from class org.h2.command.Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens
-
-
Constructor Summary
Constructors Constructor Description CreateView(SessionLocal session, Schema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetType()Get the command type as defined in CommandInterfacevoidsetColumnNames(java.lang.String[] cols)voidsetComment(java.lang.String comment)voidsetForce(boolean force)voidsetIfNotExists(boolean ifNotExists)voidsetOrReplace(boolean orReplace)voidsetSelect(Query select)voidsetSelectSQL(java.lang.String selectSQL)voidsetTableExpression(boolean isTableExpression)voidsetViewName(java.lang.String name)(package private) longupdate(Schema schema)-
Methods inherited from class org.h2.command.ddl.SchemaOwnerCommand
update
-
Methods inherited from class org.h2.command.ddl.SchemaCommand
getSchema
-
Methods inherited from class org.h2.command.ddl.DefineCommand
isReadOnly, isTransactional, queryMeta, setTransactional
-
Methods inherited from class org.h2.command.Prepared
checkCanceled, checkParameters, collectDependencies, getCteCleanups, getCurrentRowNumber, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, toString
-
-
-
-
Field Detail
-
select
private Query select
-
viewName
private java.lang.String viewName
-
ifNotExists
private boolean ifNotExists
-
selectSQL
private java.lang.String selectSQL
-
columnNames
private java.lang.String[] columnNames
-
comment
private java.lang.String comment
-
orReplace
private boolean orReplace
-
force
private boolean force
-
isTableExpression
private boolean isTableExpression
-
-
Constructor Detail
-
CreateView
public CreateView(SessionLocal session, Schema schema)
-
-
Method Detail
-
setViewName
public void setViewName(java.lang.String name)
-
setSelect
public void setSelect(Query select)
-
setIfNotExists
public void setIfNotExists(boolean ifNotExists)
-
setSelectSQL
public void setSelectSQL(java.lang.String selectSQL)
-
setColumnNames
public void setColumnNames(java.lang.String[] cols)
-
setComment
public void setComment(java.lang.String comment)
-
setOrReplace
public void setOrReplace(boolean orReplace)
-
setForce
public void setForce(boolean force)
-
setTableExpression
public void setTableExpression(boolean isTableExpression)
-
update
long update(Schema schema)
- Specified by:
updatein classSchemaOwnerCommand
-
-