JPA Method
in javax.persistence.criteria.CriteriaBuilder

Expression<T> function(
  String name, 
  Class<T> type, 
  Expression<?>... args
)


Create an expression for the execution of a database function.
Parameters:
name - function name
type - expected result type
args - function arguments
Return:
expression
Since:
JPA 2.0