Search in sources :

Example 1 with FormulaCommand

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

the class JournaledEngine method setCalculateInfo.

@Override
public void setCalculateInfo(CalculateInfo formula) {
    CalculateInfo old = deligate.getCalculateInfo(formula.getElementId(), formula.getAttributeId());
    deligate.setCalculateInfo(formula);
    synchronized (swithJournalLock) {
        journal.store(new FormulaCommand(this, old, formula));
    }
    FormulaEvent event = new FormulaEvent(this, false, old, formula);
    formulaChanged(event);
}
Also used : FormulaCommand(com.ramussoft.common.journal.command.FormulaCommand) CalculateInfo(com.ramussoft.common.CalculateInfo) FormulaEvent(com.ramussoft.common.event.FormulaEvent)

Aggregations

CalculateInfo (com.ramussoft.common.CalculateInfo)1 FormulaEvent (com.ramussoft.common.event.FormulaEvent)1 FormulaCommand (com.ramussoft.common.journal.command.FormulaCommand)1