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

    • getName

      public String getName()
    • render

      protected void render(JdbcFunctionWriter writer, List<? extends org.hibernate.sql.ast.tree.SqlAstNode> arguments)
      Specified by:
      render in class AbstractJdbcFunction
    • argumentCount

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

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

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