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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkIfFunctionCallOfType
(org.hibernate.query.sqm.tree.expression.SqmFunction<?> expression, Type<?>... types) protected void
checkIfLiteralOrParameter
(jakarta.persistence.criteria.Expression<?> expression) protected void
checkIfReferenceOfType
(jakarta.persistence.criteria.Path<?> expression, Type<?>... types) org.hibernate.query.sqm.function.SqmFunctionDescriptor
createFunction
(org.hibernate.type.spi.TypeConfiguration typeConfiguration, SqlWriterBase.SqlWriterConfiguration sqlWriterConfiguration) Class
<?> protected abstract void
render
(JdbcFunctionWriter writer, List<? extends org.hibernate.sql.ast.tree.SqlAstNode> arguments) 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
argumentCount, getName, validateArguments
-
Field Details
-
returnType
-
-
Constructor Details
-
AbstractJdbcFunction
-
-
Method Details
-
getReturnType
- Specified by:
getReturnType
in interfaceJdbcFunction
- Returns:
- the return type of the function
-
createFunction
public org.hibernate.query.sqm.function.SqmFunctionDescriptor createFunction(org.hibernate.type.spi.TypeConfiguration typeConfiguration, SqlWriterBase.SqlWriterConfiguration sqlWriterConfiguration) - Specified by:
createFunction
in interfaceJdbcFunction
- Returns:
- an
SqmFunctionDescriptor
that contains the raw sql statement that is executed on the db.
-
render
protected abstract void render(JdbcFunctionWriter writer, List<? extends org.hibernate.sql.ast.tree.SqlAstNode> arguments) -
checkIfLiteralOrParameter
protected void checkIfLiteralOrParameter(jakarta.persistence.criteria.Expression<?> expression) -
checkIfReferenceOfType
protected void checkIfReferenceOfType(jakarta.persistence.criteria.Path<?> expression, Type<?>... types) -
checkIfFunctionCallOfType
protected void checkIfFunctionCallOfType(org.hibernate.query.sqm.tree.expression.SqmFunction<?> expression, Type<?>... types)
-