Search in sources :

Example 1 with TransactionStorageCommand

use of com.ramussoft.common.journal.command.TransactionStorageCommand in project ramus by Vitaliy-Yakovchuk.

the class JournaledEngine method setAttribute.

@Override
public boolean setAttribute(long elementId, long attributeId, Transaction transaction) {
    boolean updated = deligate.setBinaryAttribute(elementId, attributeId, transaction);
    transaction.setRemoveBranchInfo(updated);
    TransactionStorageCommand command = new TransactionStorageCommand(this, elementId, attributeId, transaction);
    synchronized (swithJournalLock) {
        journal.store(command);
    }
    return updated;
}
Also used : TransactionStorageCommand(com.ramussoft.common.journal.command.TransactionStorageCommand)

Aggregations

TransactionStorageCommand (com.ramussoft.common.journal.command.TransactionStorageCommand)1