function(name, type, args) - JPA CriteriaBuilder's method

Method
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
Returns:
expression
Since:
JPA 2.0