Commit 85d540ff by zhanghou

添加Argument构造函数

parent 4150740c
package com.brilliance.mda.runtime.mda.impl; package com.brilliance.mda.runtime.mda.impl;
import com.brilliance.mda.runtime.mda.IDatafield;
import com.brilliance.mda.runtime.mda.IResult; import com.brilliance.mda.runtime.mda.IResult;
import com.brilliance.mda.runtime.mda.OpType; import com.brilliance.mda.runtime.mda.OpType;
...@@ -23,6 +24,10 @@ public class Argument<E> implements IResult { ...@@ -23,6 +24,10 @@ public class Argument<E> implements IResult {
this.value = value; this.value = value;
} }
public Argument(String fieldName, IDatafield<E> iDatafield) {
this(fieldName, OpType.EQ, iDatafield.getValue());
}
public Argument(String fieldName, OpType opType) { public Argument(String fieldName, OpType opType) {
this.fieldName = fieldName; this.fieldName = fieldName;
this.opType = opType; this.opType = opType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment