Class HibernateJpqlFunctionAdapter
java.lang.Object
com.blazebit.persistence.integration.hibernate.base.function.HibernateJpqlFunctionAdapter
- All Implemented Interfaces:
org.hibernate.dialect.function.SQLFunction
public class HibernateJpqlFunctionAdapter extends Object implements org.hibernate.dialect.function.SQLFunction
- Since:
- 1.0.0
- Author:
- Christian Beikov
-
Constructor Summary
Constructors Constructor Description HibernateJpqlFunctionAdapter(JpqlFunction function)
-
Method Summary
Modifier and Type Method Description org.hibernate.type.Type
getReturnType(org.hibernate.type.Type firstArgumentType, org.hibernate.engine.spi.Mapping mapping)
boolean
hasArguments()
boolean
hasParenthesesIfNoArguments()
String
render(org.hibernate.type.Type firstArgumentType, List args, org.hibernate.engine.spi.SessionFactoryImplementor factory)
JpqlFunction
unwrap()
-
Constructor Details
-
Method Details
-
unwrap
-
hasArguments
public boolean hasArguments()- Specified by:
hasArguments
in interfaceorg.hibernate.dialect.function.SQLFunction
-
hasParenthesesIfNoArguments
public boolean hasParenthesesIfNoArguments()- Specified by:
hasParenthesesIfNoArguments
in interfaceorg.hibernate.dialect.function.SQLFunction
-
getReturnType
public org.hibernate.type.Type getReturnType(org.hibernate.type.Type firstArgumentType, org.hibernate.engine.spi.Mapping mapping) throws org.hibernate.QueryException- Specified by:
getReturnType
in interfaceorg.hibernate.dialect.function.SQLFunction
- Throws:
org.hibernate.QueryException
-
render
public String render(org.hibernate.type.Type firstArgumentType, List args, org.hibernate.engine.spi.SessionFactoryImplementor factory) throws org.hibernate.QueryException- Specified by:
render
in interfaceorg.hibernate.dialect.function.SQLFunction
- Throws:
org.hibernate.QueryException
-