From 968ffcb0f9bb6d7ebc2d3cc9646545d21ef255f6 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Sat, 20 Jan 2007 21:03:21 +0000 Subject: [PATCH] Some more annotations/documentation from minilang guide (suppressed in minilang guide : http://docs.ofbiz.org/display/OFBIZ/Mini-Language+Guide) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@498165 13f79535-47bb-0310-9956-ffa450edef68 --- framework/minilang/dtd/simple-methods.xsd | 73 +++++++++++++++++++++-- 1 file changed, 67 insertions(+), 6 deletions(-) diff --git a/framework/minilang/dtd/simple-methods.xsd b/framework/minilang/dtd/simple-methods.xsd index 0e6aefe5ce..20ff06f8cd 100644 --- a/framework/minilang/dtd/simple-methods.xsd +++ b/framework/minilang/dtd/simple-methods.xsd @@ -1475,7 +1475,11 @@ under the License. + The transaction-begin tag will begin a transaction if one is not already in place. + If a transaction is begun the environment field named as the began-transaction-name will be set to true, otherwise it will be set to false. + Note that unless the simple-method is flagged to not use a transaction all simple-methods will be inside a transaction. + The same is true for service calls through the Service Engine. @@ -1483,25 +1487,58 @@ under the License. - + + + + The name of the method environment field that contains a Boolean specifying whether or not a transaction was begun in the current transaction demarcation. + Defaults to "beganTransaction". + + + + + + The transaction-commit tag will commit a transaction if a transaction was begun in the current demarcation context as represented by the environment field named as the began-transaction-name. + If the Boolean in that field is false no commit will be done. + + - + + + + The name of the method environment field that contains a Boolean specifying whether or not a transaction was begun in the current transaction demarcation. + Defaults to "beganTransaction". + + + + + + The transaction-rollback tag will rollback a transaction if a transaction was begun in the current demarcation context as represented by the environment field named as the began-transaction-name. + If the Boolean in that field is false a set rollback only will operation will be done instead of rollback which will force the transaction to rollback regardless of which method or object is responsible for beginning and ending the transaction. + + - + + + + The name of the method environment field that contains a Boolean specifying whether or not a transaction was begun in the current transaction demarcation. + Defaults to "beganTransaction". + + + - + @@ -2510,12 +2547,24 @@ under the License. + + + The store-list tag uses the delegator to store all entity values in the list. + This is different than storing a single value in that values in the list will be inserted if it does not exist or updated if it does exist. + + - + + + + The name of the method environment field that contains the list of GenericValue objects. + + + @@ -2531,12 +2580,24 @@ under the License. + + + The remove-list tag uses the delegator to remove all entity values in the list. + For each value in the list if it is a primary key just that entity instance will be removed, but if it is not a full primary key all entity instances will be removed from the datasource that match the constraint of the field map. + + - + + + + The name of the method environment field that contains the list of GenericValue objects. + + +