Examples of UpdateEventImpl


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, getSchemaUpdatePolicy());
    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, getSchemaUpdatePolicy());
    publish(new UpdateEventImpl(UpdateEventOperation.MODIFY, valueType));
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl

  }

  @Override
  public void create(UpdatableSchema schema) throws T2DBException {
    getWriteMethodsForSchema().createSchema(schema);
    publish(new UpdateEventImpl(UpdateEventOperation.CREATE, schema));
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl

  }

  @Override
  public void update(UpdatableSchema schema) throws T2DBException {
    getWriteMethodsForSchema().updateSchema(schema);
    ((UpdateEventPublisherImpl)getUpdateEventPublisher()).publish(new UpdateEventImpl(UpdateEventOperation.MODIFY, schema), false);
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl

   
  @Override
  public void deleteSchema(UpdatableSchema schema) throws T2DBException {
    getWriteMethodsForSchema().deleteSchema(schema);
    String comment = schema.getName();
    publish(new UpdateEventImpl(UpdateEventOperation.DELETE, schema).withComment(comment));
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl

  }
 
  @Override
  public void create(UpdatableChronicle entity) throws T2DBException {
    getWriteMethodsForChroniclesAndSeries().createChronicle(entity);
    publish(new UpdateEventImpl(UpdateEventOperation.CREATE, entity).withComment(entity.getDescription(false)));
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl

  }
 
  @Override
  public void update(UpdatableChronicle entity) throws T2DBException {
    getWriteMethodsForChroniclesAndSeries().updateChronicle(entity, getChronicleUpdatePolicy());
    publish(new UpdateEventImpl(UpdateEventOperation.MODIFY, entity));
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl

  }
 
  @Override
  public void deleteAttributeValue(UpdatableChronicle entity, AttributeDefinition<?> def) throws T2DBException {
    getWriteMethodsForChroniclesAndSeries().deleteAttribute(entity, def);
    publish(new UpdateEventImpl(UpdateEventOperation.MODIFY, entity).withComment("delete attribute #" + def.getNumber()));
  }
View Full Code Here

Examples of ch.agent.crnickl.impl.UpdateEventImpl

  }

  @Override
  public void update(UpdatableChronicle entity, AttributeDefinition<?> def, String value, String description) throws T2DBException {
    getWriteMethodsForChroniclesAndSeries().updateAttribute(entity, def, value, description);
    publish(new UpdateEventImpl(UpdateEventOperation.MODIFY, entity).withComment(String.format("%s=%s", def.getProperty().getName(), value)));
  }
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.