1 25 package org.ofbiz.entity.condition; 26 27 import java.io.Serializable ; 28 29 import org.ofbiz.entity.model.ModelField; 30 31 38 public class EntityConditionParam implements Serializable { 39 protected ModelField modelField; 40 protected Object fieldValue; 41 42 protected EntityConditionParam() {} 43 44 public EntityConditionParam(ModelField modelField, Object fieldValue) { 45 if (modelField == null) { 46 throw new IllegalArgumentException ("modelField cannot be null"); 47 } 48 this.modelField = modelField; 49 this.fieldValue = fieldValue; 50 } 51 52 public ModelField getModelField() { 53 return modelField; 54 } 55 56 public Object getFieldValue() { 57 return fieldValue; 58 } 59 60 public String toString() { 61 return modelField.getColName() + "=" + fieldValue.toString(); 62 } 63 } 64 | Popular Tags |