Exemple #1
0
  public static ComponentBI getComponent(int nid) throws IOException {
    if (nid == Integer.MAX_VALUE) {
      return null;
    }
    int cNid = Bdb.getConceptNid(nid);
    if (cNid == Integer.MAX_VALUE) {
      return null;
    }

    ConceptChronicle c = Bdb.getConceptDb().getConcept(cNid);
    if (cNid == nid) {
      return c;
    }
    return c.getComponent(nid);
  }