类 HibernateCursorItemReader<T>

    • 方法详细资料

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        指定者:
        afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
        抛出:
        java.lang.Exception
      • setParameterValues

        public void setParameterValues​(java.util.Map<java.lang.String,​java.lang.Object> parameterValues)
        The parameter values to apply to a query (map of name:value).
        参数:
        parameterValues - the parameter values to set
      • setQueryName

        public void setQueryName​(java.lang.String queryName)
        A query name for an externalized query. Either this or the { query string or the { query provider should be set.
        参数:
        queryName - name of a hibernate named query
      • setFetchSize

        public void setFetchSize​(int fetchSize)
        Fetch size used internally by Hibernate to limit amount of data fetched from database per round trip.
        参数:
        fetchSize - the fetch size to pass down to Hibernate
      • setQueryString

        public void setQueryString​(java.lang.String queryString)
        A query string in HQL. Either this or the { query provider or the { query name should be set.
        参数:
        queryString - HQL query string
      • setSessionFactory

        public void setSessionFactory​(org.hibernate.SessionFactory sessionFactory)
        The Hibernate SessionFactory to use the create a session.
        参数:
        sessionFactory - the SessionFactory to set
      • setUseStatelessSession

        public void setUseStatelessSession​(boolean useStatelessSession)
        Can be set only in uninitialized state.
        参数:
        useStatelessSession - true to use StatelessSessionfalse to use standard hibernate Session
      • doOpen

        protected void doOpen()
                       throws java.lang.Exception
        Open hibernate session and create a forward-only cursor for the query.
        指定者:
        doOpen 在类中 AbstractItemCountingItemStreamItemReader<T>
        抛出:
        java.lang.Exception - Allows subclasses to throw checked exceptions for interpretation by the framework
      • doClose

        protected void doClose()
                        throws java.lang.Exception
        Close the cursor and hibernate session.
        指定者:
        doClose 在类中 AbstractItemCountingItemStreamItemReader<T>
        抛出:
        java.lang.Exception - Allows subclasses to throw checked exceptions for interpretation by the framework