public interface SelectRenderContext
SELECT statements. This interface declares rendering hooks that are called
before/after/during a specific SELECT clause part. The rendering content is appended directly after/before an
element without further whitespace processing. Hooks are responsible for adding required surrounding whitespaces.| Modifier and Type | Method and Description |
|---|---|
default Function<Select,? extends CharSequence> |
afterFromTable()
Customization hook: Rendition of a part after
FROM table. |
default Function<Select,? extends CharSequence> |
afterOrderBy(boolean hasOrderBy)
Customization hook: Rendition of a part after
ORDER BY. |
default Function<Select,? extends CharSequence> |
afterSelectList()
Customization hook: Rendition of a part after the
SELECT list and before any FROM renderings. |
default String |
evaluateOrderByNullHandling(Sort.NullHandling nullHandling)
Customization hook: Rendition of the null handling option for an
ORDER BY sort expression. |
default Function<Select,? extends CharSequence> afterSelectList()
SELECT list and before any FROM renderings.
Renders an empty string by default.Function invoked after rendering SELECT list.default Function<Select,? extends CharSequence> afterFromTable()
FROM table. Renders an empty string by default.Function invoked after rendering FROM table.default Function<Select,? extends CharSequence> afterOrderBy(boolean hasOrderBy)
ORDER BY. The rendering function is called always, regardless
whether ORDER BY exists or not.
Renders lock, limit and offset clause as appropriate.
default String evaluateOrderByNullHandling(Sort.NullHandling nullHandling)
ORDER BY sort expression.nullHandling - the Sort.NullHandling for the ORDER BY sort expression. Must not be null.String SQL text to be included in an ORDER BY sort expression.Copyright © 2017–2022 Pivotal Software, Inc.. All rights reserved.