buffer.append("WHERE ");
buffer.append( buildUserProvidedWhereClause(query.getWhereClauseStructure(), query, entityAliasesMaps) );
}
IModelStructure dataMartModelStructure = getDataSource().getModelStructure();
IModelAccessModality dataMartModelAccessModality = getDataSource().getModelAccessModality();
Iterator it = entityAliases.keySet().iterator();
while(it.hasNext()){
String entityUniqueName = (String)it.next();
IModelEntity entity = dataMartModelStructure.getEntity( entityUniqueName );
// check for condition filter on this entity
List filters = dataMartModelAccessModality.getEntityFilterConditions(entity.getType());
if(filters!=null){
for(int i = 0; i < filters.size(); i++) {