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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckIfFunctionCallOfType(org.hibernate.query.sqm.tree.expression.SqmFunction<?> expression, Type<?>... types) protected voidcheckIfLiteralOrParameter(jakarta.persistence.criteria.Expression<?> expression) protected voidcheckIfReferenceOfType(jakarta.persistence.criteria.Path<?> expression, Type<?>... types) org.hibernate.query.sqm.function.SqmFunctionDescriptorcreateFunction(org.hibernate.type.spi.TypeConfiguration typeConfiguration, SqlWriterBase.SqlWriterConfiguration sqlWriterConfiguration) Class<?> protected abstract voidrender(JdbcFunctionWriter writer, List<? extends org.hibernate.sql.ast.tree.SqlAstNode> arguments) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JdbcFunction
argumentCount, getName, validateArguments
-
Field Details
-
returnType
-
-
Constructor Details
-
AbstractJdbcFunction
-
-
Method Details
-
getReturnType
- Specified by:
getReturnTypein 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:
createFunctionin interfaceJdbcFunction- Returns:
- an
SqmFunctionDescriptorthat 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)
-