Class EpochFunction
java.lang.Object
com.blazebit.persistence.impl.function.datetime.epoch.EpochFunction
- All Implemented Interfaces:
JpqlFunction
- Direct Known Subclasses:
DB2EpochFunction,DefaultEpochFunction,MySQLEpochFunction,OracleEpochFunction,PostgreSQLEpochFunction
public abstract class EpochFunction extends Object implements JpqlFunction
- Since:
- 1.2.0
- Author:
- Moritz Becker
-
Field Summary
Fields Modifier and Type Field Description protected TemplateRendererrenderer -
Constructor Summary
Constructors Constructor Description EpochFunction(String template) -
Method Summary
Modifier and Type Method Description Class<?>getReturnType(Class<?> firstArgumentType)booleanhasArguments()booleanhasParenthesesIfNoArguments()voidrender(FunctionRenderContext context)protected voidrenderDiff(FunctionRenderContext context)
-
Field Details
-
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
-
renderDiff
-