Package ch.agent.crnickl.api

Examples of ch.agent.crnickl.api.DBObjectId


    }
    return ssCopies;
  }
 
  private void unRef(SchemaImpl schema) {
    DBObjectId id = schema.getId();
    SchemaRefCounter ref = schemaCache.get(id);
    if (ref.decr() < 1) {
      schemaCache.remove(id);
      for (AttributeDefinition<?> def : schema.getAttributeDefinitions()) {
        unRef(def.getProperty());
View Full Code Here


  /**
   * @param property may not be null
   * @return the single copy of property in cache
   */
  private Property<?> ref(Property<?> property) {
    DBObjectId id = property.getId();
    PropertyRefCounter ref = propCache.get(id);
    Property<?> p = null;
    if (ref == null) {
      p = property;
      propCache.put(id, new PropertyRefCounter(p));
View Full Code Here

    }
    return p;
  }
 
  private void unRef(Property<?> property) {
    DBObjectId id = property.getId();
    PropertyRefCounter ref = propCache.get(id);
    if (ref.decr() < 1) {
      propCache.remove(id);
      propByNameCache.remove(property.getName());
    }
View Full Code Here

    reset();
  }

  @Override
  public void clear(Chronicle chronicle) {
    DBObjectId id = chronicle.getId();
    if (id != null) {
      ChronicleImpl e = byIdCache.remove(id);
      if (e != null)
        remove(e);
    }
View Full Code Here

TOP

Related Classes of ch.agent.crnickl.api.DBObjectId

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.