Examples of UpdateEventImpl


Examples of ch.agent.crnickl.impl.UpdateEventImpl

  @Override
  public void deleteChronicle(UpdatableChronicle entity) throws T2DBException {
    getWriteMethodsForChroniclesAndSeries().deleteChronicle(entity, getChronicleUpdatePolicy());
    // pass name and description as comment, because they are lost when logger gets them
    String comment = getNamingPolicy().joinValueAndDescription(entity.getName(true), entity.getDescription(false));
    publish(new UpdateEventImpl(UpdateEventOperation.DELETE, entity).withComment(comment));
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl

  }
 
  @Override
  public <T>void create(UpdatableSeries<T> series) throws T2DBException {
    getWriteMethodsForChroniclesAndSeries().createSeries(series);
    publish(new UpdateEventImpl(UpdateEventOperation.CREATE, series));
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl

  @Override
  public <T>void deleteSeries(UpdatableSeries<T> series) throws T2DBException {
    getWriteMethodsForChroniclesAndSeries().deleteSeries(series, getChronicleUpdatePolicy());
    String comment = getNamingPolicy().joinValueAndDescription(series.getName(true), series.getDescription(false));
    publish(new UpdateEventImpl(UpdateEventOperation.DELETE, series).withComment(comment));
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl

  }

  @Override
  public void create(UpdatableProperty<?> property) throws T2DBException {
    getWriteMethodsForProperty().createProperty(property);
    publish(new UpdateEventImpl(UpdateEventOperation.CREATE, property));
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl

  @Override
  public void deleteProperty(UpdatableProperty<?> property) throws T2DBException {
    getWriteMethodsForProperty().deleteProperty(property);
    String comment = property.getName();
    publish(new UpdateEventImpl(UpdateEventOperation.DELETE, property).withComment(comment));
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl

  }

  @Override
  public void update(UpdatableProperty<?> property) throws T2DBException {
    getWriteMethodsForProperty().updateProperty(property);
    publish(new UpdateEventImpl(UpdateEventOperation.MODIFY, property));
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl


  @Override
  public <T>void create(UpdatableValueType<T> valueType) throws T2DBException {
    getWriteMethodsForValueType().createValueType(valueType);
    publish(new UpdateEventImpl(UpdateEventOperation.CREATE, valueType));
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl

  @Override
  public void deleteValueType(UpdatableValueType<?> valueType) throws T2DBException {
    getWriteMethodsForValueType().deleteValueType(valueType);
    String comment = valueType.getName();
    publish(new UpdateEventImpl(UpdateEventOperation.DELETE, valueType).withComment(comment));
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl

  }

  @Override
  public void update(UpdatableValueType<?> valueType) throws T2DBException {
    getWriteMethodsForValueType().updateValueType(valueType);
    publish(new UpdateEventImpl(UpdateEventOperation.MODIFY, valueType));
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl

  }

  @Override
  public <T>void update(UpdatableValueType<T> valueType, Map<T, String> added, Map<T, String> edited, Set<T> deleted) throws T2DBException {
    getWriteMethodsForValueType().updateValueType(valueType, added, edited, deleted);
    publish(new UpdateEventImpl(UpdateEventOperation.MODIFY, valueType));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.