Interface QueryProducerImplementor

    • Method Detail

      • getHibernateFlushMode

        FlushMode getHibernateFlushMode()
      • createQuery

        @Deprecated
        QueryImplementor createQuery​(String queryString)
        Deprecated.
        Description copied from interface: QueryProducer
        Create a Query instance for the given HQL query, or HQL insert, update, or delete statement.
        Specified by:
        createQuery in interface QueryProducer
        Parameters:
        queryString - The HQL query
        Returns:
        The Query instance for manipulation and execution
        See Also:
        EntityManager.createQuery(String)
      • createNamedQuery

        @Deprecated
        QueryImplementor createNamedQuery​(String name)
        Deprecated.
        Description copied from interface: QueryProducer
        Create a typed Query instance for the given named query. The named query might be defined in HQL or in native SQL.
        Specified by:
        createNamedQuery in interface QueryProducer
        Parameters:
        name - the name of a pre-defined, named query
        Returns:
        The Query instance for manipulation and execution
        See Also:
        EntityManager.createNamedQuery(String)
      • createNamedQuery

        <R> QueryImplementor<R> createNamedQuery​(String name,
                                                 Class<R> resultClass)
        Description copied from interface: QueryProducer
        Create a typed Query instance for the given named query. The named query might be defined in HQL or in native SQL.
        Specified by:
        createNamedQuery in interface QueryProducer
        Parameters:
        name - the name of a query defined in metadata
        resultClass - the type of the query result
        Returns:
        The Query instance for manipulation and execution
        See Also:
        EntityManager.createNamedQuery(String,Class)
      • createNativeQuery

        <R> NativeQueryImplementor<R> createNativeQuery​(String sqlString,
                                                        Class<R> resultClass)
        Description copied from interface: QueryProducer
        Create a NativeQuery instance for the given native SQL query using implicit mapping to the specified Java type.

        If the given class is an entity class, this method is equivalent to createNativeQuery(sqlString).addEntity("alias1", resultClass).

        Specified by:
        createNativeQuery in interface QueryProducer
        Parameters:
        sqlString - The native (SQL) query string
        resultClass - The Java entity type to map results to
        Returns:
        The NativeQuery instance for manipulation and execution
        See Also:
        EntityManager.createNativeQuery(String,Class)
      • createNativeQuery

        <R> NativeQueryImplementor<R> createNativeQuery​(String sqlString,
                                                        Class<R> resultClass,
                                                        String tableAlias)
        Description copied from interface: QueryProducer
        Create a NativeQuery instance for the given native SQL query using implicit mapping to the specified Java type.

        If the given class is an entity class, this method is equivalent to createNativeQuery(sqlString).addEntity(tableAlias, resultClass).

        Specified by:
        createNativeQuery in interface QueryProducer
        Parameters:
        sqlString - Native (SQL) query string
        resultClass - The Java entity type to map results to
        tableAlias - The table alias for columns in the result set
        Returns:
        The NativeQuery instance for manipulation and execution
        See Also:
        EntityManager.createNativeQuery(String,Class)
      • createNativeQuery

        @Deprecated
        NativeQueryImplementor createNativeQuery​(String sqlString,
                                                 String resultSetMappingName)
        Deprecated.
        Description copied from interface: QueryProducer
        Create a NativeQuery instance for the given native SQL query using an explicit mapping to the specified Java type.

        The given result set mapping name must identify a mapping defined by a SqlResultSetMapping annotation.

        Specified by:
        createNativeQuery in interface QueryProducer
        Parameters:
        sqlString - The native (SQL) query string
        resultSetMappingName - The explicit result mapping name
        Returns:
        The NativeQuery instance for manipulation and execution
        See Also:
        EntityManager.createNativeQuery(String,Class), SqlResultSetMapping
      • createNativeQuery

        <R> NativeQueryImplementor<R> createNativeQuery​(String sqlString,
                                                        String resultSetMappingName,
                                                        Class<R> resultClass)
        Description copied from interface: QueryProducer
        Create a NativeQuery instance for the given native SQL query using an explicit mapping to the specified Java type.

        The given result set mapping name must identify a mapping defined by a SqlResultSetMapping annotation.

        Specified by:
        createNativeQuery in interface QueryProducer
        Parameters:
        sqlString - The native (SQL) query string
        resultSetMappingName - The explicit result mapping name
        Returns:
        The NativeQuery instance for manipulation and execution
        See Also:
        EntityManager.createNativeQuery(String,Class), SqlResultSetMapping