private MetaModel getMetaModel() throws XavaException {
   if (metaModel == null) {
     if (isAggregate()) {
       metaModel = MetaComponent.get(getComponentName()).getMetaAggregate(getAggregateName());
     } else {
       metaModel = MetaComponent.get(getComponentName()).getMetaEntity();
     }
   }
   return metaModel;
 }
Example #2
0
  /**
   * Find the columns name in the formula and replace its by qualify columns name: 'name' ->
   * 't_reference.name'
   */
  private String qualifyFormulaWithReferenceName(
      String formula, String referenceName, String modelProperty) {
    EntityMapping em = MetaComponent.get(referenceName).getEntityMapping();

    Iterator<String> it = em.getColumns().iterator();
    while (it.hasNext()) {
      String column = it.next();
      if (formula.contains(column)) {
        formula =
            formula.replace(
                column, getQualifyColumnName(modelProperty, referenceName + "." + column));
      }
    }

    return formula;
  }
Example #3
0
 public MetaModel getMetaModel() throws XavaException {
   if (metaModel == null) {
     metaModel = MetaComponent.get("Size").getMetaEntity();
   }
   return metaModel;
 }
Example #4
0
 /** @since 4.1 */
 private String getTable(String name) {
   return MetaComponent.get(name).getEntityMapping().getTable();
 }
 public MetaModel getMetaModel() throws XavaException {
   if (metaModel == null) {
     metaModel = MetaComponent.get("FilterBySubfamily").getMetaEntity();
   }
   return metaModel;
 }