Examples of SemanticReference


Examples of net.sf.minuteProject.configuration.bean.enrichment.SemanticReference

  public static boolean isLiveBusinessDataContentType(Table table) {
    return isTableOfContentType(table, liveBusinessDataContentType);
  }
 
  public static boolean hasSemanticReference (Table table) {
    SemanticReference semanticReference = table.getSemanticReference();
    if (semanticReference!=null) {
      if (!semanticReference.getSemanticReferenceBeanPath().isEmpty())
        return true;
    }
    return false;
  }
View Full Code Here

Examples of net.sf.minuteProject.configuration.bean.enrichment.SemanticReference

    return false;
  }
 
  public static List<Column> getSemanticReferenceColumns(Table table) {
    List<Column> columns = new ArrayList<Column>();
    SemanticReference semanticReference = table.getSemanticReference();
    if (semanticReference!=null) {
      for (String sqlPath : semanticReference.getSemanticReferenceSqlPath()) {
        Column column = ColumnUtils.getColumn(table, sqlPath);
        if (column!=null)
          columns.add(column);
      }
    }
View Full Code Here

Examples of net.sf.minuteProject.configuration.bean.enrichment.SemanticReference

    List<String> list = new ArrayList<String>();
    for (Reference reference : table.getParents()) {
      if (!ReferenceUtils.isSimilarReference(reference, removeReference)) {
        Table parent = reference.getForeignTable();
        if (TableUtils.hasSemanticReference(parent)) {
          SemanticReference sr = reference.getForeignTable().getSemanticReference();
          for (String chunk : sr.getSemanticReferenceBeanPath()) {
            String c = FormatUtils.getJavaNameVariable(reference.getLocalColumn().getAlias());
            if (addChunk) c = c+"."+chunk;
            list.add(c);
            break; // only the first is added
          }
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.