Examples of inConstruction()


Examples of ch.agent.crnickl.api.Surrogate.inConstruction()

 
 
  private <T>DBObjectId insert(UpdatableSchema schema) throws T2DBException {
    com.mongodb.BasicDBObject bo = new BasicDBObject();
    Surrogate s = schema.getSurrogate();
    if (!s.inConstruction())
      bo.put(MongoDatabase.FLD_ID, getId(schema));
    bo.put(MongoDatabase.FLD_SCHEMA_NAME, schema.getName());
    bo.put(MongoDatabase.FLD_SCHEMA_BASE, getIdOrZero(schema.getBase()));
    bo.put(MongoDatabase.FLD_SCHEMA_ATTRIBS, attributeDefinitions(schema.getAttributeDefinitions()));
    bo.put(MongoDatabase.FLD_SCHEMA_SERIES, seriesDefinitions(schema.getSeriesDefinitions()));
View Full Code Here

Examples of ch.agent.crnickl.api.Surrogate.inConstruction()

  }
 
  private DBObjectId insert(Chronicle chronicle) throws T2DBException {
    com.mongodb.BasicDBObject bo = new BasicDBObject();
    Surrogate s = chronicle.getSurrogate();
    if (!s.inConstruction())
      bo.put(MongoDatabase.FLD_ID, getId(chronicle)); // use case: re-creating
    bo.put(MongoDatabase.FLD_CHRON_NAME, chronicle.getName(false));
    bo.put(MongoDatabase.FLD_CHRON_DESC, chronicle.getDescription(false));
    bo.put(MongoDatabase.FLD_CHRON_PARENT, getIdOrZero(chronicle.getCollection()));
    bo.put(MongoDatabase.FLD_CHRON_SCHEMA, getIdOrZero(chronicle.getSchema(false)));
View Full Code Here

Examples of ch.agent.crnickl.api.Surrogate.inConstruction()

  }

  private <T>DBObjectId insert(Series<T> series) throws T2DBException {
    com.mongodb.BasicDBObject bo = new BasicDBObject();
    Surrogate s = series.getSurrogate();
    if (!s.inConstruction())
      bo.put(MongoDatabase.FLD_ID, getId(series)); // use case: re-creating
    bo.put(MongoDatabase.FLD_SER_CHRON, getIdOrZero(series.getChronicle()));
    bo.put(MongoDatabase.FLD_SER_NUM, series.getNumber());
    bo.put(MongoDatabase.FLD_SER_FIRST, 1);
    bo.put(MongoDatabase.FLD_SER_LAST, 0);
View Full Code Here

Examples of ch.agent.crnickl.api.Surrogate.inConstruction()

  }
 
  private <T>DBObjectId insert(ValueType<T> vt) throws T2DBException {
    Surrogate s = vt.getSurrogate();
    com.mongodb.BasicDBObject bo = new BasicDBObject();
    if (!s.inConstruction())
      bo.put(MongoDatabase.FLD_ID, getId(vt));
    bo.put(MongoDatabase.FLD_VT_NAME, vt.getName());
    bo.put(MongoDatabase.FLD_VT_TYPE, vt.getExternalRepresentation());
    if (vt.isRestricted())
      bo.put(MongoDatabase.FLD_VT_VALUES, valueDescriptionsAsMap(vt));
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.