From: Alexey L. <lou...@us...> - 2003-06-06 12:13:02
|
User: loubyansky Date: 03/06/06 05:13:01 Modified: src/main/org/jboss/test/cmp/jbossdo/byhand PersistablePOJO.java Log: updated to use JBossPersistenceManagerInternal Revision Changes Path 1.3 +5 -4 jbosstest/src/main/org/jboss/test/cmp/jbossdo/byhand/PersistablePOJO.java Index: PersistablePOJO.java =================================================================== RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/cmp/jbossdo/byhand/PersistablePOJO.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- PersistablePOJO.java 5 Jun 2003 13:35:30 -0000 1.2 +++ PersistablePOJO.java 6 Jun 2003 12:13:00 -0000 1.3 @@ -10,6 +10,7 @@ import org.jboss.persistence.jbossdo.JBossStateManager; import org.jboss.persistence.jbossdo.JBossStateManagerImpl; import org.jboss.persistence.jbossdo.JBossPersistenceManager; +import org.jboss.persistence.jbossdo.JBossPersistenceManagerInternal; import javax.jdo.spi.PersistenceCapable; import javax.jdo.spi.StateManager; @@ -187,11 +188,11 @@ // JBossPersistenceCapable implementation - public void jdoProvideStateManager(JBossPersistenceManager pm) + public void jdoProvideStateManager(JBossPersistenceManager internal) { - PersistenceManager myPM = jdoStateManager.getPersistenceManager(this); - if(myPM != null && !myPM.equals(pm)) + JBossPersistenceManagerInternal myInternalPM = ((JBossStateManager)jdoStateManager).getInternalPM(); + if(myInternalPM != null && !myInternalPM.equals(internal)) throw new JDOUserException("PersistenceCapable instance associated with another PersistenceManager instance."); - pm.providedStateManager((JBossStateManager)jdoStateManager, this); + ((JBossPersistenceManagerInternal)internal).providedStateManager((JBossStateManager)jdoStateManager, this); } } |