Top Description Methods
org.hibernate.loader.custom

public Interface CustomQuery

Known Direct Implementers
org.hibernate.loader.custom.sql.SQLCustomQuery
Imports
java.util.List, .Set, org.hibernate.param.ParameterBinder

Extension point allowing any SQL query with named and positional parameters to be executed by Hibernate, returning managed entities, collections and simple scalar values.
Authors
Gavin King, Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public List<Return>

Returns:

List of return descriptors.
getCustomQueryReturns
()

A collection of descriptors describing the JDBC result set to be expected and how to map this result set.

public List<ParameterBinder>
public Set<String>

Returns:

The query spaces
getQuerySpaces
()

Any query spaces to apply to the query execution.

public String

Returns:

The SQL statement string.
getSQL
()

The SQL query string to be performed.

Method Detail

getCustomQueryReturnsback to summary
public List<Return> getCustomQueryReturns()

A collection of descriptors describing the JDBC result set to be expected and how to map this result set.

Returns:List<Return>

List of return descriptors.

getParameterValueBindersback to summary
public List<ParameterBinder> getParameterValueBinders()
getQuerySpacesback to summary
public Set<String> getQuerySpaces()

Any query spaces to apply to the query execution. Query spaces are used in Hibernate's auto-flushing mechanism to determine which entities need to be checked for pending changes.

Returns:Set<String>

The query spaces

getSQLback to summary
public String getSQL()

The SQL query string to be performed.

Returns:String

The SQL statement string.