Examples of POManagerItf


Examples of org.objectweb.speedo.pm.api.POManagerItf

      if (sa == null) {
        sp.speedoSetReferenceState(sp.speedoCreateState());
      }
      return sa;
    }
    POManagerItf pm = pmf.lookup();
    if (pm == null) {
        throw personality.newUserRuntimeException("When a persistent object is used (read), a PersistenceManager is needed");
    }
    TransactionItf t = pm.getSpeedoTransaction();
    try {
        StateItf sa = (StateItf) tpm.readIntention(t, sp, null);
        sa.loadFields(pm, fields);
        return sa;
        } catch (RolledBackPersistenceException e) {
View Full Code Here

Examples of org.objectweb.speedo.pm.api.POManagerItf

      if (sa == null) {
        sp.speedoSetReferenceState(sp.speedoCreateState());
      }
      return sa;
    }
    POManagerItf pm = pmf.lookup();
    if (pm == null) {
        throw personality.newUserRuntimeException("When a persistent object is used (read), a PersistenceManager/EntityManager is needed");
    }
    TransactionItf t = pm.getSpeedoTransaction();
    try {
      sendEvent(PRE_DIRTY, sp, null);
        StateItf sa = (StateItf) tpm.writeIntention(t, sp,
                isFieldLockingLevel ? thinLock : null);
        sa.loadFields(pm, fields);
View Full Code Here

Examples of org.objectweb.speedo.pm.api.POManagerItf

   */
  public final StateItf getState(PersistentObjectItf sp) {
    if (!sp.speedoIsActive()) {
      return sp.speedoGetReferenceState();
    }
    POManagerItf pm = pmf.lookup();
    if (pm == null) {
        throw personality.newUserRuntimeException("When a persistent object is used (read or write), a PersistenceManager is needed");
    }
    return (StateItf) pm.getSpeedoTransaction().lookup(sp.getPName());
  }
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.