Package org.objectweb.speedo.mim.jdo.api

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


      if (o == null)
        return;
        assertIsOpen();
        bindPMThread();
        JDOPersistentObjectItf sp = (JDOPersistentObjectItf) o;
        if (tx.isActive() && sp.jdoIsDirty())
            throw new JDOUserException("Impossible to evict a dirty " +
                    "instance attached to an active transaction");
        try {
      tpm.evict(tx, sp.getCeIdentifier(), false);
        } catch (PersistenceException e) {
View Full Code Here


      || !((JDOPersistentObjectItf) o).jdoIsPersistent()) {
      return;
    }
        JDOPersistentObjectItf sp = (JDOPersistentObjectItf) o;
        synchronized(sp) {
      if (sp.jdoIsDirty()) {
        throw new JDOUserException("Try to make transient a dirty instance.");
            }
      try {
        tpm.unbind(tx, sp);
      } catch (PersistenceException e) {
View Full Code Here

        //preconditions
        assertIsOpen();
        bindPMThread();
        assertIsPO(sp, "");
        assertPOManager(sp);
        if (sp.jdoIsDirty())
            throw new JDOUserException("Try to make non-transactional a dirty instance.");
    sp.speedoGetState().speedoChangeStatus(LifeCycle.ACTION_MAKENONTRANSACTIONAL);
    }

    public void makeNontransactionalAll(Object[] pcs) {
View Full Code Here

    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()){
          //flush
          tpm.flush(tx, sa);
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.