Class DateDiffFunction

    • Field Detail

      • renderer

        protected final com.blazebit.persistence.spi.TemplateRenderer renderer
    • Constructor Detail

      • DateDiffFunction

        public DateDiffFunction​(String functionName,
                                String template)
    • Method Detail

      • hasArguments

        public boolean hasArguments()
        Specified by:
        hasArguments in interface com.blazebit.persistence.spi.JpqlFunction
      • hasParenthesesIfNoArguments

        public boolean hasParenthesesIfNoArguments()
        Specified by:
        hasParenthesesIfNoArguments in interface com.blazebit.persistence.spi.JpqlFunction
      • getReturnType

        public Class<?> getReturnType​(Class<?> firstArgumentType)
        Specified by:
        getReturnType in interface com.blazebit.persistence.spi.JpqlFunction
      • render

        public void render​(com.blazebit.persistence.spi.FunctionRenderContext context)
        Specified by:
        render in interface com.blazebit.persistence.spi.JpqlFunction
      • renderDiff

        protected void renderDiff​(com.blazebit.persistence.spi.FunctionRenderContext context)