Search in sources :

Example 1 with UpdateQualifierCommand

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

the class JournaledEngine method updateQualifier.

@Override
public void updateQualifier(Qualifier qualifier) {
    Qualifier old = getQualifier(qualifier.getId());
    QualifierEvent event = new QualifierEvent(this, old, qualifier);
    beforeQualifierUpdated(event);
    event = new QualifierEvent(this, old, qualifier);
    UpdateQualifierCommand command = new UpdateQualifierCommand(this, old, qualifier);
    deligate.updateQualifier(qualifier);
    synchronized (swithJournalLock) {
        journal.store(command);
    }
    updateElementNames(old, qualifier);
    qualifierUpdated(event);
}
Also used : Qualifier(com.ramussoft.common.Qualifier) QualifierEvent(com.ramussoft.common.event.QualifierEvent) UpdateQualifierCommand(com.ramussoft.common.journal.command.UpdateQualifierCommand)

Aggregations

Qualifier (com.ramussoft.common.Qualifier)1 QualifierEvent (com.ramussoft.common.event.QualifierEvent)1 UpdateQualifierCommand (com.ramussoft.common.journal.command.UpdateQualifierCommand)1