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

    • writeArgument

      protected String writeArgument()
    • findHibernateType

      protected org.hibernate.type.Type findHibernateType(org.hibernate.type.TypeResolver typeResolver, Type<?> niceType)
    • getReturnType

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

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

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

      protected void checkIfFunctionCallOfType(org.hibernate.query.criteria.internal.expression.function.ParameterizedFunctionExpression<?> expression, Type<?>... types)