use of com.sun.jdo.spi.persistence.support.sqlstore.PersistenceManager in project Payara by payara.
the class PersistenceManagerImpl method internalDeletePersistent.
private void internalDeletePersistent(PersistenceCapable pc) {
if (!(pc.jdoIsPersistent())) {
throw new JDOException(I18NHelper.getMessage(messages, // NOI18N
"jdo.persistencemanagerimpl.internaldeletepersistent.transient"), new Object[] { pc });
}
StateManager sm = pc.jdoGetStateManager();
PersistenceManager pm = (PersistenceManager) sm.getPersistenceManagerInternal();
if (this != pm) {
throw new JDOUserException(I18NHelper.getMessage(messages, // NOI18N
"jdo.persistencemanagerimpl.another_pm"), new Object[] { pc });
}
if (!pc.jdoIsDeleted()) {
//
// Synchronization is done in the state manager.
//
sm.deletePersistent();
}
}
Aggregations