- java.lang.Object
-
- net.sf.jsqlparser.statement.create.view.CreateView
-
public class CreateView extends java.lang.Object implements Statement
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private AutoRefreshOption
autoRefresh
private ExpressionList<Column>
columnNames
private ForceOption
force
private boolean
ifNotExists
private boolean
materialized
private boolean
orReplace
private boolean
secure
private Select
select
private TemporaryOption
temp
private Table
view
private java.util.List<java.lang.String>
viewCommentOptions
private boolean
withReadOnly
-
Constructor Summary
Constructors Constructor Description CreateView()
-
Method Summary
-
-
-
Field Detail
-
view
private Table view
-
select
private Select select
-
orReplace
private boolean orReplace
-
columnNames
private ExpressionList<Column> columnNames
-
materialized
private boolean materialized
-
force
private ForceOption force
-
secure
private boolean secure
-
temp
private TemporaryOption temp
-
autoRefresh
private AutoRefreshOption autoRefresh
-
withReadOnly
private boolean withReadOnly
-
ifNotExists
private boolean ifNotExists
-
viewCommentOptions
private java.util.List<java.lang.String> viewCommentOptions
-
-
Method Detail
-
accept
public <T,S> T accept(StatementVisitor<T> statementVisitor, S context)
-
getView
public Table getView()
-
setView
public void setView(Table view)
-
isOrReplace
public boolean isOrReplace()
-
setOrReplace
public void setOrReplace(boolean orReplace)
- Parameters:
orReplace
- was "OR REPLACE" specified?
-
getSelect
public Select getSelect()
-
setSelect
public void setSelect(Select select)
-
getColumnNames
public ExpressionList<Column> getColumnNames()
-
setColumnNames
public void setColumnNames(ExpressionList<Column> columnNames)
-
isMaterialized
public boolean isMaterialized()
-
setMaterialized
public void setMaterialized(boolean materialized)
-
getForce
public ForceOption getForce()
-
setForce
public void setForce(ForceOption force)
-
isSecure
public boolean isSecure()
-
setSecure
public void setSecure(boolean secure)
-
getTemporary
public TemporaryOption getTemporary()
-
setTemporary
public void setTemporary(TemporaryOption temp)
-
getAutoRefresh
public AutoRefreshOption getAutoRefresh()
-
setAutoRefresh
public void setAutoRefresh(AutoRefreshOption autoRefresh)
-
isWithReadOnly
public boolean isWithReadOnly()
-
setWithReadOnly
public void setWithReadOnly(boolean withReadOnly)
-
isIfNotExists
public boolean isIfNotExists()
-
setIfNotExists
public void setIfNotExists(boolean ifNotExists)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
appendForceOptionIfApplicable
private void appendForceOptionIfApplicable(java.lang.StringBuilder sql)
-
withView
public CreateView withView(Table view)
-
withSelect
public CreateView withSelect(Select select)
-
withOrReplace
public CreateView withOrReplace(boolean orReplace)
-
withColumnNames
public CreateView withColumnNames(ExpressionList<Column> columnNames)
-
withMaterialized
public CreateView withMaterialized(boolean materialized)
-
withForce
public CreateView withForce(ForceOption force)
-
withWithReadOnly
public CreateView withWithReadOnly(boolean withReadOnly)
-
getViewCommentOptions
public java.util.List<java.lang.String> getViewCommentOptions()
-
setViewCommentOptions
public void setViewCommentOptions(java.util.List<java.lang.String> viewCommentOptions)
-
-