public static void insert(VariableInstanceEntity variableInstance) { if (!variableInstance.isTransient()) { Context .getCommandContext() .getDbEntityManager() .insert(variableInstance); } }
public static void insert(VariableInstanceEntity variableInstance) { if (!variableInstance.isTransient()) { Context .getCommandContext() .getDbEntityManager() .insert(variableInstance); } }
@Override public void onCreate(final VariableInstanceEntity variableInstance, final AbstractVariableScope sourceScope) { if (getHistoryLevel().isHistoryEventProduced(HistoryEventTypes.VARIABLE_INSTANCE_CREATE, variableInstance) && !variableInstance.isTransient()) { HistoryEventProcessor.processHistoryEvents(new HistoryEventProcessor.HistoryEventCreator() { @Override public HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return producer.createHistoricVariableCreateEvt(variableInstance, sourceScope); } }); } }
@Override public void onUpdate(final VariableInstanceEntity variableInstance, final AbstractVariableScope sourceScope) { if (getHistoryLevel().isHistoryEventProduced(HistoryEventTypes.VARIABLE_INSTANCE_UPDATE, variableInstance) && !variableInstance.isTransient()) { HistoryEventProcessor.processHistoryEvents(new HistoryEventProcessor.HistoryEventCreator() { @Override public HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return producer.createHistoricVariableUpdateEvt(variableInstance, sourceScope); } }); } }
@Override public void onDelete(final VariableInstanceEntity variableInstance, final AbstractVariableScope sourceScope) { if (getHistoryLevel().isHistoryEventProduced(HistoryEventTypes.VARIABLE_INSTANCE_DELETE, variableInstance) && !variableInstance.isTransient()) { HistoryEventProcessor.processHistoryEvents(new HistoryEventProcessor.HistoryEventCreator() { @Override public HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return producer.createHistoricVariableDeleteEvt(variableInstance, sourceScope); } }); } }
@Override public void onCreate(final VariableInstanceEntity variableInstance, final AbstractVariableScope sourceScope) { if (getHistoryLevel().isHistoryEventProduced(HistoryEventTypes.VARIABLE_INSTANCE_CREATE, variableInstance) && !variableInstance.isTransient()) { HistoryEventProcessor.processHistoryEvents(new HistoryEventProcessor.HistoryEventCreator() { @Override public HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return producer.createHistoricVariableCreateEvt(variableInstance, sourceScope); } }); } }
@Override public void onDelete(final VariableInstanceEntity variableInstance, final AbstractVariableScope sourceScope) { if (getHistoryLevel().isHistoryEventProduced(HistoryEventTypes.VARIABLE_INSTANCE_DELETE, variableInstance) && !variableInstance.isTransient()) { HistoryEventProcessor.processHistoryEvents(new HistoryEventProcessor.HistoryEventCreator() { @Override public HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return producer.createHistoricVariableDeleteEvt(variableInstance, sourceScope); } }); } }
@Override public void onUpdate(final VariableInstanceEntity variableInstance, final AbstractVariableScope sourceScope) { if (getHistoryLevel().isHistoryEventProduced(HistoryEventTypes.VARIABLE_INSTANCE_UPDATE, variableInstance) && !variableInstance.isTransient()) { HistoryEventProcessor.processHistoryEvents(new HistoryEventProcessor.HistoryEventCreator() { @Override public HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return producer.createHistoricVariableUpdateEvt(variableInstance, sourceScope); } }); } }
public void delete() { if (!isTransient()) { typedValueField.notifyImplicitValueUpdate(); } // clear value clearValueFields(); if (!isTransient) { // delete variable Context.getCommandContext().getDbEntityManager().delete(this); } }
public void delete() { if (!isTransient()) { typedValueField.notifyImplicitValueUpdate(); } // clear value clearValueFields(); if (!isTransient) { // delete variable Context.getCommandContext().getDbEntityManager().delete(this); } }
public static void insert(VariableInstanceEntity variableInstance) { if (!variableInstance.isTransient()) { Context .getCommandContext() .getDbEntityManager() .insert(variableInstance); } }
@Override public void onCreate(final VariableInstanceEntity variableInstance, final AbstractVariableScope sourceScope) { if (getHistoryLevel().isHistoryEventProduced(HistoryEventTypes.VARIABLE_INSTANCE_CREATE, variableInstance) && !variableInstance.isTransient()) { HistoryEventProcessor.processHistoryEvents(new HistoryEventProcessor.HistoryEventCreator() { @Override public HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return producer.createHistoricVariableCreateEvt(variableInstance, sourceScope); } }); } }
@Override public void onUpdate(final VariableInstanceEntity variableInstance, final AbstractVariableScope sourceScope) { if (getHistoryLevel().isHistoryEventProduced(HistoryEventTypes.VARIABLE_INSTANCE_UPDATE, variableInstance) && !variableInstance.isTransient()) { HistoryEventProcessor.processHistoryEvents(new HistoryEventProcessor.HistoryEventCreator() { @Override public HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return producer.createHistoricVariableUpdateEvt(variableInstance, sourceScope); } }); } }
@Override public void onDelete(final VariableInstanceEntity variableInstance, final AbstractVariableScope sourceScope) { if (getHistoryLevel().isHistoryEventProduced(HistoryEventTypes.VARIABLE_INSTANCE_DELETE, variableInstance) && !variableInstance.isTransient()) { HistoryEventProcessor.processHistoryEvents(new HistoryEventProcessor.HistoryEventCreator() { @Override public HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return producer.createHistoricVariableDeleteEvt(variableInstance, sourceScope); } }); } }
public void delete() { if (!isTransient()) { typedValueField.notifyImplicitValueUpdate(); } // clear value clearValueFields(); if (!isTransient) { // delete variable Context.getCommandContext().getDbEntityManager().delete(this); } }