Class TruncFunction
- java.lang.Object
-
- com.blazebit.persistence.impl.function.trunc.TruncFunction
-
- All Implemented Interfaces:
com.blazebit.persistence.spi.JpqlFunction
- Direct Known Subclasses:
TruncDayFunction,TruncHourFunction,TruncMicrosecondsFunction,TruncMillisecondsFunction,TruncMinuteFunction,TruncMonthFunction,TruncQuarterFunction,TruncSecondFunction,TruncWeekFunction,TruncYearFunction
public abstract class TruncFunction extends Object implements com.blazebit.persistence.spi.JpqlFunction
- Since:
- 1.4.0
- Author:
- Jan-Willem Gmelig Meyling
-
-
Field Summary
Fields Modifier and Type Field Description protected com.blazebit.persistence.spi.TemplateRendererrenderer
-
Constructor Summary
Constructors Constructor Description TruncFunction(String functionName, String template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getReturnType(Class<?> firstArgumentType)booleanhasArguments()booleanhasParenthesesIfNoArguments()voidrender(com.blazebit.persistence.spi.FunctionRenderContext context)protected voidrenderDiff(com.blazebit.persistence.spi.FunctionRenderContext context)
-
-
-
Method Detail
-
hasArguments
public boolean hasArguments()
- Specified by:
hasArgumentsin interfacecom.blazebit.persistence.spi.JpqlFunction
-
hasParenthesesIfNoArguments
public boolean hasParenthesesIfNoArguments()
- Specified by:
hasParenthesesIfNoArgumentsin interfacecom.blazebit.persistence.spi.JpqlFunction
-
getReturnType
public Class<?> getReturnType(Class<?> firstArgumentType)
- Specified by:
getReturnTypein interfacecom.blazebit.persistence.spi.JpqlFunction
-
render
public void render(com.blazebit.persistence.spi.FunctionRenderContext context)
- Specified by:
renderin interfacecom.blazebit.persistence.spi.JpqlFunction
-
renderDiff
protected void renderDiff(com.blazebit.persistence.spi.FunctionRenderContext context)
-
-