Class OpenPersistenceManagerInViewInterceptor

    • Method Detail

      • 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.
      • preHandle

        public void preHandle​(org.springframework.web.context.request.WebRequest request)
                       throws org.springframework.dao.DataAccessException
        Specified by:
        preHandle in interface org.springframework.web.context.request.WebRequestInterceptor
        Throws:
        org.springframework.dao.DataAccessException
      • postHandle

        public void postHandle​(org.springframework.web.context.request.WebRequest request,
                               org.springframework.ui.ModelMap model)
        Specified by:
        postHandle in interface org.springframework.web.context.request.WebRequestInterceptor
      • afterCompletion

        public void afterCompletion​(org.springframework.web.context.request.WebRequest request,
                                    Exception ex)
                             throws org.springframework.dao.DataAccessException
        Specified by:
        afterCompletion in interface org.springframework.web.context.request.WebRequestInterceptor
        Throws:
        org.springframework.dao.DataAccessException
      • 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".
        See Also:
        PARTICIPATE_SUFFIX