Search in sources :

Example 1 with DeleteQualifierCommand

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

the class JournaledEngine method deleteQualifier.

@Override
public void deleteQualifier(long id) {
    Qualifier qualifier = getQualifier(id);
    deligate.deleteQualifier(id);
    synchronized (swithJournalLock) {
        journal.store(new DeleteQualifierCommand(this, qualifier));
    }
    QualifierEvent event = new QualifierEvent(this, qualifier, null);
    qualifierDeleted(event);
}
Also used : DeleteQualifierCommand(com.ramussoft.common.journal.command.DeleteQualifierCommand) Qualifier(com.ramussoft.common.Qualifier) QualifierEvent(com.ramussoft.common.event.QualifierEvent)

Aggregations

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