Package ch.agent.crnickl.api

Examples of ch.agent.crnickl.api.UpdatableSchema.addAttribute()


      schema1.addAttribute(1);
      schema1.setAttributeProperty(1, db.getProperty("prop1", true));
      schema1.setAttributeDefault(1, "t1v1");
      schema1.applyUpdates();
      UpdatableSchema schema2 = db.createSchema("schema2", "schema1");
      schema2.addAttribute(1);
      schema2.setAttributeProperty(1, db.getProperty("prop1", true));
      schema2.setAttributeDefault(1, "t1v2");
      schema2.applyUpdates();
    } catch (Exception e) {
      fail(e.getMessage());
View Full Code Here


      schema1.addSeries(1);
      schema1.setSeriesName(1, "foo");
      schema1.setSeriesDescription(1, "foo series");
      schema1.setSeriesTimeDomain(1, Workday.DOMAIN);
      schema1.setSeriesType(1, db.getValueType("numeric"));
      schema1.addAttribute(1, 6);
      schema1.setAttributeProperty(1, 6, db.getProperty("prop2", true));
      schema1.setAttributeDefault(1, 6, "t2v2");
      schema1.applyUpdates();
      assertEquals("foo", schema1.getSeriesDefinition(1, true).getName());
      assertEquals("foo series", schema1.getSeriesDefinition(1, true).getDescription());
View Full Code Here

  }
 
  public void test028_create_schema() {
    try {
      UpdatableSchema schema = db.createSchema("foo schema", null);
      schema.addAttribute(2);
      schema.setAttributeProperty(2, db.getProperty("foo property", true));
      schema.setAttributeDefault(2, "bar");
      schema.addSeries(1);
      schema.setSeriesName(1, "fooser");
      schema.setSeriesType(1, "numeric");
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.