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