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
getName()
protected void
render
(JdbcFunctionWriter writer, List<? extends org.hibernate.sql.ast.tree.SqlAstNode> arguments) 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, createFunction, getReturnType
-
Constructor Details
-
SimilarityFunction
-
-
Method Details
-
getName
-
render
protected void render(JdbcFunctionWriter writer, List<? extends org.hibernate.sql.ast.tree.SqlAstNode> arguments) - Specified by:
render
in classAbstractJdbcFunction
-
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)
-