public class CreateViewQuery extends BaseCreateQuery<CreateViewQuery>
_columns, _object
ALL_SYMBOL, NULL_VALUE, QUESTION_MARK
Constructor and Description |
---|
CreateViewQuery(Object tableStr)
|
CreateViewQuery(Table table) |
Modifier and Type | Method and Description |
---|---|
CreateViewQuery |
addCustomColumns(Object... columnStrs)
Adds the given SqlObjects as column descriptions, according to the
subclass type.
|
protected void |
appendTo(AppendableExt app,
SqlContext newContext)
Appends the sql query to the given AppendableExt within the given,
modifiable SqlContext.
|
protected void |
collectSchemaObjects(ValidationContext vContext)
Used during Query.validate() calls to collect the dbschema objects
referenced in a query.
|
DropQuery |
getDropQuery() |
CreateViewQuery |
setSelectQuery(SelectQuery selectQuery)
Sets the SELECT query which will generate the data in the view
|
CreateViewQuery |
setWithCheckOption(boolean withCheckOption)
Sets whether or not inserts/updates to the view are required to affect
rows with are in fact visible to the view.
|
void |
validate(ValidationContext vContext)
Runs validation on this verifiable object using a previously collected
ValidationContext.
|
addColumns, setCustomName, setName
appendTo, getThisType, prependTo, validate, validateTables
addCustomization, customAppendTo, customAppendTo, maybeAppendTo, maybeAppendTo
collectSchemaObjects, doValidate, toString
toString, toString
public CreateViewQuery(Table table)
table
- the view to createpublic CreateViewQuery(Object tableStr)
public DropQuery getDropQuery()
getDropQuery
in class BaseCreateQuery<CreateViewQuery>
public CreateViewQuery addCustomColumns(Object... columnStrs)
Object
-> SqlObject
conversions handled by
Converter.CUSTOM_COLUMN_TO_OBJ
.
addCustomColumns
in class BaseCreateQuery<CreateViewQuery>
public CreateViewQuery setSelectQuery(SelectQuery selectQuery)
public CreateViewQuery setWithCheckOption(boolean withCheckOption)
protected void collectSchemaObjects(ValidationContext vContext)
SqlObject
collectSchemaObjects
in class BaseCreateQuery<CreateViewQuery>
vContext
- handle to the current validation contextpublic void validate(ValidationContext vContext) throws ValidationException
Verifiable
In general, this method will only be called internally, not by users.
validate
in interface Verifiable<CreateViewQuery>
validate
in class BaseCreateQuery<CreateViewQuery>
vContext
- handle to the current, filled-in validation contextValidationException
protected void appendTo(AppendableExt app, SqlContext newContext) throws IOException
Query
Query.appendTo(AppendableExt)
method within the context of calls to
SqlContext.pushContext(com.healthmarketscience.common.util.AppendableExt)
and SqlContext.popContext(com.healthmarketscience.common.util.AppendableExt, com.healthmarketscience.sqlbuilder.SqlContext)
, so
the implementation is free to modify the given SqlContext.appendTo
in class Query<CreateViewQuery>
app
- the target for the sql query generationnewContext
- modifiable SqlContext for nested AppendeesIOException
Copyright © 2006–2021 OpenHMS. All rights reserved.