Package org.jpox.cache

Examples of org.jpox.cache.CachedPC


        }

        // Reset jdoFlags in the copy to PersistenceCapable.READ_WRITE_OK and clear its state manager.
        pcCopy.jdoReplaceFlags();
        pcCopy.jdoReplaceStateManager(null);
        return new CachedPC(pcCopy, l2loadedFields, transactionalVersion);
    }
View Full Code Here


                {
                    JPOXLogger.CACHE.debug(LOCALISER.msg("004003",
                        StringUtils.toJVMIDString(sm.getObject()), id));
                }
                // Store an L2 cacheable form of this object
                CachedPC pcCopy = sm.getL2CacheableObject();
                this.omf.getLevel2Cache().put(id, pcCopy);
            }
        }
    }
View Full Code Here

        // Try Level 2 since not in Level 1
        if (omf.getBooleanProperty("org.jpox.cache.level2"))
        {
            Level2Cache l2Cache = omf.getLevel2Cache();
            CachedPC cachedPC = l2Cache.get(id);

            // Copy the cached object and connect to a StateManager, with the same object id
            if (cachedPC != null)
            {
                sm = StateManagerFactory.newStateManagerForCachedPC(this,
                    cachedPC.getPersistableObject(), id, cachedPC.getLoadedFields());
                if (cachedPC.getVersion() != null)
                {
                    sm.setVersion(cachedPC.getVersion());
                }
                pc = sm.getObject();
                if (JPOXLogger.CACHE.isDebugEnabled())
                {
                    JPOXLogger.CACHE.debug(LOCALISER.msg("004006",
View Full Code Here

TOP

Related Classes of org.jpox.cache.CachedPC

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.