throw new DatabaseClosedException("Database is not open");
}
TransactionImpl tx = getTransaction();
if (tx == null || !tx.isOpen())
{
throw new TransactionNotInProgressException("No transaction in progress, cannot delete persistent");
}
tx.lockAndRegister(new RuntimeObject(object, tx), Transaction.WRITE, false);
tx.markDelete(object);
}