Examples of speedoIsActive()


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

      PersistentObjectItf sp = (PersistentObjectItf) o;
      assertIsOpen();
      bindPMThread();
      assertIsPO(sp, "refresh");
        assertPOManager(sp);
        if (!sp.speedoIsActive())
            throw new JDOUserException("Refresh on a transient instance.");
      speedoRefresh(sp, new HashMap(), new ArrayList());
    }

    public void speedoRefresh(PersistentObjectItf sp, Map map, Collection fgHints){
View Full Code Here

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

            assertIsPO(pc, "");
        } catch (Exception e) {
            return null;
        }
        PersistentObjectItf sp = (PersistentObjectItf) pc;
        if (!sp.speedoIsActive())
            throw new JDOUserException("Object non persistent.");
        assertPOManager(sp);
        try {
            return pnc.encodeAbstract(sp.getPName());
        } catch (PException e) {
View Full Code Here

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

        } catch (Exception e) {
            return null;
        }
        PersistentObjectItf po = (PersistentObjectItf) o;
        assertPOManager(po);
        if (!po.speedoIsActive()) {
            throw new SpeedoRuntimeException("Non persistent object does not have identifier: " + o);
        }
        try {
            return pnc.encodeAbstract(po.getPName());
        } catch (PException e) {
View Full Code Here

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

  public void setReferenceState(CacheEntry ce, State state) {
    if (state == ((PersistentObjectItf) ce).speedoGetReferenceState()) {
      return;
    }
    PersistentObjectItf sp = (PersistentObjectItf) ce;
    if (sp.speedoIsActive() && state == null) {
        sp.speedoGetHome().sendEvent(HomeItf.PRE_CLEAR, sp, null);
    }
      sp.speedoSetReferenceState((StateItf) state);
    if (sp.speedoIsActive() && state == null) {
        sp.speedoGetHome().sendEvent(HomeItf.POST_CLEAR, sp, null);
View Full Code Here

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

    PersistentObjectItf sp = (PersistentObjectItf) ce;
    if (sp.speedoIsActive() && state == null) {
        sp.speedoGetHome().sendEvent(HomeItf.PRE_CLEAR, sp, null);
    }
      sp.speedoSetReferenceState((StateItf) state);
    if (sp.speedoIsActive() && state == null) {
        sp.speedoGetHome().sendEvent(HomeItf.POST_CLEAR, sp, null);
    }
  }

  public void makeClean(State state) {
View Full Code Here

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

    return ((StateItf) state).hasBeenFlush();
  }

  public void makeUnbound(CacheEntry ce) {
    PersistentObjectItf sp = (PersistentObjectItf) ce;
    sp.speedoIsActive(false);
    try {
            sp.init(null);
        } catch (PException e) {
            logger.log(BasicLevel.WARN, "Error during the unbinding: ", e);
        }
View Full Code Here

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

        //instanciate the PersistentObjectItf clone
        clone = newSpeedoPOInstance(sp.getClass());
        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
View Full Code Here

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

   
    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) {
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.