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
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
-
Method Summary
Modifier and TypeMethodDescriptionrender
(Type argumentType, List args, SessionFactoryImplementor factory) Methods inherited from class org.hibernate.dialect.function.SQLFunctionTemplate
getReturnType, hasArguments, hasParenthesesIfNoArguments, toString
-
Constructor Details
-
NativeSQLFunction
public NativeSQLFunction()
-
-
Method Details
-
render
- Specified by:
render
in interfaceSQLFunction
- Overrides:
render
in classSQLFunctionTemplate
-