Class PatternRenderer
- java.lang.Object
-
- org.hibernate.query.sqm.produce.function.internal.PatternRenderer
-
public class PatternRenderer extends Object
Delegate for handling function "templates".
-
-
Constructor Summary
Constructors Constructor Description PatternRenderer(String pattern)
PatternRenderer(String pattern, SqlAstNodeRenderingMode argumentRenderingMode)
Constructs a template rendererPatternRenderer(String pattern, SqlAstNodeRenderingMode[] argumentRenderingModes)
Constructs a template renderer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getParamCount()
boolean
hasVarargs()
void
render(SqlAppender sqlAppender, List<? extends SqlAstNode> args, SqlAstTranslator<?> translator)
The rendering code.void
render(SqlAppender sqlAppender, List<? extends SqlAstNode> args, Predicate filter, Boolean respectNulls, Boolean fromFirst, SqlAstTranslator<?> translator)
void
render(SqlAppender sqlAppender, List<? extends SqlAstNode> args, Predicate filter, List<SortSpecification> withinGroup, SqlAstTranslator<?> translator)
void
render(SqlAppender sqlAppender, List<? extends SqlAstNode> args, Predicate filter, SqlAstTranslator<?> translator)
-
-
-
Constructor Detail
-
PatternRenderer
public PatternRenderer(String pattern)
-
PatternRenderer
public PatternRenderer(String pattern, SqlAstNodeRenderingMode argumentRenderingMode)
Constructs a template renderer- Parameters:
pattern
- The templateargumentRenderingMode
- The rendering mode for arguments
-
PatternRenderer
public PatternRenderer(String pattern, SqlAstNodeRenderingMode[] argumentRenderingModes)
Constructs a template renderer- Parameters:
pattern
- The templateargumentRenderingModes
- The rendering modes for arguments
-
-
Method Detail
-
hasVarargs
public boolean hasVarargs()
-
getParamCount
public int getParamCount()
-
render
public void render(SqlAppender sqlAppender, List<? extends SqlAstNode> args, SqlAstTranslator<?> translator)
The rendering code.- Parameters:
sqlAppender
-args
- The arguments to inject into the template
-
render
public void render(SqlAppender sqlAppender, List<? extends SqlAstNode> args, Predicate filter, SqlAstTranslator<?> translator)
-
render
public void render(SqlAppender sqlAppender, List<? extends SqlAstNode> args, Predicate filter, List<SortSpecification> withinGroup, SqlAstTranslator<?> translator)
-
render
public void render(SqlAppender sqlAppender, List<? extends SqlAstNode> args, Predicate filter, Boolean respectNulls, Boolean fromFirst, SqlAstTranslator<?> translator)
-
-