Examples of speedoGetHome()


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

        //return detached;
        sp = (PersistentObjectItf) detached;
      } else {
        sp = (PersistentObjectItf) speedoGetObjectById(oid, false);
      }
        sp.speedoGetHome().sendEvent(HomeItf.PRE_ATTACH, sp, null);
      StateItf sar = sp.speedoGetHome().readIntention(sp, null);
      //if made persistent in this method
      // force the state to detached_dirty
      if (oid == null) {
        sar.forceDetachedDirty();
View Full Code Here

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

        sp = (PersistentObjectItf) detached;
      } else {
        sp = (PersistentObjectItf) speedoGetObjectById(oid, false);
      }
        sp.speedoGetHome().sendEvent(HomeItf.PRE_ATTACH, sp, null);
      StateItf sar = sp.speedoGetHome().readIntention(sp, null);
      //if made persistent in this method
      // force the state to detached_dirty
      if (oid == null) {
        sar.forceDetachedDirty();
      }
View Full Code Here

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

      // force the state to detached_dirty
      if (oid == null) {
        sar.forceDetachedDirty();
      }
      //call the attach method on the po
      sp.speedoGetHome().attachCopy(sp, this, map, detached, sar);
      // if made persistent in this method
      // restore the state to detached_none
      if (oid == null) {
        sar.restoreDetachedNone();
      }
View Full Code Here

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

      if (oid == null) {
        sar.restoreDetachedNone();
      }
      //change the version on attach
      sar.speedoChangeVersion();
        sp.speedoGetHome().sendEvent(HomeItf.POST_ATTACH, sp, null);
      return sp;
    } catch (Exception e) {
      Exception ie = ExceptionHelper.getNested(e);
      String msg = "Impossible to attach a copy of the persistent object with the identifier: " + oid;
      logger.log(BasicLevel.INFO, msg, ie);
View Full Code Here

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

        try {
            pb.read(context, state);
            context.getWorkingSet().bind(state, oid, WorkingSet.UNKNOWN_INTENTION);
            //modified with rebind
            state.indexFieldModified(Integer.MAX_VALUE, true);
          pb.speedoGetHome().sendEvent(HomeItf.POST_LOAD, pb, null);
        } catch (PExceptionNoDSI e) {
      if (logger.isLoggable(BasicLevel.DEBUG)) {
              logger.log(BasicLevel.DEBUG, "read ==> NO DSI");
      }
      throw new NoDSIPersistenceException(e);
View Full Code Here

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

        try {
            pb.read(conn, state, ctx, forUpdate);
            ws.bind(state, oid, WorkingSet.UNKNOWN_INTENTION);
            //modified with rebind
            state.indexFieldModified(Integer.MAX_VALUE, true);
          pb.speedoGetHome().sendEvent(HomeItf.POST_LOAD, pb, null);
    } catch (PExceptionNoDSI e) {
      if (logger.isLoggable(BasicLevel.DEBUG)) {
              logger.log(BasicLevel.DEBUG, "read ==> NO DSI");
      }
      throw new NoDSIPersistenceException(e);
View Full Code Here

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

        preEvent = HomeItf.PRE_DELETE;
        postEvent = HomeItf.POST_DELETE;
        break;
      }
         if (preEvent != 0 && postEvent != 0) {
          pb.speedoGetHome().sendEvent(preEvent, pb, null);
      try {
        pb.write(context, (PAccessor) obj);
      } catch (PExceptionNoDSI e) {
        throw new NoDSIPersistenceException(e);
      } catch (PException e) {
View Full Code Here

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

      } catch (PExceptionNoDSI e) {
        throw new NoDSIPersistenceException(e);
      } catch (PException e) {
        throw new PersistenceException(e);
      }
             pb.speedoGetHome().sendEvent(postEvent, pb, null);
    }
    }

  public void beginWS(WorkingSet ws) {
    synchronized(ws2removedpo) {
View Full Code Here

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

    if (o == null) {
      logger.log(BasicLevel.WARN, "Impossible to find the home: null object");
      return null;
    } else if (o instanceof PersistentObjectItf) {
            PersistentObjectItf po =(PersistentObjectItf) o;
      HomeItf h = po.speedoGetHome();
      if (h == null) {
                if (o instanceof SpeedoGenClassPO) {
                    PName pn = po.getPName();
                    if (pn == null) {
                        h = (HomeItf) ((PBinder) pn.getPNameManager()).getBinderClassMapping();
View Full Code Here

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

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