Examples of speedoGetHome()


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

    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) {
        StateItf sa = (StateItf) state;
View Full Code Here

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

              "DeletePersistent on an instance non persistent.");
        }
        if (sp.jdoIsDeleted()) {
          return;
        }
             sp.speedoGetHome().sendEvent(HomeItf.PRE_REMOVE, sp, null);
        sa = (StateItf) tpm.unexport(tx, sp);
             sp.speedoGetHome().sendEvent(HomeItf.POST_REMOVE, sp, null);
      } catch (RolledBackPersistenceException e) {
        throw ((JDOTransactionItf) tx).rollBackOnInternalError(e);
      } catch (PersistenceException e) {
View Full Code Here

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

        if (sp.jdoIsDeleted()) {
          return;
        }
             sp.speedoGetHome().sendEvent(HomeItf.PRE_REMOVE, sp, null);
        sa = (StateItf) tpm.unexport(tx, sp);
             sp.speedoGetHome().sendEvent(HomeItf.POST_REMOVE, sp, null);
      } catch (RolledBackPersistenceException e) {
        throw ((JDOTransactionItf) tx).rollBackOnInternalError(e);
      } catch (PersistenceException e) {
        throw new JDOException("", ExceptionHelper.getNested(e));
      }
View Full Code Here

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

    }
    else{
      //makePersistent
      speedoMakePersistent(jdopo, null);
   
    if(!jdopo.speedoGetHome().isDetachable()){
      throw new JDOUserException("This class cannot be detached: it has not been defined as detachable in the jdo file.");
    }
      jdopo.speedoGetHome().sendEvent(HomeItf.PRE_DETACH, jdopo, null);
    //persistent_new or persistent_dirty: updated with object id and version
    if(jdopo.jdoIsTransactional() && jdopo.jdoIsDirty()){
View Full Code Here

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

      speedoMakePersistent(jdopo, null);
   
    if(!jdopo.speedoGetHome().isDetachable()){
      throw new JDOUserException("This class cannot be detached: it has not been defined as detachable in the jdo file.");
    }
      jdopo.speedoGetHome().sendEvent(HomeItf.PRE_DETACH, jdopo, null);
    //persistent_new or persistent_dirty: updated with object id and version
    if(jdopo.jdoIsTransactional() && jdopo.jdoIsDirty()){
      try{
        StateItf sa = (StateItf) tpm.writeIntention(tx, jdopo, null);
        if(!sa.hasBeenFlush()){
View Full Code Here

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

    }
    //the core processing
    //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;
      }
View Full Code Here

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

    //the core processing
    //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;
      }
    }
View Full Code Here

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

      }
    }
    catch(Exception e){
      throw new JDOUserException("Detach cannot be performed", new Exception[]{ExceptionHelper.getNested(e)});
    } finally {
        jdopo.speedoGetHome().sendEvent(HomeItf.POST_DETACH, jdopo, null);
    }
  }
 
  /**
   * Create a detached copy for each element of collection (assuming each element is persistent).
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.