Package com.sun.jdori

Examples of com.sun.jdori.StateManagerInternal


      while (iter.hasNext())
      {
        // obtain a StateManager
        pc = (PersistenceCapable) iter.next();
        Identity oid = new Identity(pc, broker);
        StateManagerInternal smi = pmi.getStateManager(oid, pc.getClass());
       
        // fetch attributes into StateManager
      JDOClass jdoClass = Helper.getJDOClass(pc.getClass());
      fieldNums = jdoClass.getManagedFieldNumbers();

      FieldManager fm = new OjbFieldManager(pc, broker);
      smi.replaceFields(fieldNums, fm);
      smi.retrieve();
     
      // get JDO PersistencecCapable instance from SM and add it to result collection
      Object instance = smi.getObject();
      result.add(instance);
      }
      return result;  
  }
View Full Code Here


        this.optimistic = pm.currentTransaction().getOptimistic();
        boolean err = false;

        while (it.hasNext())
        {
            StateManagerInternal sm = (StateManagerInternal) it.next();
            logger.debug("OjbStoreManager.flush: " + sm.getInternalObjectId() + ", " + Helper.getLCState(sm));
            sm.preStore();
            sm.replaceSCOFields();
            sm.flush(this);
            if (!sm.isFlushed())
            {
                err = true;
                break;
            }
        }
View Full Code Here

      while (iter.hasNext())
      {
        // obtain a StateManager
        pc = (PersistenceCapable) iter.next();
        Identity oid = new Identity(pc, broker);
        StateManagerInternal smi = pmi.getStateManager(oid, pc.getClass());
       
        // fetch attributes into StateManager
      JDOClass jdoClass = Helper.getJDOClass(pc.getClass());
      fieldNums = jdoClass.getManagedFieldNumbers();

      FieldManager fm = new OjbFieldManager(pc, broker);
      smi.replaceFields(fieldNums, fm);
      smi.retrieve();
     
      // get JDO PersistencecCapable instance from SM and add it to result collection
      Object instance = smi.getObject();
      result.add(instance);
      }
      return result;  
  }
View Full Code Here

        this.optimistic = pm.currentTransaction().getOptimistic();
        boolean err = false;

        while (it.hasNext())
        {
            StateManagerInternal sm = (StateManagerInternal) it.next();
            logger.debug("OjbStoreManager.flush: " + sm.getInternalObjectId() + ", " + Helper.getLCState(sm));
            sm.preStore();
            sm.replaceSCOFields();
            sm.flush(this);
            if (!sm.isFlushed())
            {
                err = true;
                break;
            }
        }
View Full Code Here

TOP

Related Classes of com.sun.jdori.StateManagerInternal

Copyright © 2018 www.massapicom. 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.