public class DropQuery extends Query<DropQuery>
Modifier and Type | Class and Description |
---|---|
static class |
DropQuery.Behavior
Enum representing additional behavior for the drop query, e.g.:
"DROP <type> <obj> <behavior>" |
static class |
DropQuery.Type
Enum representing he type of the object being dropped
|
ALL_SYMBOL, NULL_VALUE, QUESTION_MARK
Constructor and Description |
---|
DropQuery(DropQuery.Type type,
Object obj)
|
Modifier and Type | Method and Description |
---|---|
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.
|
static DropQuery |
dropIndex(Index index) |
static DropQuery |
dropIndex(Object indexStr) |
static DropQuery |
dropTable(Object tableStr) |
static DropQuery |
dropTable(Table table) |
static DropQuery |
dropView(Object tableStr) |
static DropQuery |
dropView(Table table) |
DropQuery |
setBehavior(DropQuery.Behavior newBehavior)
Sets the behavior for the drop query
|
appendTo, getThisType, prependTo, validate, validate, validateTables
addCustomization, customAppendTo, customAppendTo, maybeAppendTo, maybeAppendTo
collectSchemaObjects, doValidate, toString
toString, toString
public DropQuery(DropQuery.Type type, Object obj)
public DropQuery setBehavior(DropQuery.Behavior newBehavior)
protected void collectSchemaObjects(ValidationContext vContext)
SqlObject
collectSchemaObjects
in class Query<DropQuery>
vContext
- handle to the current validation contextprotected 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<DropQuery>
app
- the target for the sql query generationnewContext
- modifiable SqlContext for nested AppendeesIOException
public static DropQuery dropTable(Object tableStr)
Object
-> SqlObject
conversions handled by
Converter.toCustomTableSqlObject(Object)
.public static DropQuery dropIndex(Object indexStr)
Object
-> SqlObject
conversions handled by
Converter.toCustomIndexSqlObject(Object)
.public static DropQuery dropView(Object tableStr)
Object
-> SqlObject
conversions handled by
Converter.toCustomTableSqlObject(Object)
.Copyright © 2006–2021 OpenHMS. All rights reserved.