Package org.objectweb.speedo.mim.api

Examples of org.objectweb.speedo.mim.api.StateItf


        PersistentObjectItf spClone = (PersistentObjectItf)clone;
        spClone.speedoSetEncodedPName(pm.getEncodedPName(sp));
        spClone.setCeAge(0);
        spClone.speedoIsActive(false);
        //instanciate the clone of the fields
        StateItf fieldsClone = sp.speedoCreateState();
        spClone.speedoSetReferenceState(fieldsClone);
        fieldsClone.setSpeedoPO(spClone);
        //put the association between the po and its clone into the map
        if(map != null)
          map.put(sp, clone);
        synchronized(fgHints){
          readIntention(sp, null).detachCopy(pm, map, fieldsClone, fgHints);
        }
        //mark the state as detached
        fieldsClone.setDetachedStatus(DetachedLifeCycle.DETACHED_CLEAN);
      } catch(Exception e){
        throw personality.newUserRuntimeException("Detach cannot be performed", new Exception[]{ExceptionHelper.getNested(e)});
      }
    }
    return (PersistentObjectItf)clone;
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.mim.api.StateItf

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.