Package net.sf.basedb.core.hibernate
Class NativeSQLFunction
- java.lang.Object
-
- org.hibernate.dialect.function.SQLFunctionTemplate
-
- net.sf.basedb.core.hibernate.NativeSQLFunction
-
- All Implemented Interfaces:
SQLFunction
public class NativeSQLFunction extends SQLFunctionTemplate
Helper class for mixing native SQL with HQL queries. The typical use case (the only so far) is to execute a subquery in a place were HQL doesn't support subqueries (in WITH clause). The function definition takes one parameter which is the native SQL to execute. Use '[' and ']' to indicate open and close quotes in the native SQL dialect.- Since:
- 3.10
- Author:
- nicklas
-
-
Constructor Summary
Constructors Constructor Description NativeSQLFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
render(Type argumentType, List args, SessionFactoryImplementor factory)
-
Methods inherited from class org.hibernate.dialect.function.SQLFunctionTemplate
getReturnType, hasArguments, hasParenthesesIfNoArguments, toString
-
-
-
-
Method Detail
-
render
public String render(Type argumentType, List args, SessionFactoryImplementor factory)
- Specified by:
render
in interfaceSQLFunction
- Overrides:
render
in classSQLFunctionTemplate
-
-