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