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.criteria.internal.expression.function.ParameterizedFunctionExpression<?> expression, Type<?>... types) protected void
checkIfLiteralOrParameter
(javax.persistence.criteria.Expression<?> expression) protected void
checkIfReferenceOfType
(javax.persistence.criteria.Path<?> expression, Type<?>... types) protected org.hibernate.type.Type
findHibernateType
(org.hibernate.type.TypeResolver typeResolver, Type<?> niceType) Class
<?> protected String
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, argumentOrder, createFunction, validateArguments
-
Field Details
-
returnType
-
-
Constructor Details
-
AbstractJdbcFunction
-
-
Method Details
-
writeArgument
-
findHibernateType
protected org.hibernate.type.Type findHibernateType(org.hibernate.type.TypeResolver typeResolver, Type<?> niceType) -
getReturnType
- Specified by:
getReturnType
in interfaceJdbcFunction
- Returns:
- the return type of the function
-
checkIfLiteralOrParameter
protected void checkIfLiteralOrParameter(javax.persistence.criteria.Expression<?> expression) -
checkIfReferenceOfType
protected void checkIfReferenceOfType(javax.persistence.criteria.Path<?> expression, Type<?>... types) -
checkIfFunctionCallOfType
protected void checkIfFunctionCallOfType(org.hibernate.query.criteria.internal.expression.function.ParameterizedFunctionExpression<?> expression, Type<?>... types)
-