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
This class represents the statement
CREATE VIEW
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String[]private Stringprivate booleanprivate booleanprivate booleanprivate booleanprivate Queryprivate Stringprivate StringFields inherited from class org.h2.command.ddl.DefineCommand
transactionalFields inherited from class org.h2.command.Prepared
create, parameters, prepareAlways, session, sqlStatement, sqlTokens -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetType()Get the command type as defined in CommandInterfacevoidsetColumnNames(String[] cols) voidsetComment(String comment) voidsetForce(boolean force) voidsetIfNotExists(boolean ifNotExists) voidsetOrReplace(boolean orReplace) voidvoidsetSelectSQL(String selectSQL) voidsetTableExpression(boolean isTableExpression) voidsetViewName(String name) (package private) longMethods inherited from class org.h2.command.ddl.SchemaOwnerCommand
updateMethods inherited from class org.h2.command.ddl.SchemaCommand
getSchemaMethods inherited from class org.h2.command.ddl.DefineCommand
isReadOnly, isTransactional, queryMeta, setTransactionalMethods 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 Details
-
select
-
viewName
-
ifNotExists
private boolean ifNotExists -
selectSQL
-
columnNames
-
comment
-
orReplace
private boolean orReplace -
force
private boolean force -
isTableExpression
private boolean isTableExpression
-
-
Constructor Details
-
CreateView
-
-
Method Details
-
setViewName
-
setSelect
-
setIfNotExists
public void setIfNotExists(boolean ifNotExists) -
setSelectSQL
-
setColumnNames
-
setComment
-
setOrReplace
public void setOrReplace(boolean orReplace) -
setForce
public void setForce(boolean force) -
setTableExpression
public void setTableExpression(boolean isTableExpression) -
update
- Specified by:
updatein classSchemaOwnerCommand
-
getType
public int getType()Description copied from class:PreparedGet the command type as defined in CommandInterface
-