接口 QueryProducerImplementor

    • 方法详细资料

      • getHibernateFlushMode

        FlushMode getHibernateFlushMode()
      • createQuery

        QueryImplementor createQuery​(String queryString)
        从接口复制的说明: QueryProducer
        Create a Query instance for the given HQL/JPQL query string.
        指定者:
        createQuery 在接口中 QueryProducer
        参数:
        queryString - The HQL/JPQL query
        返回:
        The Query instance for manipulation and execution
        另请参阅:
        EntityManager.createQuery(String)
      • createQuery

        <R> QueryImplementor<R> createQuery​(String queryString,
                                            Class<R> resultClass)
        从接口复制的说明: QueryProducer
        Create a typed Query instance for the given HQL/JPQL query string.
        指定者:
        createQuery 在接口中 QueryProducer
        参数:
        queryString - The HQL/JPQL query
        返回:
        The Query instance for manipulation and execution
        另请参阅:
        EntityManager.createQuery(String,Class)
      • createNamedQuery

        Query createNamedQuery​(String name)
        从接口复制的说明: QueryProducer
        The JPA-defined named query creation method. This form can represent an HQL/JPQL query or a native query.
        指定者:
        createNamedQuery 在接口中 QueryProducer
        参数:
        name - the name of a pre-defined, named query
        返回:
        The Query instance for manipulation and execution
        另请参阅:
        EntityManager.createNamedQuery(String)
      • createNamedQuery

        <R> QueryImplementor<R> createNamedQuery​(String name,
                                                 Class<R> resultClass)
        从接口复制的说明: QueryProducer
        The JPA-defined named, typed query creation method. This form can only represent an HQL/JPQL query (not a native query).
        指定者:
        createNamedQuery 在接口中 QueryProducer
        参数:
        name - the name of a query defined in metadata
        resultClass - the type of the query result
        返回:
        The Query instance for manipulation and execution
        另请参阅:
        EntityManager.createNamedQuery(String,Class)
      • createNativeQuery

        NativeQueryImplementor createNativeQuery​(String sqlString)
        从接口复制的说明: QueryProducer
        Create a NativeQuery instance for the given native (SQL) query
        指定者:
        createNativeQuery 在接口中 QueryProducer
        参数:
        sqlString - a native SQL query string
        返回:
        The NativeQuery instance for manipulation and execution
        另请参阅:
        EntityManager.createNativeQuery(String)
      • createNativeQuery

        NativeQueryImplementor createNativeQuery​(String sqlString,
                                                 Class resultClass)
        从接口复制的说明: QueryProducer
        Create a NativeQuery instance for the given native (SQL) query using implicit mapping to the specified Java type.
        指定者:
        createNativeQuery 在接口中 QueryProducer
        参数:
        sqlString - Native (SQL) query string
        resultClass - The Java type to map results to
        返回:
        The NativeQuery instance for manipulation and execution
        另请参阅:
        EntityManager.createNativeQuery(String,Class)
      • createNativeQuery

        NativeQueryImplementor createNativeQuery​(String sqlString,
                                                 String resultSetMapping)
        从接口复制的说明: QueryProducer
        Create a NativeQuery instance for the given native (SQL) query using implicit mapping to the specified Java type.
        指定者:
        createNativeQuery 在接口中 QueryProducer
        参数:
        sqlString - Native (SQL) query string
        resultSetMapping - The explicit (named) result mapping
        返回:
        The NativeQuery instance for manipulation and execution
        另请参阅:
        EntityManager.createNativeQuery(String,Class), SqlResultSetMapping
      • getNamedSQLQuery

        default NativeQueryImplementor getNamedSQLQuery​(String name)
        从接口复制的说明: QueryProducer
        Get a NativeQuery instance for a named native SQL query
        指定者:
        getNamedSQLQuery 在接口中 QueryProducer
        参数:
        name - The name of the pre-defined query
        返回:
        The NativeQuery instance for manipulation and execution