private MetaModel getMetaModel() throws XavaException {
   if (metaModel == null) {
     if (isAggregate()) {
       metaModel = MetaComponent.get(getComponentName()).getMetaAggregate(getAggregateName());
     } else {
       metaModel = MetaComponent.get(getComponentName()).getMetaEntity();
     }
   }
   return metaModel;
 }
예제 #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;
  }
예제 #3
0
 public MetaModel getMetaModel() throws XavaException {
   if (metaModel == null) {
     metaModel = MetaComponent.get("Size").getMetaEntity();
   }
   return metaModel;
 }
예제 #4
0
 /** @since 4.1 */
 private String getTable(String name) {
   return MetaComponent.get(name).getEntityMapping().getTable();
 }
예제 #5
0
 public MetaModel getMetaModel() throws XavaException {
   if (metaModel == null) {
     metaModel = MetaComponent.get("FilterBySubfamily").getMetaEntity();
   }
   return metaModel;
 }