Examples of speedoGetStatus()


Examples of org.objectweb.speedo.mim.api.StateItf.speedoGetStatus()

    }

    public boolean jdoIsDirty() {
        StateItf sa = speedoGetState();
        return sa != null
                && !LifeCycle.isTransient(sa.speedoGetStatus())
                && LifeCycle.isDirty(sa.speedoGetStatus());
    }

    public boolean jdoIsDetached() {
        //TODO: IMPLEMENT JDO 2
View Full Code Here

Examples of org.objectweb.speedo.mim.api.StateItf.speedoGetStatus()

    public boolean jdoIsDirty() {
        StateItf sa = speedoGetState();
        return sa != null
                && !LifeCycle.isTransient(sa.speedoGetStatus())
                && LifeCycle.isDirty(sa.speedoGetStatus());
    }

    public boolean jdoIsDetached() {
        //TODO: IMPLEMENT JDO 2
        return false;
View Full Code Here

Examples of org.objectweb.speedo.mim.api.StateItf.speedoGetStatus()

        //TODO: IMPLEMENT JDO 2
    }
    public boolean jdoIsTransactional() {
        StateItf sa = speedoGetState();
        return sa != null
                && !LifeCycle.isTransient(sa.speedoGetStatus())
                && LifeCycle.isTransactional(sa.speedoGetStatus());
    }

    public boolean jdoIsPersistent() {
      return speedoIsPersistent();
View Full Code Here

Examples of org.objectweb.speedo.mim.api.StateItf.speedoGetStatus()

    }
    public boolean jdoIsTransactional() {
        StateItf sa = speedoGetState();
        return sa != null
                && !LifeCycle.isTransient(sa.speedoGetStatus())
                && LifeCycle.isTransactional(sa.speedoGetStatus());
    }

    public boolean jdoIsPersistent() {
      return speedoIsPersistent();
    }
View Full Code Here

Examples of org.objectweb.speedo.mim.api.StateItf.speedoGetStatus()

      return speedoIsPersistent();
    }

    public boolean jdoIsNew() {
        StateItf sa = speedoGetState();
        return sa != null && LifeCycle.isNew(sa.speedoGetStatus());
    }

    public boolean jdoIsDeleted() {
        StateItf sa = speedoGetState();
        return sa != null && LifeCycle.isDeleted(sa.speedoGetStatus());
View Full Code Here

Examples of org.objectweb.speedo.mim.api.StateItf.speedoGetStatus()

        return sa != null && LifeCycle.isNew(sa.speedoGetStatus());
    }

    public boolean jdoIsDeleted() {
        StateItf sa = speedoGetState();
        return sa != null && LifeCycle.isDeleted(sa.speedoGetStatus());
    }

    public void jdoReplaceStateManager(StateManager sm) {
        // nothing to do, No StateItf manager is used
    }
View Full Code Here

Examples of org.objectweb.speedo.mim.api.StateItf.speedoGetStatus()

    // IMPLEMENTATION OF THE PersistentObjectItf INTERFACE //
    //---------------------------------------------//

    public boolean speedoIsPersistent() {
        StateItf sa = speedoGetState();
        return sa == null || LifeCycle.isPersistent(sa.speedoGetStatus());
    }

  public void speedoCopyState(StateItf src, StateItf dest) {
    ((GenClassAccessor) dest).loadFieldsFromAccessor(src);
  }
View Full Code Here

Examples of org.objectweb.speedo.mim.api.StateItf.speedoGetStatus()

            logger.log(BasicLevel.DEBUG, "read ctx=" + context
                    + " / oid=" + oid
                    + " / obj.class=" + obj.getClass().getName());
        StateItf state = (StateItf) obj;
    PersistentObjectItf pb = (PersistentObjectItf) state.getSpeedoPO();
    int speedoStatus = state.speedoGetStatus();
    if (pb.getStatus() == PBinding.LIFECYCLE_DELTOWRITE
            && speedoStatus != LifeCycle.PERSISTENT_DELETED
            && speedoStatus != LifeCycle.PERSISTENT_NEW_DELETED) {
        throw new PersistenceException(
                "Concurrency problem, transaction must be rolledback");
View Full Code Here

Examples of org.objectweb.speedo.mim.api.StateItf.speedoGetStatus()

                    + " / oid=" + oid
                    + " / obj.class=" + obj.getClass().getName()
                    + " / tx=" + ws);
        StateItf state = (StateItf) obj;
    PersistentObjectItf pb = (PersistentObjectItf) state.getSpeedoPO();
    int speedoStatus = state.speedoGetStatus();
    if (pb.getStatus() == PBinding.LIFECYCLE_DELTOWRITE
            && speedoStatus != LifeCycle.PERSISTENT_DELETED
            && speedoStatus != LifeCycle.PERSISTENT_NEW_DELETED) {
        throw new PersistenceException(
                "Concurrency problem, transaction must be rolledback");
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.