Class AbstractJdbcFunction

java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.query.AbstractJdbcFunction
All Implemented Interfaces:
JdbcFunction
Direct Known Subclasses:
AbstractDatetimeAddFunction, BirthdayQueryFunction, BoundingboxJdbcFunction, DistanceHaversineJdbcFunction, DueDateFunction, SimilarityFunction

public abstract class AbstractJdbcFunction extends Object implements JdbcFunction
  • Field Details

    • returnType

      protected final Type<?> returnType
  • Constructor Details

    • AbstractJdbcFunction

      protected AbstractJdbcFunction(Type<?> returnType)
  • Method Details

    • getReturnType

      public Class<?> getReturnType()
      Specified by:
      getReturnType in interface JdbcFunction
      Returns:
      the return type of the function
    • createFunction

      public org.hibernate.query.sqm.function.SqmFunctionDescriptor createFunction(org.hibernate.type.spi.TypeConfiguration typeConfiguration, SqlWriterBase.SqlWriterConfiguration sqlWriterConfiguration)
      Specified by:
      createFunction in interface JdbcFunction
      Returns:
      an SqmFunctionDescriptor that contains the raw sql statement that is executed on the db.
    • render

      protected abstract void render(JdbcFunctionWriter writer, List<? extends org.hibernate.sql.ast.tree.SqlAstNode> arguments)
    • checkIfLiteralOrParameter

      protected void checkIfLiteralOrParameter(jakarta.persistence.criteria.Expression<?> expression)
    • checkIfReferenceOfType

      protected void checkIfReferenceOfType(jakarta.persistence.criteria.Path<?> expression, Type<?>... types)
    • checkIfFunctionCallOfType

      protected void checkIfFunctionCallOfType(org.hibernate.query.sqm.tree.expression.SqmFunction<?> expression, Type<?>... types)