public class PgLimitClause extends CustomSyntax implements Verifiable<PgLimitClause>
" LIMIT <limit>"
for use in
SelectQuery
s.SelectQuery.addCustomization(CustomSyntax)
ALL_SYMBOL, NULL_VALUE, QUESTION_MARK
Constructor and Description |
---|
PgLimitClause(Object value) |
Modifier and Type | Method and Description |
---|---|
void |
appendTo(AppendableExt app)
Appends this object to the given AppendableExt.
|
void |
apply(SelectQuery query)
Called by
SelectQuery.addCustomization(CustomSyntax) to add this
custom syntax to the appropriate location in the SelectQuery. |
protected void |
collectSchemaObjects(ValidationContext vContext)
Used during Query.validate() calls to collect the dbschema objects
referenced in a query.
|
PgLimitClause |
validate()
Runs validation on this verifiable object.
|
void |
validate(ValidationContext vContext)
Runs validation on this verifiable object using a previously collected
ValidationContext.
|
apply, apply
collectSchemaObjects, doValidate, toString
toString, toString
public PgLimitClause(Object value)
public void apply(SelectQuery query)
CustomSyntax
SelectQuery.addCustomization(CustomSyntax)
to add this
custom syntax to the appropriate location in the SelectQuery.apply
in class CustomSyntax
public void appendTo(AppendableExt app) throws IOException
Appendee
appendTo
in interface Appendee
appendTo
in class AppendeeObject
app
- the AppendableExt to which this class should append itselfIOException
- if the append failsprotected void collectSchemaObjects(ValidationContext vContext)
SqlObject
collectSchemaObjects
in class SqlObject
vContext
- handle to the current validation contextpublic final PgLimitClause validate() throws ValidationException
Verifiable
validate
in interface Verifiable<PgLimitClause>
ValidationException
public void validate(ValidationContext vContext) throws ValidationException
Verifiable
In general, this method will only be called internally, not by users.
validate
in interface Verifiable<PgLimitClause>
vContext
- handle to the current, filled-in validation contextValidationException
Copyright © 2006–2021 OpenHMS. All rights reserved.