Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java Fri Apr 20 06:53:41 2012 @@ -18,6 +18,7 @@ *******************************************************************************/ package org.ofbiz.minilang.method.entityops; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -31,13 +32,13 @@ public class NowDateToEnv extends Method ContextAccessor<java.sql.Date> envAcsr; - public NowDateToEnv(Element element, SimpleMethod simpleMethod) { + public NowDateToEnv(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); envAcsr = new ContextAccessor<java.sql.Date>(element.getAttribute("field"), element.getAttribute("env-name")); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { envAcsr.put(methodContext, new java.sql.Date(System.currentTimeMillis())); return true; } @@ -55,7 +56,7 @@ public class NowDateToEnv extends Method } public static final class NowDateFactory implements Factory<NowDateToEnv> { - public NowDateToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) { + public NowDateToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new NowDateToEnv(element, simpleMethod); } @@ -65,7 +66,7 @@ public class NowDateToEnv extends Method } public static final class NowDateToEnvFactory implements Factory<NowDateToEnv> { - public NowDateToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) { + public NowDateToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new NowDateToEnv(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowTimestampToEnv.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowTimestampToEnv.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowTimestampToEnv.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowTimestampToEnv.java Fri Apr 20 06:53:41 2012 @@ -18,6 +18,7 @@ *******************************************************************************/ package org.ofbiz.minilang.method.entityops; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -31,13 +32,13 @@ public class NowTimestampToEnv extends M ContextAccessor<java.sql.Timestamp> envAcsr; - public NowTimestampToEnv(Element element, SimpleMethod simpleMethod) { + public NowTimestampToEnv(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); envAcsr = new ContextAccessor<java.sql.Timestamp>(element.getAttribute("field"), element.getAttribute("env-name")); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { envAcsr.put(methodContext, new java.sql.Timestamp(System.currentTimeMillis())); return true; } @@ -55,7 +56,7 @@ public class NowTimestampToEnv extends M } public static final class NowTimestampFactory implements Factory<NowTimestampToEnv> { - public NowTimestampToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) { + public NowTimestampToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new NowTimestampToEnv(element, simpleMethod); } @@ -65,7 +66,7 @@ public class NowTimestampToEnv extends M } public static final class NowTimestampToEnvFactory implements Factory<NowTimestampToEnv> { - public NowTimestampToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) { + public NowTimestampToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new NowTimestampToEnv(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/OrderValueList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/OrderValueList.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/OrderValueList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/OrderValueList.java Fri Apr 20 06:53:41 2012 @@ -22,6 +22,7 @@ import java.util.List; import org.ofbiz.entity.GenericEntity; import org.ofbiz.entity.util.EntityUtil; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -37,7 +38,7 @@ public class OrderValueList extends Meth ContextAccessor<List<String>> orderByListAcsr; ContextAccessor<List<? extends GenericEntity>> toListAcsr; - public OrderValueList(Element element, SimpleMethod simpleMethod) { + public OrderValueList(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); listAcsr = new ContextAccessor<List<? extends GenericEntity>>(element.getAttribute("list"), element.getAttribute("list-name")); toListAcsr = new ContextAccessor<List<? extends GenericEntity>>(element.getAttribute("to-list"), element.getAttribute("to-list-name")); @@ -48,7 +49,7 @@ public class OrderValueList extends Meth } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { List<String> orderByList = null; if (!orderByListAcsr.isEmpty()) { orderByList = orderByListAcsr.get(methodContext); @@ -70,7 +71,7 @@ public class OrderValueList extends Meth } public static final class OrderValueListFactory implements Factory<OrderValueList> { - public OrderValueList createMethodOperation(Element element, SimpleMethod simpleMethod) { + public OrderValueList createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new OrderValueList(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RefreshValue.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RefreshValue.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RefreshValue.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RefreshValue.java Fri Apr 20 06:53:41 2012 @@ -21,6 +21,7 @@ package org.ofbiz.minilang.method.entity import org.ofbiz.base.util.Debug; import org.ofbiz.entity.GenericEntityException; import org.ofbiz.entity.GenericValue; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -37,14 +38,14 @@ public class RefreshValue extends Method String doCacheClearStr; ContextAccessor<GenericValue> valueAcsr; - public RefreshValue(Element element, SimpleMethod simpleMethod) { + public RefreshValue(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); valueAcsr = new ContextAccessor<GenericValue>(element.getAttribute("value-field"), element.getAttribute("value-name")); doCacheClearStr = element.getAttribute("do-cache-clear"); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { boolean doCacheClear = !"false".equals(methodContext.expandString(doCacheClearStr)); GenericValue value = valueAcsr.get(methodContext); if (value == null) { @@ -77,7 +78,7 @@ public class RefreshValue extends Method } public static final class RefreshValueFactory implements Factory<RefreshValue> { - public RefreshValue createMethodOperation(Element element, SimpleMethod simpleMethod) { + public RefreshValue createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new RefreshValue(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveByAnd.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveByAnd.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveByAnd.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveByAnd.java Fri Apr 20 06:53:41 2012 @@ -22,6 +22,7 @@ import java.util.Map; import org.ofbiz.base.util.Debug; import org.ofbiz.entity.GenericEntityException; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -39,7 +40,7 @@ public class RemoveByAnd extends MethodO String entityName; ContextAccessor<Map<String, ? extends Object>> mapAcsr; - public RemoveByAnd(Element element, SimpleMethod simpleMethod) { + public RemoveByAnd(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); entityName = element.getAttribute("entity-name"); mapAcsr = new ContextAccessor<Map<String, ? extends Object>>(element.getAttribute("map"), element.getAttribute("map-name")); @@ -47,7 +48,7 @@ public class RemoveByAnd extends MethodO } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { boolean doCacheClear = !"false".equals(doCacheClearStr); String entityName = methodContext.expandString(this.entityName); try { @@ -80,7 +81,7 @@ public class RemoveByAnd extends MethodO } public static final class RemoveByAndFactory implements Factory<RemoveByAnd> { - public RemoveByAnd createMethodOperation(Element element, SimpleMethod simpleMethod) { + public RemoveByAnd createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new RemoveByAnd(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveList.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveList.java Fri Apr 20 06:53:41 2012 @@ -23,6 +23,7 @@ import java.util.List; import org.ofbiz.base.util.Debug; import org.ofbiz.entity.GenericEntityException; import org.ofbiz.entity.GenericValue; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -39,14 +40,14 @@ public class RemoveList extends MethodOp String doCacheClearStr; ContextAccessor<List<GenericValue>> listAcsr; - public RemoveList(Element element, SimpleMethod simpleMethod) { + public RemoveList(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); listAcsr = new ContextAccessor<List<GenericValue>>(element.getAttribute("list"), element.getAttribute("list-name")); doCacheClearStr = element.getAttribute("do-cache-clear"); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { boolean doCacheClear = !"false".equals(doCacheClearStr); List<GenericValue> values = listAcsr.get(methodContext); if (values == null) { @@ -91,7 +92,7 @@ public class RemoveList extends MethodOp } public static final class RemoveListFactory implements Factory<RemoveList> { - public RemoveList createMethodOperation(Element element, SimpleMethod simpleMethod) { + public RemoveList createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new RemoveList(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveRelated.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveRelated.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveRelated.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveRelated.java Fri Apr 20 06:53:41 2012 @@ -21,6 +21,7 @@ package org.ofbiz.minilang.method.entity import org.ofbiz.base.util.Debug; import org.ofbiz.entity.GenericEntityException; import org.ofbiz.entity.GenericValue; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -38,7 +39,7 @@ public class RemoveRelated extends Metho String relationName; ContextAccessor<GenericValue> valueAcsr; - public RemoveRelated(Element element, SimpleMethod simpleMethod) { + public RemoveRelated(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); valueAcsr = new ContextAccessor<GenericValue>(element.getAttribute("value-field"), element.getAttribute("value-name")); relationName = element.getAttribute("relation-name"); @@ -46,7 +47,7 @@ public class RemoveRelated extends Metho } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { boolean doCacheClear = !"false".equals(doCacheClearStr); String relationName = methodContext.expandString(this.relationName); GenericValue value = valueAcsr.get(methodContext); @@ -92,7 +93,7 @@ public class RemoveRelated extends Metho } public static final class RemoveRelatedFactory implements Factory<RemoveRelated> { - public RemoveRelated createMethodOperation(Element element, SimpleMethod simpleMethod) { + public RemoveRelated createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new RemoveRelated(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveValue.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveValue.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveValue.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveValue.java Fri Apr 20 06:53:41 2012 @@ -21,6 +21,7 @@ package org.ofbiz.minilang.method.entity import org.ofbiz.base.util.Debug; import org.ofbiz.entity.GenericEntityException; import org.ofbiz.entity.GenericValue; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -37,14 +38,14 @@ public class RemoveValue extends MethodO String doCacheClearStr; ContextAccessor<GenericValue> valueAcsr; - public RemoveValue(Element element, SimpleMethod simpleMethod) { + public RemoveValue(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); valueAcsr = new ContextAccessor<GenericValue>(element.getAttribute("value-field"), element.getAttribute("value-name")); doCacheClearStr = element.getAttribute("do-cache-clear"); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { boolean doCacheClear = !"false".equals(methodContext.expandString(doCacheClearStr)); GenericValue value = valueAcsr.get(methodContext); if (value == null) { @@ -77,7 +78,7 @@ public class RemoveValue extends MethodO } public static final class RemoveValueFactory implements Factory<RemoveValue> { - public RemoveValue createMethodOperation(Element element, SimpleMethod simpleMethod) { + public RemoveValue createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new RemoveValue(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SequencedIdToEnv.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SequencedIdToEnv.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SequencedIdToEnv.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SequencedIdToEnv.java Fri Apr 20 06:53:41 2012 @@ -19,6 +19,7 @@ package org.ofbiz.minilang.method.entityops; import org.ofbiz.base.util.UtilValidate; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -35,7 +36,7 @@ public class SequencedIdToEnv extends Me String seqName; long staggerMax = 1; - public SequencedIdToEnv(Element element, SimpleMethod simpleMethod) { + public SequencedIdToEnv(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); seqName = element.getAttribute("sequence-name"); envAcsr = new ContextAccessor<Object>(element.getAttribute("field"), element.getAttribute("env-name")); @@ -54,7 +55,7 @@ public class SequencedIdToEnv extends Me } } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { String seqName = methodContext.expandString(this.seqName); if (getLongOnly) { envAcsr.put(methodContext, methodContext.getDelegator().getNextSeqIdLong(seqName, staggerMax)); @@ -77,7 +78,7 @@ public class SequencedIdToEnv extends Me } public static final class SequencedIdFactory implements Factory<SequencedIdToEnv> { - public SequencedIdToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) { + public SequencedIdToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new SequencedIdToEnv(element, simpleMethod); } @@ -87,7 +88,7 @@ public class SequencedIdToEnv extends Me } public static final class SequencedIdToEnvFactory implements Factory<SequencedIdToEnv> { - public SequencedIdToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) { + public SequencedIdToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new SequencedIdToEnv(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetCurrentUserLogin.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetCurrentUserLogin.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetCurrentUserLogin.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetCurrentUserLogin.java Fri Apr 20 06:53:41 2012 @@ -20,6 +20,7 @@ package org.ofbiz.minilang.method.entity import org.ofbiz.base.util.Debug; import org.ofbiz.entity.GenericValue; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -35,13 +36,13 @@ public class SetCurrentUserLogin extends ContextAccessor<GenericValue> valueAcsr; - public SetCurrentUserLogin(Element element, SimpleMethod simpleMethod) { + public SetCurrentUserLogin(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); valueAcsr = new ContextAccessor<GenericValue>(element.getAttribute("value-field"), element.getAttribute("value-name")); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { GenericValue userLogin = valueAcsr.get(methodContext); if (userLogin == null) { Debug.logWarning("In SetCurrentUserLogin a value was not found with the specified valueName: " + valueAcsr + ", not setting", module); @@ -64,7 +65,7 @@ public class SetCurrentUserLogin extends } public static final class SetCurrentUserLoginFactory implements Factory<SetCurrentUserLogin> { - public SetCurrentUserLogin createMethodOperation(Element element, SimpleMethod simpleMethod) { + public SetCurrentUserLogin createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new SetCurrentUserLogin(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetNonpkFields.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetNonpkFields.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetNonpkFields.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetNonpkFields.java Fri Apr 20 06:53:41 2012 @@ -22,6 +22,7 @@ import java.util.Map; import org.ofbiz.base.util.Debug; import org.ofbiz.entity.GenericValue; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -39,7 +40,7 @@ public class SetNonpkFields extends Meth String setIfNullStr; ContextAccessor<GenericValue> valueAcsr; - public SetNonpkFields(Element element, SimpleMethod simpleMethod) { + public SetNonpkFields(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); valueAcsr = new ContextAccessor<GenericValue>(element.getAttribute("value-field"), element.getAttribute("value-name")); mapAcsr = new ContextAccessor<Map<String, ? extends Object>>(element.getAttribute("map"), element.getAttribute("map-name")); @@ -47,7 +48,7 @@ public class SetNonpkFields extends Meth } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { // if anything but false it will be true boolean setIfNull = !"false".equals(methodContext.expandString(setIfNullStr)); GenericValue value = valueAcsr.get(methodContext); @@ -85,7 +86,7 @@ public class SetNonpkFields extends Meth } public static final class SetNonpkFieldsFactory implements Factory<SetNonpkFields> { - public SetNonpkFields createMethodOperation(Element element, SimpleMethod simpleMethod) { + public SetNonpkFields createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new SetNonpkFields(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetPkFields.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetPkFields.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetPkFields.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetPkFields.java Fri Apr 20 06:53:41 2012 @@ -22,6 +22,7 @@ import java.util.Map; import org.ofbiz.base.util.Debug; import org.ofbiz.entity.GenericValue; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -39,7 +40,7 @@ public class SetPkFields extends MethodO String setIfNullStr; ContextAccessor<GenericValue> valueAcsr; - public SetPkFields(Element element, SimpleMethod simpleMethod) { + public SetPkFields(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); valueAcsr = new ContextAccessor<GenericValue>(element.getAttribute("value-field"), element.getAttribute("value-name")); mapAcsr = new ContextAccessor<Map<String, ? extends Object>>(element.getAttribute("map"), element.getAttribute("map-name")); @@ -47,7 +48,7 @@ public class SetPkFields extends MethodO } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { // if anything but false it will be true boolean setIfNull = !"false".equals(methodContext.expandString(setIfNullStr)); GenericValue value = valueAcsr.get(methodContext); @@ -86,7 +87,7 @@ public class SetPkFields extends MethodO } public static final class SetPkFieldsFactory implements Factory<SetPkFields> { - public SetPkFields createMethodOperation(Element element, SimpleMethod simpleMethod) { + public SetPkFields createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new SetPkFields(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreList.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreList.java Fri Apr 20 06:53:41 2012 @@ -23,6 +23,7 @@ import java.util.List; import org.ofbiz.base.util.Debug; import org.ofbiz.entity.GenericEntityException; import org.ofbiz.entity.GenericValue; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -39,14 +40,14 @@ public class StoreList extends MethodOpe String doCacheClearStr; ContextAccessor<List<GenericValue>> listAcsr; - public StoreList(Element element, SimpleMethod simpleMethod) { + public StoreList(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); listAcsr = new ContextAccessor<List<GenericValue>>(element.getAttribute("list"), element.getAttribute("list-name")); doCacheClearStr = element.getAttribute("do-cache-clear"); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { boolean doCacheClear = !"false".equals(methodContext.expandString(doCacheClearStr)); List<GenericValue> values = listAcsr.get(methodContext); if (values == null) { @@ -83,7 +84,7 @@ public class StoreList extends MethodOpe } public static final class StoreListFactory implements Factory<StoreList> { - public StoreList createMethodOperation(Element element, SimpleMethod simpleMethod) { + public StoreList createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new StoreList(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreValue.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreValue.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreValue.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreValue.java Fri Apr 20 06:53:41 2012 @@ -21,6 +21,7 @@ package org.ofbiz.minilang.method.entity import org.ofbiz.base.util.Debug; import org.ofbiz.entity.GenericEntityException; import org.ofbiz.entity.GenericValue; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -37,14 +38,14 @@ public class StoreValue extends MethodOp String doCacheClearStr; ContextAccessor<GenericValue> valueAcsr; - public StoreValue(Element element, SimpleMethod simpleMethod) { + public StoreValue(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); valueAcsr = new ContextAccessor<GenericValue>(element.getAttribute("value-field"), element.getAttribute("value-name")); doCacheClearStr = element.getAttribute("do-cache-clear"); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { boolean doCacheClear = !"false".equals(methodContext.expandString(doCacheClearStr)); GenericValue value = null; try { @@ -85,7 +86,7 @@ public class StoreValue extends MethodOp } public static final class StoreValueFactory implements Factory<StoreValue> { - public StoreValue createMethodOperation(Element element, SimpleMethod simpleMethod) { + public StoreValue createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new StoreValue(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionBegin.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionBegin.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionBegin.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionBegin.java Fri Apr 20 06:53:41 2012 @@ -21,6 +21,7 @@ package org.ofbiz.minilang.method.entity import org.ofbiz.base.util.Debug; import org.ofbiz.entity.transaction.GenericTransactionException; import org.ofbiz.entity.transaction.TransactionUtil; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -36,13 +37,13 @@ public class TransactionBegin extends Me ContextAccessor<Boolean> beganTransactionAcsr; - public TransactionBegin(Element element, SimpleMethod simpleMethod) { + public TransactionBegin(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); beganTransactionAcsr = new ContextAccessor<Boolean>(element.getAttribute("began-transaction-name"), "beganTransaction"); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { boolean beganTransaction = false; try { beganTransaction = TransactionUtil.begin(); @@ -69,7 +70,7 @@ public class TransactionBegin extends Me } public static final class TransactionBeginFactory implements Factory<TransactionBegin> { - public TransactionBegin createMethodOperation(Element element, SimpleMethod simpleMethod) { + public TransactionBegin createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new TransactionBegin(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionCommit.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionCommit.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionCommit.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionCommit.java Fri Apr 20 06:53:41 2012 @@ -21,6 +21,7 @@ package org.ofbiz.minilang.method.entity import org.ofbiz.base.util.Debug; import org.ofbiz.entity.transaction.GenericTransactionException; import org.ofbiz.entity.transaction.TransactionUtil; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -36,13 +37,13 @@ public class TransactionCommit extends M ContextAccessor<Boolean> beganTransactionAcsr; - public TransactionCommit(Element element, SimpleMethod simpleMethod) { + public TransactionCommit(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); beganTransactionAcsr = new ContextAccessor<Boolean>(element.getAttribute("began-transaction-name"), "beganTransaction"); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { boolean beganTransaction = false; Boolean beganTransactionBoolean = beganTransactionAcsr.get(methodContext); if (beganTransactionBoolean != null) { @@ -73,7 +74,7 @@ public class TransactionCommit extends M } public static final class TransactionCommitFactory implements Factory<TransactionCommit> { - public TransactionCommit createMethodOperation(Element element, SimpleMethod simpleMethod) { + public TransactionCommit createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new TransactionCommit(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionRollback.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionRollback.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionRollback.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionRollback.java Fri Apr 20 06:53:41 2012 @@ -21,6 +21,7 @@ package org.ofbiz.minilang.method.entity import org.ofbiz.base.util.Debug; import org.ofbiz.entity.transaction.GenericTransactionException; import org.ofbiz.entity.transaction.TransactionUtil; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -36,13 +37,13 @@ public class TransactionRollback extends ContextAccessor<Boolean> beganTransactionAcsr; - public TransactionRollback(Element element, SimpleMethod simpleMethod) { + public TransactionRollback(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); beganTransactionAcsr = new ContextAccessor<Boolean>(element.getAttribute("began-transaction-name"), "beganTransaction"); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { boolean beganTransaction = false; Boolean beganTransactionBoolean = beganTransactionAcsr.get(methodContext); if (beganTransactionBoolean != null) { @@ -73,7 +74,7 @@ public class TransactionRollback extends } public static final class TransactionRollbackFactory implements Factory<TransactionRollback> { - public TransactionRollback createMethodOperation(Element element, SimpleMethod simpleMethod) { + public TransactionRollback createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new TransactionRollback(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ClearField.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ClearField.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ClearField.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ClearField.java Fri Apr 20 06:53:41 2012 @@ -23,6 +23,7 @@ import java.util.Map; import javolution.util.FastMap; import org.ofbiz.base.util.Debug; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -39,7 +40,7 @@ public class ClearField extends MethodOp ContextAccessor<Object> fieldAcsr; ContextAccessor<Map<String, Object>> mapAcsr; - public ClearField(Element element, SimpleMethod simpleMethod) { + public ClearField(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); // the schema for this element now just has the "field" attribute, though the old "field-name" and "map-name" pair is still supported fieldAcsr = new ContextAccessor<Object>(element.getAttribute("field"), element.getAttribute("field-name")); @@ -47,7 +48,7 @@ public class ClearField extends MethodOp } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { if (!mapAcsr.isEmpty()) { Map<String, Object> toMap = mapAcsr.get(methodContext); if (toMap == null) { @@ -77,7 +78,7 @@ public class ClearField extends MethodOp } public static final class ClearFieldFactory implements Factory<ClearField> { - public ClearField createMethodOperation(Element element, SimpleMethod simpleMethod) { + public ClearField createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new ClearField(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToEnv.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToEnv.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToEnv.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToEnv.java Fri Apr 20 06:53:41 2012 @@ -18,6 +18,7 @@ *******************************************************************************/ package org.ofbiz.minilang.method.envops; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -36,14 +37,14 @@ public class EnvToEnv extends MethodOper protected ContextAccessor<Object> envAcsr; protected ContextAccessor<Object> toEnvAcsr; - public EnvToEnv(Element element, SimpleMethod simpleMethod) { + public EnvToEnv(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); envAcsr = new ContextAccessor<Object>(element.getAttribute("env-name")); toEnvAcsr = new ContextAccessor<Object>(element.getAttribute("to-env-name")); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { toEnvAcsr.put(methodContext, envAcsr.get(methodContext)); return true; } @@ -60,7 +61,7 @@ public class EnvToEnv extends MethodOper } public static final class EnvToEnvFactory implements Factory<EnvToEnv> { - public EnvToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) { + public EnvToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new EnvToEnv(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToField.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToField.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToField.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToField.java Fri Apr 20 06:53:41 2012 @@ -40,7 +40,7 @@ public class EnvToField extends MethodOp ContextAccessor<Object> fieldAcsr; ContextAccessor<Map<String, Object>> mapAcsr; - public EnvToField(Element element, SimpleMethod simpleMethod) { + public EnvToField(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); envAcsr = new ContextAccessor<Object>(element.getAttribute("env-name")); mapAcsr = new ContextAccessor<Map<String, Object>>(element.getAttribute("map-name")); @@ -52,7 +52,7 @@ public class EnvToField extends MethodOp } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { Object envVar = envAcsr.get(methodContext); if (envVar == null) { Debug.logWarning("Environment field not found with name " + envAcsr + ", not copying env field", module); @@ -86,7 +86,7 @@ public class EnvToField extends MethodOp } public static final class EnvToFieldFactory implements Factory<EnvToField> { - public EnvToField createMethodOperation(Element element, SimpleMethod simpleMethod) { + public EnvToField createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new EnvToField(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToEnv.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToEnv.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToEnv.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToEnv.java Fri Apr 20 06:53:41 2012 @@ -21,6 +21,7 @@ package org.ofbiz.minilang.method.envops import java.util.Map; import org.ofbiz.base.util.Debug; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -40,7 +41,7 @@ public class FieldToEnv extends MethodOp ContextAccessor<Object> fieldAcsr; ContextAccessor<Map<String, ? extends Object>> mapAcsr; - public FieldToEnv(Element element, SimpleMethod simpleMethod) { + public FieldToEnv(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); envAcsr = new ContextAccessor<Object>(element.getAttribute("env-name")); mapAcsr = new ContextAccessor<Map<String, ? extends Object>>(element.getAttribute("map-name")); @@ -56,7 +57,7 @@ public class FieldToEnv extends MethodOp } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { Object fieldVal = null; if (!mapAcsr.isEmpty()) { Map<String, ? extends Object> fromMap = mapAcsr.get(methodContext); @@ -90,7 +91,7 @@ public class FieldToEnv extends MethodOp } public static final class FieldToEnvFactory implements Factory<FieldToEnv> { - public FieldToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) { + public FieldToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new FieldToEnv(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToField.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToField.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToField.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToField.java Fri Apr 20 06:53:41 2012 @@ -23,6 +23,7 @@ import java.util.Map; import javolution.util.FastMap; import org.ofbiz.base.util.Debug; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -43,7 +44,7 @@ public class FieldToField extends Method ContextAccessor<Object> toFieldAcsr; ContextAccessor<Map<String, Object>> toMapAcsr; - public FieldToField(Element element, SimpleMethod simpleMethod) { + public FieldToField(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); mapAcsr = new ContextAccessor<Map<String, Object>>(element.getAttribute("map-name")); fieldAcsr = new ContextAccessor<Object>(element.getAttribute("field-name")); @@ -59,7 +60,7 @@ public class FieldToField extends Method } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { Object fieldVal = null; if (!mapAcsr.isEmpty()) { Map<String, ? extends Object> fromMap = mapAcsr.get(methodContext); @@ -110,7 +111,7 @@ public class FieldToField extends Method } public static final class FieldToFieldFactory implements Factory<FieldToField> { - public FieldToField createMethodOperation(Element element, SimpleMethod simpleMethod) { + public FieldToField createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new FieldToField(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToList.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToList.java Fri Apr 20 06:53:41 2012 @@ -24,6 +24,7 @@ import java.util.Map; import javolution.util.FastList; import org.ofbiz.base.util.Debug; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -41,7 +42,7 @@ public class FieldToList extends MethodO ContextAccessor<List<Object>> listAcsr; ContextAccessor<Map<String, ? extends Object>> mapAcsr; - public FieldToList(Element element, SimpleMethod simpleMethod) { + public FieldToList(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); // the schema for this element now just has the "field" attribute, though the old "field-name" and "map-name" pair is still supported mapAcsr = new ContextAccessor<Map<String, ? extends Object>>(element.getAttribute("map-name")); @@ -50,7 +51,7 @@ public class FieldToList extends MethodO } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { Object fieldVal = null; if (!mapAcsr.isEmpty()) { Map<String, ? extends Object> fromMap = mapAcsr.get(methodContext); @@ -90,7 +91,7 @@ public class FieldToList extends MethodO } public static final class FieldToListFactory implements Factory<FieldToList> { - public FieldToList createMethodOperation(Element element, SimpleMethod simpleMethod) { + public FieldToList createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new FieldToList(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FirstFromList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FirstFromList.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FirstFromList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FirstFromList.java Fri Apr 20 06:53:41 2012 @@ -22,6 +22,7 @@ import java.util.List; import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.UtilValidate; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -38,14 +39,14 @@ public class FirstFromList extends Metho ContextAccessor<Object> entryAcsr; ContextAccessor<List<? extends Object>> listAcsr; - public FirstFromList(Element element, SimpleMethod simpleMethod) { + public FirstFromList(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); this.entryAcsr = new ContextAccessor<Object>(element.getAttribute("entry"), element.getAttribute("entry-name")); this.listAcsr = new ContextAccessor<List<? extends Object>>(element.getAttribute("list"), element.getAttribute("list-name")); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { if (listAcsr.isEmpty()) { Debug.logWarning("No list-name specified in iterate tag, doing nothing", module); return true; @@ -71,7 +72,7 @@ public class FirstFromList extends Metho } public static final class FirstFromListFactory implements Factory<FirstFromList> { - public FirstFromList createMethodOperation(Element element, SimpleMethod simpleMethod) { + public FirstFromList createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new FirstFromList(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java Fri Apr 20 06:53:41 2012 @@ -29,6 +29,7 @@ import org.ofbiz.base.util.UtilGenerics; import org.ofbiz.entity.GenericEntityException; import org.ofbiz.entity.GenericValue; import org.ofbiz.entity.util.EntityListIterator; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -46,7 +47,7 @@ public class Iterate extends MethodOpera protected ContextAccessor<Object> listAcsr; protected List<MethodOperation> subOps = FastList.newInstance(); - public Iterate(Element element, SimpleMethod simpleMethod) { + public Iterate(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); this.entryAcsr = new ContextAccessor<Object>(element.getAttribute("entry"), element.getAttribute("entry-name")); this.listAcsr = new ContextAccessor<Object>(element.getAttribute("list"), element.getAttribute("list-name")); @@ -54,7 +55,7 @@ public class Iterate extends MethodOpera } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { if (listAcsr.isEmpty()) { Debug.logWarning("No list-name specified in iterate tag, doing nothing: " + rawString(), module); return true; @@ -144,7 +145,7 @@ public class Iterate extends MethodOpera } public static final class IterateFactory implements Factory<Iterate> { - public Iterate createMethodOperation(Element element, SimpleMethod simpleMethod) { + public Iterate createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new Iterate(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/IterateMap.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/IterateMap.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/IterateMap.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/IterateMap.java Fri Apr 20 06:53:41 2012 @@ -24,6 +24,7 @@ import java.util.Map; import javolution.util.FastList; import org.ofbiz.base.util.Debug; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -42,7 +43,7 @@ public class IterateMap extends MethodOp List<MethodOperation> subOps = FastList.newInstance(); ContextAccessor<Object> valueAcsr; - public IterateMap(Element element, SimpleMethod simpleMethod) { + public IterateMap(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); this.keyAcsr = new ContextAccessor<Object>(element.getAttribute("key"), element.getAttribute("key-name")); this.valueAcsr = new ContextAccessor<Object>(element.getAttribute("value"), element.getAttribute("value-name")); @@ -51,7 +52,7 @@ public class IterateMap extends MethodOp } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { if (mapAcsr.isEmpty()) { Debug.logWarning("No map-name specified in iterate tag, doing nothing: " + rawString(), module); return true; @@ -103,7 +104,7 @@ public class IterateMap extends MethodOp } public static final class IterateMapFactory implements Factory<IterateMap> { - public IterateMap createMethodOperation(Element element, SimpleMethod simpleMethod) { + public IterateMap createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new IterateMap(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ListToList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ListToList.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ListToList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ListToList.java Fri Apr 20 06:53:41 2012 @@ -23,6 +23,7 @@ import java.util.List; import javolution.util.FastList; import org.ofbiz.base.util.Debug; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -39,14 +40,14 @@ public class ListToList extends MethodOp ContextAccessor<List<Object>> listAcsr; ContextAccessor<List<Object>> toListAcsr; - public ListToList(Element element, SimpleMethod simpleMethod) { + public ListToList(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); listAcsr = new ContextAccessor<List<Object>>(element.getAttribute("list"), element.getAttribute("list-name")); toListAcsr = new ContextAccessor<List<Object>>(element.getAttribute("to-list"), element.getAttribute("to-list-name")); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { List<Object> fromList = listAcsr.get(methodContext); List<Object> toList = toListAcsr.get(methodContext); if (fromList == null) { @@ -77,7 +78,7 @@ public class ListToList extends MethodOp } public static final class ListToListFactory implements Factory<ListToList> { - public ListToList createMethodOperation(Element element, SimpleMethod simpleMethod) { + public ListToList createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new ListToList(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Loop.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Loop.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Loop.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Loop.java Fri Apr 20 06:53:41 2012 @@ -23,6 +23,7 @@ import java.util.List; import javolution.util.FastList; import org.ofbiz.base.util.Debug; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -40,7 +41,7 @@ public class Loop extends MethodOperatio protected ContextAccessor<Integer> fieldAcsr; protected List<MethodOperation> subOps = FastList.newInstance(); - public Loop(Element element, SimpleMethod simpleMethod) { + public Loop(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); this.fieldAcsr = new ContextAccessor<Integer>(element.getAttribute("field")); this.countStr = element.getAttribute("count"); @@ -48,7 +49,7 @@ public class Loop extends MethodOperatio } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { String countStrExp = methodContext.expandString(this.countStr); int count = 0; try { @@ -89,7 +90,7 @@ public class Loop extends MethodOperatio } public static final class LoopFactory implements Factory<Loop> { - public Loop createMethodOperation(Element element, SimpleMethod simpleMethod) { + public Loop createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new Loop(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/MapToMap.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/MapToMap.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/MapToMap.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/MapToMap.java Fri Apr 20 06:53:41 2012 @@ -23,6 +23,7 @@ import java.util.Map; import javolution.util.FastMap; import org.ofbiz.base.util.Debug; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -39,14 +40,14 @@ public class MapToMap extends MethodOper ContextAccessor<Map<String, Object>> mapAcsr; ContextAccessor<Map<String, Object>> toMapAcsr; - public MapToMap(Element element, SimpleMethod simpleMethod) { + public MapToMap(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); mapAcsr = new ContextAccessor<Map<String, Object>>(element.getAttribute("map"), element.getAttribute("map-name")); toMapAcsr = new ContextAccessor<Map<String, Object>>(element.getAttribute("to-map"), element.getAttribute("to-map-name")); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { Map<String, Object> fromMap = null; if (!mapAcsr.isEmpty()) { fromMap = mapAcsr.get(methodContext); @@ -85,7 +86,7 @@ public class MapToMap extends MethodOper } public static final class MapToMapFactory implements Factory<MapToMap> { - public MapToMap createMethodOperation(Element element, SimpleMethod simpleMethod) { + public MapToMap createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new MapToMap(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/OrderMapList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/OrderMapList.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/OrderMapList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/OrderMapList.java Fri Apr 20 06:53:41 2012 @@ -29,6 +29,7 @@ import org.ofbiz.base.util.UtilValidate; import org.ofbiz.base.util.UtilXml; import org.ofbiz.base.util.collections.FlexibleMapAccessor; import org.ofbiz.base.util.collections.MapComparator; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -46,7 +47,7 @@ public class OrderMapList extends Method protected MapComparator mc; protected List<FlexibleMapAccessor<String>> orderByAcsrList = FastList.newInstance(); - public OrderMapList(Element element, SimpleMethod simpleMethod) { + public OrderMapList(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); listAcsr = new ContextAccessor<List<Map<Object, Object>>>(element.getAttribute("list"), element.getAttribute("list-name")); for (Element orderByElement : UtilXml.childElementList(element, "order-by")) { @@ -57,7 +58,7 @@ public class OrderMapList extends Method } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { List<Map<Object, Object>> orderList = listAcsr.get(methodContext); if (orderList == null) { if (Debug.infoOn()) @@ -80,7 +81,7 @@ public class OrderMapList extends Method } public static final class OrderMapListFactory implements Factory<OrderMapList> { - public OrderMapList createMethodOperation(Element element, SimpleMethod simpleMethod) { + public OrderMapList createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new OrderMapList(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetCalendar.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetCalendar.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetCalendar.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetCalendar.java Fri Apr 20 06:53:41 2012 @@ -26,6 +26,7 @@ import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.ObjectType; import org.ofbiz.base.util.UtilDateTime; import org.ofbiz.base.util.string.FlexibleStringExpander; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -59,7 +60,7 @@ public class SetCalendar extends MethodO protected FlexibleStringExpander valueExdr; protected FlexibleStringExpander yearsExdr; - public SetCalendar(Element element, SimpleMethod simpleMethod) { + public SetCalendar(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); this.field = new ContextAccessor<Timestamp>(element.getAttribute("field")); this.fromField = new ContextAccessor<Object>(element.getAttribute("from-field")); @@ -86,7 +87,7 @@ public class SetCalendar extends MethodO } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { Object newValue = null; if (!this.fromField.isEmpty()) { newValue = this.fromField.get(methodContext); @@ -200,7 +201,7 @@ public class SetCalendar extends MethodO } public static final class SetCalendarFactory implements Factory<SetCalendar> { - public SetCalendar createMethodOperation(Element element, SimpleMethod simpleMethod) { + public SetCalendar createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new SetCalendar(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java Fri Apr 20 06:53:41 2012 @@ -27,6 +27,7 @@ import org.ofbiz.base.util.ObjectType; import org.ofbiz.base.util.ScriptUtil; import org.ofbiz.base.util.UtilValidate; import org.ofbiz.base.util.string.FlexibleStringExpander; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -49,7 +50,7 @@ public class SetOperation extends Method protected String type; protected FlexibleStringExpander valueExdr; - public SetOperation(Element element, SimpleMethod simpleMethod) { + public SetOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); this.field = new ContextAccessor<Object>(element.getAttribute("field")); String fromFieldStr = element.getAttribute("from-field"); @@ -70,7 +71,7 @@ public class SetOperation extends Method } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { Object newValue = null; if (this.parsedScript != null) { try { @@ -134,7 +135,7 @@ public class SetOperation extends Method } public static final class SetOperationFactory implements Factory<SetOperation> { - public SetOperation createMethodOperation(Element element, SimpleMethod simpleMethod) { + public SetOperation createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new SetOperation(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringAppend.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringAppend.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringAppend.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringAppend.java Fri Apr 20 06:53:41 2012 @@ -26,6 +26,7 @@ import javolution.util.FastMap; import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.UtilValidate; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -46,7 +47,7 @@ public class StringAppend extends Method String string; String suffix; - public StringAppend(Element element, SimpleMethod simpleMethod) { + public StringAppend(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); string = element.getAttribute("string"); prefix = element.getAttribute("prefix"); @@ -88,7 +89,7 @@ public class StringAppend extends Method } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { if (!mapAcsr.isEmpty()) { Map<String, Object> toMap = mapAcsr.get(methodContext); if (toMap == null) { @@ -119,7 +120,7 @@ public class StringAppend extends Method } public static final class StringAppendFactory implements Factory<StringAppend> { - public StringAppend createMethodOperation(Element element, SimpleMethod simpleMethod) { + public StringAppend createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new StringAppend(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToField.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToField.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToField.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToField.java Fri Apr 20 06:53:41 2012 @@ -27,6 +27,7 @@ import javolution.util.FastMap; import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.MessageString; import org.ofbiz.base.util.UtilValidate; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -48,7 +49,7 @@ public class StringToField extends Metho String messageFieldName; String string; - public StringToField(Element element, SimpleMethod simpleMethod) { + public StringToField(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); string = element.getAttribute("string"); mapAcsr = new ContextAccessor<Map<String, Object>>(element.getAttribute("map-name")); @@ -58,7 +59,7 @@ public class StringToField extends Metho } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { String valueStr = methodContext.expandString(string); if (!argListAcsr.isEmpty()) { List<? extends Object> argList = argListAcsr.get(methodContext); @@ -100,7 +101,7 @@ public class StringToField extends Metho } public static final class StringToFieldFactory implements Factory<StringToField> { - public StringToField createMethodOperation(Element element, SimpleMethod simpleMethod) { + public StringToField createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new StringToField(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToList.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToList.java Fri Apr 20 06:53:41 2012 @@ -26,6 +26,7 @@ import javolution.util.FastList; import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.MessageString; import org.ofbiz.base.util.UtilValidate; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -44,7 +45,7 @@ public class StringToList extends Method String messageFieldName; String string; - public StringToList(Element element, SimpleMethod simpleMethod) { + public StringToList(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); string = element.getAttribute("string"); listAcsr = new ContextAccessor<List<Object>>(element.getAttribute("list"), element.getAttribute("list-name")); @@ -53,7 +54,7 @@ public class StringToList extends Method } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { String valueStr = methodContext.expandString(string); if (!argListAcsr.isEmpty()) { List<? extends Object> argList = argListAcsr.get(methodContext); @@ -91,7 +92,7 @@ public class StringToList extends Method } public static final class StringToListFactory implements Factory<StringToList> { - public StringToList createMethodOperation(Element element, SimpleMethod simpleMethod) { + public StringToList createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new StringToList(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ToString.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ToString.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ToString.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ToString.java Fri Apr 20 06:53:41 2012 @@ -27,6 +27,7 @@ import org.ofbiz.base.util.GeneralExcept import org.ofbiz.base.util.ObjectType; import org.ofbiz.base.util.StringUtil; import org.ofbiz.base.util.UtilValidate; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -45,7 +46,7 @@ public class ToString extends MethodOper ContextAccessor<Map<String, Object>> mapAcsr; Integer numericPadding; - public ToString(Element element, SimpleMethod simpleMethod) { + public ToString(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); // the schema for this element now just has the "field" attribute, though the old "field-name" and "map-name" pair is still supported fieldAcsr = new ContextAccessor<Object>(element.getAttribute("field"), element.getAttribute("field-name")); @@ -80,7 +81,7 @@ public class ToString extends MethodOper } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { if (!mapAcsr.isEmpty()) { Map<String, Object> toMap = mapAcsr.get(methodContext); if (toMap == null) { @@ -117,7 +118,7 @@ public class ToString extends MethodOper } public static final class ToStringFactory implements Factory<ToString> { - public ToString createMethodOperation(Element element, SimpleMethod simpleMethod) { + public ToString createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new ToString(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToRequest.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToRequest.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToRequest.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToRequest.java Fri Apr 20 06:53:41 2012 @@ -22,6 +22,7 @@ import java.util.Map; import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.collections.FlexibleServletAccessor; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -39,7 +40,7 @@ public class FieldToRequest extends Meth ContextAccessor<Map<String, ? extends Object>> mapAcsr; FlexibleServletAccessor<Object> requestAcsr; - public FieldToRequest(Element element, SimpleMethod simpleMethod) { + public FieldToRequest(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); // the schema for this element now just has the "field" attribute, though the old "field-name" and "map-name" pair is still supported mapAcsr = new ContextAccessor<Map<String, ? extends Object>>(element.getAttribute("map-name")); @@ -48,7 +49,7 @@ public class FieldToRequest extends Meth } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { // only run this if it is in an EVENT context if (methodContext.getMethodType() == MethodContext.EVENT) { Object fieldVal = null; @@ -86,7 +87,7 @@ public class FieldToRequest extends Meth } public static final class FieldToRequestFactory implements Factory<FieldToRequest> { - public FieldToRequest createMethodOperation(Element element, SimpleMethod simpleMethod) { + public FieldToRequest createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new FieldToRequest(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToSession.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToSession.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToSession.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToSession.java Fri Apr 20 06:53:41 2012 @@ -22,6 +22,7 @@ import java.util.Map; import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.collections.FlexibleServletAccessor; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -39,7 +40,7 @@ public class FieldToSession extends Meth ContextAccessor<Map<String, ? extends Object>> mapAcsr; FlexibleServletAccessor<Object> sessionAcsr; - public FieldToSession(Element element, SimpleMethod simpleMethod) { + public FieldToSession(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); // the schema for this element now just has the "field" attribute, though the old "field-name" and "map-name" pair is still supported mapAcsr = new ContextAccessor<Map<String, ? extends Object>>(element.getAttribute("map-name")); @@ -48,7 +49,7 @@ public class FieldToSession extends Meth } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { // only run this if it is in an EVENT context if (methodContext.getMethodType() == MethodContext.EVENT) { Object fieldVal = null; @@ -86,7 +87,7 @@ public class FieldToSession extends Meth } public static final class FieldToSessionFactory implements Factory<FieldToSession> { - public FieldToSession createMethodOperation(Element element, SimpleMethod simpleMethod) { + public FieldToSession createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new FieldToSession(element, simpleMethod); } Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/RequestParametersToList.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/RequestParametersToList.java?rev=1328222&r1=1328221&r2=1328222&view=diff ============================================================================== --- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/RequestParametersToList.java (original) +++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/RequestParametersToList.java Fri Apr 20 06:53:41 2012 @@ -24,6 +24,7 @@ import javolution.util.FastList; import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.UtilMisc; +import org.ofbiz.minilang.MiniLangException; import org.ofbiz.minilang.SimpleMethod; import org.ofbiz.minilang.method.ContextAccessor; import org.ofbiz.minilang.method.MethodContext; @@ -40,14 +41,14 @@ public class RequestParametersToList ext ContextAccessor<List<String>> listAcsr; String requestName; - public RequestParametersToList(Element element, SimpleMethod simpleMethod) { + public RequestParametersToList(Element element, SimpleMethod simpleMethod) throws MiniLangException { super(element, simpleMethod); requestName = element.getAttribute("request-name"); listAcsr = new ContextAccessor<List<String>>(element.getAttribute("list-name"), requestName); } @Override - public boolean exec(MethodContext methodContext) { + public boolean exec(MethodContext methodContext) throws MiniLangException { List<String> listVal = null; // only run this if it is in an EVENT context if (methodContext.getMethodType() == MethodContext.EVENT) { @@ -85,7 +86,7 @@ public class RequestParametersToList ext } public static final class RequestParametersToListFactory implements Factory<RequestParametersToList> { - public RequestParametersToList createMethodOperation(Element element, SimpleMethod simpleMethod) { + public RequestParametersToList createMethodOperation(Element element, SimpleMethod simpleMethod) throws MiniLangException { return new RequestParametersToList(element, simpleMethod); } |
Free forum by Nabble | Edit this page |