Package at.molindo.esi4j.core

Examples of at.molindo.esi4j.core.Esi4JIndex


    return false;
  }

  @Override
  public String findIndexName(Class<?> type) {
    Esi4JIndex mappedIndex = null;

    for (InternalIndex index : _indices.values()) {
      if (index.isMapped(type)) {
        if (mappedIndex != null) {
          throw new IllegalArgumentException("can't find index for type mapped on multiple indices: "
              + type.getName());
        } else {
          mappedIndex = index;
        }
      }
    }

    if (mappedIndex == null) {
      throw new IllegalArgumentException("unmapped type " + type.getName() + " for index " + getName());
    }

    return mappedIndex.getName();
  }
View Full Code Here

TOP

Related Classes of at.molindo.esi4j.core.Esi4JIndex

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.