Package org.apache.openjpa.kernel

Examples of org.apache.openjpa.kernel.DataCacheStoreMode


        DataCachePCData data = cache.get(sm.getObjectId());
       
        // If loadedFieldsChanged = true, we don't care that data was already stored as we should update it.
        boolean alreadyCached = (data != null && !loadedFieldsChanged);
        DataCacheStoreMode storeMode = fetch.getCacheStoreMode();
       
        if ((storeMode == DataCacheStoreMode.USE && !alreadyCached) || storeMode == DataCacheStoreMode.REFRESH) {
            // If not found in the DB and the item is in the cache, and not locking remove the item
            if (!found && data != null && !isLocking(fetch)) {
                cache.remove(sm.getObjectId());
View Full Code Here

TOP

Related Classes of org.apache.openjpa.kernel.DataCacheStoreMode

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.