Package org.datanucleus.store.fieldmanager

Examples of org.datanucleus.store.fieldmanager.CachePopulateFieldManager


        // Connect a StateManager - the lifecycle state is unimportant
        JDOStateManagerImpl cacheSM = new JDOStateManagerImpl(myOM, cmd);
        cacheSM.initialiseForDetached(cachePC, getExternalObjectId(myPC), getVersion(myPC));

        // Copy across all of the loaded fields that are allowed to be cached
        cacheSM.replaceFields(getLoadedFieldNumbers(), new CachePopulateFieldManager(this, cachedPC));

        // Disconnect the StateManager
        replaceStateManager(((PersistenceCapable)cachePC), null);

        return cachedPC;
View Full Code Here


                    JDOStateManagerImpl cacheSM = new JDOStateManagerImpl(myOM, cmd);
                    // TODO Change to use a specific method - lifecycle state is not strictly correct
                    cacheSM.initialiseForDetached(cachePC, getExternalObjectId(myPC), getVersion(myPC));

                    // Copy across the specified fields into the cached object
                    cacheSM.replaceFields(cacheFieldsToLoad, new CachePopulateFieldManager(this, cachedPC));

                    // Disconnect the StateManager
                    replaceStateManager(((PersistenceCapable)cachePC), null);
                }
            }
View Full Code Here

        // TODO Change to use a specific method - lifecycle state is not strictly correct
        cacheSM.initialiseForDetached(cachePC, getExternalObjectId(myPC), getVersion(myPC));

        // Copy across all of the loaded fields that are allowed to be cached
        cacheSM.replaceFields(getLoadedFieldNumbers(),
            new CachePopulateFieldManager(this, cachedPC));

        // Disconnect the StateManager
        replaceStateManager(((PersistenceCapable)cachePC), null);

        return cachedPC;
View Full Code Here

                        JDOStateManagerImpl cacheSM = new JDOStateManagerImpl(myOM, cmd);
                        // TODO Change to use a specific method - lifecycle state is not strictly correct
                        cacheSM.initialiseForDetached(cachePC, getExternalObjectId(myPC), getVersion(myPC));

                        // Copy across the specified fields into the cached object
                        cacheSM.replaceFields(cacheFieldsToLoad, new CachePopulateFieldManager(this, cachedPC));

                        // Disconnect the StateManager
                        replaceStateManager(((PersistenceCapable)cachePC), null);
                    }
                }
View Full Code Here

TOP

Related Classes of org.datanucleus.store.fieldmanager.CachePopulateFieldManager

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.