@Override public EntityCondition getWhereEntityCondition( Map<String, Object> context, ModelEntity modelEntity, ModelFieldTypeReader modelFieldTypeReader) { // create the by and map Map<String, Object> entityContext = FastMap.newInstance(); EntityFinderUtil.expandFieldMapToContext(this.fieldMap, context, entityContext); // then convert the types... modelEntity.convertFieldMapInPlace(entityContext, modelFieldTypeReader); return EntityCondition.makeCondition(entityContext); }
public ByAndFinder(Element element) { super(element, "and"); // process field-map this.fieldMap = EntityFinderUtil.makeFieldMap(element); }