mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/persistence/AbstractDataStore.java
protected void delete(final DataType object)
    {
        if (object == null)
        {
            return;
        }

        synchronized (this)
        {
            final PersistenceManager persistenceManager = getPersistenceManager();
            final Transaction transaction = persistenceManager.currentTransaction();
            try
            {
                m_WakeLock.activate();

                transaction.begin();
                persistenceManager.deletePersistent(object);
                transaction.commit();

                transaction.begin();
                deleteCleanup();
                transaction.commit();
            }
            finally
            {
                if (transaction.isActive())
                {
                    transaction.rollback();
                }

                m_WakeLock.cancel();
            }
        }
        
    }
/**
     * Helper method for deleting the specified persistent T class objects; wraps PersistenceManager calls.
     * 
     * @param object
     *            the specified persistent T class object
     */
Helper method for deleting the specified persistent T class objects; wraps PersistenceManager calls.

@param object
the specified persistent T class object
Helper method for deleting the specified persistent T class objects ; wraps PersistenceManager calls . @param object the specified persistent T class object
protected void delete(final DataType object)
    {
        if (object == null)
        {
            return;
        }
        synchronized (this)
        {
            final PersistenceManager persistenceManager = getPersistenceManager();
            final Transaction transaction = persistenceManager.currentTransaction();
            try
            {
                m_WakeLock.activate();
                transaction.begin();
                persistenceManager.deletePersistent(object);
                transaction.commit();
                transaction.begin();
                deleteCleanup();
                transaction.commit();
            }
            finally
            {
                if (transaction.isActive())
                {
                    transaction.rollback();
                }
                m_WakeLock.cancel();
            }
        }
    }
protected void delete ( final DataType object ) { if ( object == null ) { return ; } synchronized ( this ) { final PersistenceManager persistenceManager = getPersistenceManager ( ) ; final Transaction transaction = persistenceManager . currentTransaction ( ) ; try { m_WakeLock . activate ( ) ; transaction . begin ( ) ; persistenceManager . deletePersistent ( object ) ; transaction . commit ( ) ; transaction . begin ( ) ; deleteCleanup ( ) ; transaction . commit ( ) ; } finally { if ( transaction . isActive ( ) ) { transaction . rollback ( ) ; } m_WakeLock . cancel ( ) ; } } }
Helper method for deleting the specified persistent T class objects; wraps PersistenceManager calls.
Helper method for deleting the specified persistent T class objects ; wraps PersistenceManager calls .