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
-
Field Summary
Fields inherited from class ch.tocco.nice2.persist.core.api.hibernate.query.AbstractJdbcFunction
returnType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
org.hibernate.dialect.function.SQLFunction
createFunction
(org.hibernate.type.TypeResolver typeResolver, SqlWriter sqlWriter) void
setIgnoreAccents
(boolean ignoreAccents) void
validateArguments
(jakarta.persistence.criteria.Expression<?>[] arguments) Methods inherited from class ch.tocco.nice2.persist.core.api.hibernate.query.AbstractJdbcFunction
checkIfFunctionCallOfType, checkIfLiteralOrParameter, checkIfReferenceOfType, findHibernateType, getReturnType, writeArgument
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.hibernate.query.JdbcFunction
argumentOrder
-
Constructor Details
-
SimilarityFunction
-
-
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:
-
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)
-