Search in sources :

Example 1 with CreateAttributeCommand

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

the class JournaledEngine method registerCreation.

private Attribute registerCreation(Attribute attribute) {
    synchronized (swithJournalLock) {
        journal.store(new CreateAttributeCommand(this, attribute));
    }
    AttributeEvent event = new AttributeEvent(this, null, attribute, null, attribute);
    attributeCreated(event);
    return attribute;
}
Also used : CreateAttributeCommand(com.ramussoft.common.journal.command.CreateAttributeCommand) AttributeEvent(com.ramussoft.common.event.AttributeEvent)

Aggregations

AttributeEvent (com.ramussoft.common.event.AttributeEvent)1 CreateAttributeCommand (com.ramussoft.common.journal.command.CreateAttributeCommand)1