Package org.openntf.domino.graph2.impl

Examples of org.openntf.domino.graph2.impl.DElementStore


  }

  @Override
  public Map<String, Object> findDelegate(final Object delegateKey) {
    DElementStore store = findElementStore(delegateKey);
    return store.findElementDelegate(delegateKey);
  }
View Full Code Here


    return store.findElementDelegate(delegateKey);
  }

  @Override
  public void removeDelegate(final Element element) {
    DElementStore store = findElementStore(element);
    store.removeElementDelegate(element);
  }
View Full Code Here

    return configuration_.getElementStores();
  }

  @Override
  public DElementStore findElementStore(final Element element) {
    DElementStore result = null;
    Class<?> type = element.getClass();
    String key = getTypeMap().get(type);
    if (key != null) {
      result = findElementStore(type);
    } else {
View Full Code Here

    return result;
  }

  @Override
  public DElementStore findElementStore(final Class<?> type) {
    DElementStore result = getDefaultElementStore();
    String key = getTypeMap().get(type);
    if (key != null) {
      DElementStore chk = getElementStores().get(key);
      if (chk != null) {
        result = chk;
      }
    }
    return result;
View Full Code Here

    return result;
  }

  @Override
  public DElementStore findElementStore(final Object delegateKey) {
    DElementStore result = null;
    if (delegateKey instanceof CharSequence) {
      CharSequence skey = (CharSequence) delegateKey;
      if (skey.length() == 48) {
        if (DominoUtils.isHex(skey)) {
          CharSequence prefix = skey.subSequence(0, 16);
View Full Code Here

  }

  @Override
  public void addElementStore(final DElementStore store) {
    String key = store.getStoreKey();
    DElementStore schk = getElementStores().get(key);
    if (schk == null) {
      getElementStores().put(key, store);
    }
    List<Class<?>> types = store.getTypes();
    for (Class<?> type : types) {
View Full Code Here

  @Override
  public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException {
    defaultElementStoreKey_ = in.readUTF();
    int count = in.readInt();
    for (int i = 0; i < count; i++) {
      DElementStore store = (DElementStore) in.readObject();
      addElementStore(store);
      store.setConfiguration(this);
    }

  }
View Full Code Here

      if (skey.length() == 48) {
        if (DominoUtils.isHex(skey)) {
          CharSequence prefix = skey.subSequence(0, 16);
          result = getElementStores().get(prefix);
        } else {
          throw new ElementKeyException("Cannot resolve a key of " + skey.toString());
        }
      } else if (skey.length() == 32) {
        result = getDefaultElementStore();
      } else {
        throw new ElementKeyException("Cannot resolve a key of " + skey.toString());
      }
    } else if (delegateKey instanceof NoteCoordinate) {
      //TODO
    }
    if (result == null) {
View Full Code Here

TOP

Related Classes of org.openntf.domino.graph2.impl.DElementStore

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.