Class AbstractRepeatFunction
java.lang.Object
com.blazebit.persistence.impl.function.repeat.AbstractRepeatFunction
- All Implemented Interfaces:
JpqlFunction
- Direct Known Subclasses:
DefaultRepeatFunction,LpadRepeatFunction,ReplicateRepeatFunction
public abstract class AbstractRepeatFunction extends Object implements JpqlFunction
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Field Summary
Fields Modifier and Type Field Description static StringFUNCTION_NAMEprotected TemplateRendererrenderer -
Constructor Summary
Constructors Constructor Description AbstractRepeatFunction(String template) -
Method Summary
Modifier and Type Method Description Class<?>getReturnType(Class<?> firstArgumentType)booleanhasArguments()booleanhasParenthesesIfNoArguments()voidrender(FunctionRenderContext context)
-
Field Details
-
FUNCTION_NAME
- See Also:
- Constant Field Values
-
renderer
-
-
Constructor Details
-
Method Details
-
hasArguments
public boolean hasArguments()- Specified by:
hasArgumentsin interfaceJpqlFunction
-
hasParenthesesIfNoArguments
public boolean hasParenthesesIfNoArguments()- Specified by:
hasParenthesesIfNoArgumentsin interfaceJpqlFunction
-
getReturnType
- Specified by:
getReturnTypein interfaceJpqlFunction
-
render
- Specified by:
renderin interfaceJpqlFunction
-