public abstract class BaseCreateQuery<ThisType extends BaseCreateQuery<ThisType>> extends Query<ThisType>
Modifier and Type | Field and Description |
---|---|
protected SqlObjectList<SqlObject> |
_columns |
protected SqlObject |
_object |
ALL_SYMBOL, NULL_VALUE, QUESTION_MARK
Modifier | Constructor and Description |
---|---|
protected |
BaseCreateQuery(SqlObject objectStr) |
Modifier and Type | Method and Description |
---|---|
ThisType |
addColumns(Column... columns)
Adds column descriptions for the given Columns.
|
abstract ThisType |
addCustomColumns(Object... typedColumnStrs)
Adds the given SqlObjects as column descriptions, according to the
subclass type.
|
protected void |
collectSchemaObjects(ValidationContext vContext)
Used during Query.validate() calls to collect the dbschema objects
referenced in a query.
|
abstract DropQuery |
getDropQuery() |
ThisType |
setCustomName(Object name)
Sets the name of the object being created.
|
ThisType |
setName(String name)
Sets the name of the object being created.
|
void |
validate(ValidationContext vContext)
Runs validation on this verifiable object using a previously collected
ValidationContext.
|
appendTo, appendTo, getThisType, prependTo, validate, validateTables
addCustomization, customAppendTo, customAppendTo, maybeAppendTo, maybeAppendTo
collectSchemaObjects, doValidate, toString
toString, toString
protected SqlObject _object
protected SqlObjectList<SqlObject> _columns
protected BaseCreateQuery(SqlObject objectStr)
public ThisType setCustomName(Object name)
Object
-> SqlObject
conversions handled by
Converter.toCustomSqlObject(Object)
.
public ThisType addColumns(Column... columns)
protected void collectSchemaObjects(ValidationContext vContext)
SqlObject
collectSchemaObjects
in class Query<ThisType extends BaseCreateQuery<ThisType>>
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<ThisType extends BaseCreateQuery<ThisType>>
validate
in class Query<ThisType extends BaseCreateQuery<ThisType>>
vContext
- handle to the current, filled-in validation contextValidationException
public abstract ThisType addCustomColumns(Object... typedColumnStrs)
public abstract DropQuery getDropQuery()
Copyright © 2006–2021 OpenHMS. All rights reserved.