Ejemplo n.º 1
0
 @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);
 }
Ejemplo n.º 2
0
  public ByAndFinder(Element element) {
    super(element, "and");

    // process field-map
    this.fieldMap = EntityFinderUtil.makeFieldMap(element);
  }