private MetaModel getMetaModel() throws XavaException { if (metaModel == null) { if (isAggregate()) { metaModel = MetaComponent.get(getComponentName()).getMetaAggregate(getAggregateName()); } else { metaModel = MetaComponent.get(getComponentName()).getMetaEntity(); } } return metaModel; }
/** * 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; }
public MetaModel getMetaModel() throws XavaException { if (metaModel == null) { metaModel = MetaComponent.get("Size").getMetaEntity(); } return metaModel; }
/** @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; }