Examples of speedoGetReferenceState()


Examples of org.objectweb.speedo.mim.api.PersistentObjectItf.speedoGetReferenceState()

    //avoid cycles using a map
    try{
      synchronized(fgHints){
        PersistentObjectItf copy = jdopo.speedoGetHome().detachCopy(jdopo, this, map, null, fgHints);
        if (jdopo.speedoGetHome().getVersioningStrategy() == SpeedoVersion.VERSION_NUMBER) {
          copy.speedoGetReferenceState().speedoChangeVersion();
        }
        return copy;
      }
    }
    catch(Exception e){
View Full Code Here

Examples of org.objectweb.speedo.mim.jdo.api.JDOPersistentObjectItf.speedoGetReferenceState()

        bindPMThread();
    assertIsPO(o, "");
    if (o == null)
      return null;
    JDOPersistentObjectItf jdopo = (JDOPersistentObjectItf) o;
    if (jdopo.speedoGetReferenceState().getDetachedStatus() == DetachedLifeCycle.DETACHED_NONE) {
      return speedoMakePersistent((PersistentObjectItf) o, null);
    } else {
      return speedoAttachCopy(o, new HashMap());
    }
    }
View Full Code Here

Examples of org.objectweb.speedo.mim.jdo.api.JDOPersistentObjectItf.speedoGetReferenceState()

    public Object speedoMakePersistent(PersistentObjectItf po, Map map) {
        JDOPersistentObjectItf jdopo = (JDOPersistentObjectItf) po;
        if (jdopo.jdoIsPersistent())
            return po;
        if (!jdopo.speedoIsActive()) {
          if (jdopo.speedoGetReferenceState().getDetachedStatus() != DetachedLifeCycle.DETACHED_NONE) {
             return null;
          }
        }
        synchronized(jdopo) {
            if (jdopo.jdoIsPersistent())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.