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:
org.hibernate.dialect.function.SQLFunction
public class NativeSQLFunction extends org.hibernate.dialect.function.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(org.hibernate.type.Type argumentType, List args, org.hibernate.engine.spi.SessionFactoryImplementor factory)
-