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 from the cached object
this.replaceFields(cacheFieldsToLoad, new CacheRetrieveFieldManager(this, cacheSM, cachedPC));
// Disconnect the StateManager
replaceStateManager(((PersistenceCapable)cachePC), null);
}
}