Interface SelectRenderContext
- All Known Implementing Classes:
SqlServerSelectRenderContext
public interface SelectRenderContext
Render context specifically for
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.- Since:
- 1.1
- Author:
- Mark Paluch, Myeonghyeon Lee, Jens Schauder, Chirag Tailor
-
Method Summary
Modifier and TypeMethodDescriptiondefault Function<Select,? extends CharSequence> Customization hook: Rendition of a part afterFROMtable.default Function<Select,? extends CharSequence> afterOrderBy(boolean hasOrderBy) Customization hook: Rendition of a part afterORDER BY.default Function<Select,? extends CharSequence> Customization hook: Rendition of a part after theSELECTlist and before anyFROMrenderings.default StringevaluateOrderByNullHandling(Sort.NullHandling nullHandling) Customization hook: Rendition of the null handling option for anORDER BYsort expression.
-
Method Details
-
afterSelectList
Customization hook: Rendition of a part after theSELECTlist and before anyFROMrenderings. Renders an empty string by default.- Returns:
- render
Functioninvoked after renderingSELECTlist.
-
afterFromTable
Customization hook: Rendition of a part afterFROMtable. Renders an empty string by default.- Returns:
- render
Functioninvoked after renderingFROMtable.
-
afterOrderBy
Customization hook: Rendition of a part afterORDER BY. The rendering function is called always, regardless whetherORDER BYexists or not.Renders lock, limit and offset clause as appropriate.
-
evaluateOrderByNullHandling
Customization hook: Rendition of the null handling option for anORDER BYsort expression.- Parameters:
nullHandling- theSort.NullHandlingfor theORDER BYsort expression. Must not be null.- Returns:
- render
StringSQL text to be included in anORDER BYsort expression. - Since:
- 2.4
-