Class SQLCustomQuery

  • All Implemented Interfaces:
    java.io.Serializable, CustomQuery

    public class SQLCustomQuery
    extends java.lang.Object
    implements CustomQuery, java.io.Serializable
    Implements Hibernate's built-in support for native SQL queries.

    This support is built on top of the notion of "custom queries"...

    See Also:
    Serialized Form
    • Method Detail

      • getSQL

        public java.lang.String getSQL()
        Description copied from interface: CustomQuery
        The SQL query string to be performed.
        Specified by:
        getSQL in interface CustomQuery
        Returns:
        The SQL statement string.
      • getQuerySpaces

        public java.util.Set getQuerySpaces()
        Description copied from interface: CustomQuery
        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.
        Specified by:
        getQuerySpaces in interface CustomQuery
        Returns:
        The query spaces
      • getCustomQueryReturns

        public java.util.List getCustomQueryReturns()
        Description copied from interface: CustomQuery
        A collection of descriptors describing the JDBC result set to be expected and how to map this result set.
        Specified by:
        getCustomQueryReturns in interface CustomQuery
        Returns:
        List of return descriptors.