use of com.ramussoft.common.journal.command.UpdateAttributeCommand in project ramus by Vitaliy-Yakovchuk.
the class JournaledEngine method updateAttribute.
@Override
public void updateAttribute(Attribute attribute) {
Attribute old = getAttribute(attribute.getId());
deligate.updateAttribute(attribute);
synchronized (swithJournalLock) {
journal.store(new UpdateAttributeCommand(this, old, attribute));
}
AttributeEvent event = new AttributeEvent(this, null, attribute, old, attribute);
for (AttributeListener listener : attributeListeners) {
listener.attributeUpdated(event);
}
}
Aggregations