Package org.apache.isis.core.runtime.persistence

Examples of org.apache.isis.core.runtime.persistence.PojoRefreshException


    public void refreshRoot(final ObjectAdapter adapter) {
       
        final Object domainObject = adapter.getObject();
    if (domainObject == null) {
        // REVIEW: is this possible?
            throw new PojoRefreshException(adapter.getOid());
        }

        try {
            getPersistenceManager().refresh(domainObject);
        } catch (final RuntimeException e) {
            throw new PojoRefreshException(adapter.getOid(), e);
        }

        // possibly redundant because also called in the post-load event
        // listener, but (with JPA impl) found it was required if we were ever to
        // get an eager left-outer-join as the result of a refresh (sounds possible).
View Full Code Here


    public void refreshRoot(final ObjectAdapter adapter) {
       
        final Object domainObject = adapter.getObject();
    if (domainObject == null) {
        // REVIEW: is this possible?
            throw new PojoRefreshException(adapter.getOid());
        }

        try {
            getPersistenceManager().refresh(domainObject);
        } catch (final RuntimeException e) {
            throw new PojoRefreshException(adapter.getOid(), e);
        }

        // possibly redundant because also called in the post-load event
        // listener, but (with JPA impl) found it was required if we were ever to
        // get an eager left-outer-join as the result of a refresh (sounds possible).
View Full Code Here

TOP

Related Classes of org.apache.isis.core.runtime.persistence.PojoRefreshException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.