Class SimilarityFunction

java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.query.AbstractJdbcFunction
ch.tocco.nice2.duplicate.impl.search.jdbc.SimilarityFunction
All Implemented Interfaces:
JdbcFunction

@Component public class SimilarityFunction extends AbstractJdbcFunction
  • Constructor Details

    • SimilarityFunction

      public SimilarityFunction(TypeManager typeManager)
  • Method Details

    • createFunction

      public org.hibernate.dialect.function.SQLFunction createFunction(org.hibernate.type.TypeResolver typeResolver, SqlWriter sqlWriter)
      Returns:
      an SQLFunction that contains the raw sql statement that is executed on the db.
      See Also:
      • SQLFunctionTemplate
    • argumentCount

      public int argumentCount()
      Returns:
      the number of expected arguments.
    • validateArguments

      public void validateArguments(javax.persistence.criteria.Expression<?>[] arguments) throws JdbcFunctionException
      Throws:
      JdbcFunctionException
    • setIgnoreAccents

      @Value("${nice2.duplicate.ignoreAccents}") public void setIgnoreAccents(boolean ignoreAccents)