类 OpenPersistenceManagerInViewInterceptor

    • 方法详细资料

      • setPersistenceManagerFactory

        public void setPersistenceManagerFactory​(javax.jdo.PersistenceManagerFactory pmf)
        Set the JDO PersistenceManagerFactory that should be used to create PersistenceManagers.
      • getPersistenceManagerFactory

        public javax.jdo.PersistenceManagerFactory getPersistenceManagerFactory()
        Return the JDO PersistenceManagerFactory that should be used to create PersistenceManagers.
      • postHandle

        public void postHandle​(WebRequest request,
                               ModelMap model)
        从接口复制的说明: WebRequestInterceptor
        Intercept the execution of a request handler after its successful invocation, right before view rendering (if any).

        Allows for modifying context resources after successful handler execution (for example, flushing a Hibernate Session).

        指定者:
        postHandle 在接口中 WebRequestInterceptor
        参数:
        request - the current web request
        model - the map of model objects that will be exposed to the view (may be null). Can be used to analyze the exposed model and/or to add further model attributes, if desired.
      • getParticipateAttributeName

        protected String getParticipateAttributeName()
        Return the name of the request attribute that identifies that a request is already filtered. Default implementation takes the toString representation of the PersistenceManagerFactory instance and appends ".FILTERED".
        另请参阅:
        PARTICIPATE_SUFFIX