Package ch.agent.crnickl.impl

Examples of ch.agent.crnickl.impl.SeriesDefinitionImpl


  }
 
  private Collection<SeriesDefinition> makeSeriesSchemas(Database database, List<List<RawSchemaComponent>> allSeries) throws T2DBException {
    Collection<SeriesDefinition> schemas = new ArrayList<SeriesDefinition>();
    for (List<RawSchemaComponent> oneSeries : allSeries) {
      SeriesDefinitionImpl sch = null;
      String description = null;
      RawSchemaComponent rsc = find(oneSeries, DatabaseBackend.MAGIC_NAME_NR);
      if (rsc != null) {
        if (rsc.propId < 1) {
          sch = new SeriesDefinitionImpl(rsc.seriesNr, null, null);
          sch.edit();
          sch.setErasing(true);
        } else
          description = rsc.description;
      }
      if (sch == null)
        sch = new SeriesDefinitionImpl(oneSeries.get(0).seriesNr, description, makeAttributeDefinitions(database, oneSeries));
      schemas.add(sch);
    }
    return schemas;
  }
View Full Code Here


  }
 
  private Collection<SeriesDefinition> makeSeriesSchemas(Database database, List<List<RawSchemaComponent>> allSeries) throws T2DBException {
    Collection<SeriesDefinition> schemas = new ArrayList<SeriesDefinition>();
    for (List<RawSchemaComponent> oneSeries : allSeries) {
      SeriesDefinitionImpl sch = null;
      String description = null;
      RawSchemaComponent rsc = find(oneSeries, DatabaseBackend.MAGIC_NAME_NR);
      if (rsc != null) {
        if (rsc.propId < 1) {
          sch = new SeriesDefinitionImpl(rsc.seriesNr, null, null);
          sch.edit();
          sch.setErasing(true);
        } else
          description = rsc.description;
      }
      if (sch == null)
        sch = new SeriesDefinitionImpl(oneSeries.get(0).seriesNr, description, makeAttributeDefinitions(database, oneSeries));
      schemas.add(sch);
    }
    return schemas;
  }
View Full Code Here

  }
 
  private Collection<SeriesDefinition> makeSeriesSchemas(Database database, List<List<RawSchemaComponent>> allSeries) throws T2DBException {
    Collection<SeriesDefinition> schemas = new ArrayList<SeriesDefinition>();
    for (List<RawSchemaComponent> oneSeries : allSeries) {
      SeriesDefinitionImpl sch = null;
      String description = null;
      RawSchemaComponent rsc = find(oneSeries, DatabaseBackend.MAGIC_NAME_NR);
      if (rsc != null) {
        if (rsc.propId < 1) {
          sch = new SeriesDefinitionImpl(rsc.seriesNr, null, null);
          sch.edit();
          sch.setErasing(true);
        } else
          description = rsc.description;
      }
      if (sch == null)
        sch = new SeriesDefinitionImpl(oneSeries.get(0).seriesNr, description, makeAttributeDefinitions(database, oneSeries));
      schemas.add(sch);
    }
    return schemas;
  }
View Full Code Here

  }
 
  private SeriesDefinition seriesDefinition(Surrogate schemaSurrogate, Database db, BasicDBObject bo) throws T2DBException {
    int number = bo.getInt(MongoDatabase.FLD_SERIESDEF_NUM);
    boolean era = bo.getBoolean(MongoDatabase.FLD_SERIESDEF_ERASING);
    SeriesDefinitionImpl def = null;
    if (era) {
      def = new SeriesDefinitionImpl(number, null, null);
      def.edit();
      def.setErasing(true);
    } else {
      String desc =  bo.getString(MongoDatabase.FLD_SERIESDEF_DESC);
      BasicDBList list = (BasicDBList)bo.get(MongoDatabase.FLD_SERIESDEF_ATTRIBS);
      Collection<AttributeDefinition<?>> attribs = attributeDefinitions(schemaSurrogate, number, db, list);
      def = new SeriesDefinitionImpl(number, desc, attribs);
    }
    return def;
  }
View Full Code Here

TOP

Related Classes of ch.agent.crnickl.impl.SeriesDefinitionImpl

Copyright © 2018 www.massapicom. 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.