Adam Heath
6eb1758421
Fix pure toString handling of values that contains "'" in them; this was
...
hacked to work for functions back in 2007, but it was actually broke in
all cases. Undid the hack, and made it work correctly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@954956 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 16:40:13 +00:00
Jacques Le Roux
4dbc07a799
A patch from Ankit Jain "Missing "not-in" operator in condtion-expr tag." ( https://issues.apache.org/jira/browse/OFBIZ-3819 ) - OFBIZ-3819
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@953671 13f79535-47bb-0310-9956-ffa450edef68
2010-06-11 11:44:34 +00:00
Adam Heath
fbd798ed61
Fix incorrect order by output in sql generation, which fixes OFBIZ-3789;
...
namely, there was incorrect sql generated when doing a product keyword
search.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@951553 13f79535-47bb-0310-9956-ffa450edef68
2010-06-04 20:18:37 +00:00
Jacques Le Roux
f65c6e12bf
A patch from Bob Morley "Support for order by nulls first/last " ( https://issues.apache.org/jira/browse/OFBIZ-3740 ) - OFBIZ-3740
...
This patch provides the fundamentals to resolve an issue where the sorting of null values were inconsistent (sometimes sorting first and other times sorting last). Specifically, this patch allows one to create an order-by clause via any of the order-by elements of "-myField NULLS LAST" where this text parses out the - (as descending) and the "nulls last".
Since not all databases support the "nulls" argument on an order by clause (it was introduced as part of the OLAP support specification) , our entity-engine.xml file allows each data source to indicate if it has this support. If the support does not exist and nulls first/last is specified, the sql that is generated uses native sql to simulate the nulls first/last intent. At this time, the derby, postgres, and oracle databases are marked to use the nulls first grammar.
Right now, if you do not specify "NULLS XXX" in the field-name for the order-by it makes no change whatsever (naturally this assumption could be changed to have a default).
It should be noted, that my intent here was ultimately to "properly" model the order by into something whose xml representation could look something like ...
<entity-order-by field-name="fieldName" ascending="true" nulls-first="true" />
Divesh Dutta added a comment - 07/May/10 01:44 AM HI Bob, This patch works as expected for derby, postgres, and oracle databases as you have already mentioned. Cant we have some generic solution which supports all the databases. Or we can have some conditional code, where we can check which datasource is being used, and then generate the sql accordingly. Please let me know your views on this.
Bob Morley added a comment - 07/May/10 08:07 AM
Hi Divesh,
I added a more detailed description in the forum thread; but in brief this is a generic solution which supports all databases which generates the sql accordingly. What this patch does not do is apply a standard default order for all databases; it just adds support for one to dictate how they want the nulls sorted.
For example, when one sets the order-by they can set it to "lastName DESC NULLS FIRST" which should apply to all databases.
The thread Bob was referring above ends at http://markmail.org/message/47z7fwtawehuem6b
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950901 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 07:39:19 +00:00
Adam Heath
9bf10fa9b4
Use the new isEmpty support in conditions to skip
...
EntityConditionListBase entries that have no children.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950767 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 21:24:19 +00:00
Adam Heath
fd213c9a3c
EntityCondition.isEmpty() support.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950766 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 21:24:14 +00:00
Adam Heath
e8d8b4f777
Refactor the 2 arg version of the addSqlValue method, to use the List
...
version.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950765 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 21:24:07 +00:00
Adam Heath
0f6803cde9
Re-apply 949617, add new variants of makeConditionWhereString that take
...
a StringBuilder, and deprecate the old versions that don't.
This works now because of the previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950339 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 02:18:19 +00:00
Adam Heath
8e173bf9c5
Refactor makeConditionWhereString to use the entity condition system to
...
build the where string.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950338 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 02:18:14 +00:00
Adam Heath
7c326c1d61
Revert wrongly committed 950255
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950280 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 22:01:23 +00:00
Adam Heath
6c2124c44f
Revert wrongly committed 950256
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950279 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 22:01:05 +00:00
Adam Heath
93adfe2429
Start making use of DependencyPool.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950256 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:46:32 +00:00
Adam Heath
85138b6244
Multi-threaded creation of tables, foreign key indices, and declared
...
indices.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950255 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:46:24 +00:00
Jacques Le Roux
6ff1d49d7a
Revert r949617 because it introduce a bug:
...
2010-06-01 22:11:30,656 (http-0.0.0.0-8443-5) [ ServiceDispatcher.java:543:ERROR] Error in Service [executeFind]: Error running Find on the [ProductSearchNoNotInUse] entity: SQL Exception while executing the
following:SELECT DISTINCT PR.PRODUCT_ID, PR.PRODUCT_TYPE_ID, PR.PRIMARY_PRODUCT_CATEGORY_ID, PR.PRODUCT_NAME FROM public.PRODUCT PR LEFT OUTER JOIN public.SUPPLIER_PRODUCT SP ON PR.PRODUCT_ID = SP.PRODUCT_ID
WHERE AND ((PR.PRODUCT_TYPE_ID <> ? OR PR.PRODUCT_TYPE_ID IS NULL)) ORDER BY PR.PRODUCT_NAME ASC (ERREUR: erreur de syntaxe sur ou prÞs de ½ AND +
Position: 206)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950237 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 20:24:03 +00:00
Adam Heath
e73898b75b
Return the value of needsUpperCase from getIndexInfo, so that the proper case can be used on declared index names.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949628 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:08:59 +00:00
Adam Heath
b7434ab448
When fetching index info, if needsUpperCase is set, then the incoming tableName has been upper-cased. This means we have to convert it *back* to lower case when querying indices against the database.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949627 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:08:54 +00:00
Adam Heath
a99d5b7b94
Add comment that describes why there is a check of the index name existing in set.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949626 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:08:48 +00:00
Adam Heath
a60aabe718
Check whether any indices were created before printing a message saying what was done; handles the case when none were created.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949625 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:08:42 +00:00
Adam Heath
4a9f3516e4
Start refactoring fkIndex creation and declared index creation.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949624 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:08:35 +00:00
Adam Heath
f4ee31c10d
Fix wrong index label on declared indices.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949623 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:08:29 +00:00
Adam Heath
fe18c551ee
getIndexInfo was skipping all indices that were unique. This was wrong, as it meant that declared unique indices wouldn't be detected, and a creation would be attempted, which would then fail, saying it already existed.
...
Since all PRIMARY KEY constraints have a prefix of 'PK_', just skip all
those indices instead of checking the uniqueness.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949622 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:08:24 +00:00
Adam Heath
98b552082b
Fetching an index from the database requires the tableName pattern to *not* have the schemaName on the front. So, remove it when querying, but then add it back when checking if the table is allowed.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949621 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:08:18 +00:00
Adam Heath
83507c3b2e
In getIndexInfo, moved the lookupSchemaName calculation outside of the loop, as there is no way it could change at runtime.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949620 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:08:12 +00:00
Adam Heath
c16c805359
Refactored several getConnection() calls; if the caller added an error message, then it got refactored.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949619 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:08:07 +00:00
Adam Heath
93ec48f7e8
Add new variants of makeHavingWhereString that take a StringBuilder, and deprecate the old versions that don't.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949618 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:08:01 +00:00
Adam Heath
ea2ce99f4a
Add new variants of makeConditionWhereString that take a StringBuilder, and deprecate the old versions that don't.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949617 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:07:55 +00:00
Adam Heath
99fdeabe24
Add new variants of makeWhereStringFromFields that take a StringBuilder, and deprecate the old versions that don't.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949616 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:07:50 +00:00
Adam Heath
fac74c24b8
Add new variants of fieldsStringList that take a StringBuilder, and deprecate the old versions that don't.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949615 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:07:44 +00:00
Adam Heath
216a1a29d7
Add new variants of colNameString that take a StringBuilder, and deprecate the old versions that don't.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949614 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:07:36 +00:00
Adam Heath
4bb8795838
Optimize groupBy insertion a bit, to keep from having to make a copy of the groupBy list.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949612 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:07:29 +00:00
Adam Heath
7e31d0b8e3
Fix instances of String+String while appending to a StringBuilder/StringBuffer.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949611 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:07:23 +00:00
Adam Heath
c8a6d783aa
Remove double assignment to addParens(slight optimization/code refactor).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949610 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:07:16 +00:00
Adam Heath
ddb9bf8b27
Remove FieldDefFieldValue, and merge FieldDefValue into FieldDef.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949603 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:06:31 +00:00
Adam Heath
39faca3863
Allow for dynamic registering of additional operators for extensions.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948448 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:23:03 +00:00
Adam Heath
3ffebd5910
Always set memberModelEntities; there's no reason to check for null, as
...
the population methods always get called during construction anways.
This was discovered while looking at code coverage.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948443 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:40 +00:00
Adam Heath
b861401e71
Fix view entities that have view entities as members, with complex aliases, or functions on the nested view.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948442 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:34 +00:00
Adam Heath
4488c44a32
Add support for UPPER and LOWER functions in index fields.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948440 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:21 +00:00
Jacopo Cappellato
0dd1427f0a
Added ability to override the type, colName and description of an existing entity field using the extend-entity definition.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@942076 13f79535-47bb-0310-9956-ffa450edef68
2010-05-07 14:08:39 +00:00
David E. Jones
1b2bbe40c5
Check for bad entity name and return a better error message than an NPE
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941284 13f79535-47bb-0310-9956-ffa450edef68
2010-05-05 13:40:33 +00:00
Scott Gray
df84248153
The following deprecated classes, constructors or methods have been removed:
...
org.ofbiz.entity.GenericDelegator.findCountByAnd(String)
- Use findCountByCondition(String, EntityCondition, EntityCondition, EntityFindOptions) instead
org.ofbiz.entity.GenericDelegator.findCountByAnd(String, Object...)
- Use findCountByCondition(String, EntityCondition, EntityCondition, EntityFindOptions) instead
org.ofbiz.entity.GenericDelegator.findCountByAnd(String, Map<String, ? extends Object)
- Use findCountByCondition(String, EntityCondition, EntityCondition, EntityFindOptions) instead
org.ofbiz.entity.GenericDelegator.findCountByCondition(String, EntityCondition, EntityCondition)
- Use findCountByCondition(String, EntityCondition, EntityCondition, EntityFindOptions) instead
org.ofbiz.entity.GenericDelegator.getRelated(String, GenericValue)
- Use getRelated(String, Map<String, ? extends Object>, List<String>, GenericValue) instead
org.ofbiz.entity.GenericDelegator.getRelatedByAnd(String, Map<String, ? extends Object>, GenericValue)
- Use getRelated(String, Map<String, ? extends Object>, List<String>, GenericValue) instead
org.ofbiz.entity.GenericDelegator.getRelatedOrderBy(String, List<String>, GenericValue)
- Use getRelated(String, Map<String, ? extends Object>, List<String>, GenericValue) instead
org.ofbiz.entity.GenericDelegator.getMultiRelation(GenericValue, String, String)
- Use getMultiRelation(GenericValue, String, String, List<String>) instead
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938955 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:31:18 +00:00
Scott Gray
5220be9f4e
The following deprecated classes, constructors or methods have been removed:
...
org.ofbiz.entity.Delegator.getMultiRelation(GenericValue, String, String)
- Use getMultiRelation(GenericValue, String, String, List<String>) instead
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938954 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:31:08 +00:00
Scott Gray
2d4b56a599
The following deprecated classes, constructors or methods have been removed:
...
org.ofbiz.entity.GenericDelegator.findByOr(String, Object...)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findByOr(String, Map<String, ? extends Object>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findByOr(String, Map<String, ? extends Object>, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findByAndCache(String, Object...)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findByLike(String, Object...)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findByLike(String, Map<String, ? extends Object>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findByLike(String, Map<String, ? extends Object>, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findByCondition(String, EntityCondition, Collection<String>, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findByCondition(String, EntityCondition, EntityCondition, Collection<String>, List<String>, EntityFindOptions)
- Use find(String, EntityCondition, EntityCondition, Set<String>, List<String>, EntityFindOptions) instead
org.ofbiz.entity.GenericDelegator.findByConditionCache(String, EntityCondition, Collection<String>, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findListIteratorByCondition(String, EntityCondition, Collection<String>, List<String>)
- Use find(String, EntityCondition, EntityCondition, Set<String>, List<String>, EntityFindOptions) instead
org.ofbiz.entity.GenericDelegator.findListIteratorByCondition(String, EntityCondition, EntityCondition, Collection<String>, List<String>, EntityFindOptions)
- Use find(String, EntityCondition, EntityCondition, Set<String>, List<String>, EntityFindOptions) instead
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938950 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:30:57 +00:00
Scott Gray
f097b0a639
The following deprecated classes, constructors or methods have been removed:
...
org.ofbiz.entity.GenericDelegator.findAll(String)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findAll(String, String...)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findAll(String, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findAllCache(String)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findAllCache(String, String...)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findAllCache(String, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findByAnd(String, EntityCondition...)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findByAnd(String, List<EntityCondition>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findByAnd(String, List<EntityCondition>, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findByOr(String, EntityCondition...)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findByOr(String, List<EntityCondition>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
org.ofbiz.entity.GenericDelegator.findByOr(String, List<EntityCondition>, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938948 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:30:33 +00:00
Scott Gray
8a0ba1d049
The following deprecated classes, constructors or methods have been removed:
...
org.ofbiz.entity.GenericDelegator.findByPrimaryKey(GenericPK)
- Use findByPrimaryKey(String, Map<String, ? extends Object>)
org.ofbiz.entity.GenericDelegator.findByPrimaryKey(String, Object...)
- Use findByPrimaryKey(String, Map<String, ? extends Object>)
org.ofbiz.entity.GenericDelegator.findByPrimaryKeyCache(GenericPK)
- Use findByPrimaryKeyCache(String, Map<String, ? extends Object>)
org.ofbiz.entity.GenericDelegator.findByPrimaryKeySingle(String, Object)
- Use findOne(String, Map<String, ? extends Object, boolean)
org.ofbiz.entity.GenericDelegator.findByPrimaryKeyCacheSingle(String, Object)
- Use findOne(String, Map<String, ? extends Object, boolean)
org.ofbiz.entity.GenericDelegator.findByPrimaryKeyPartial(GenericPK, String...)
- Use findByPrimaryKeyPartial(GenericPK, Set<String>)
org.ofbiz.entity.GenericDelegator.findAllByPrimaryKeys(Collection<GenericPK>)
org.ofbiz.entity.GenericDelegator.findAllByPrimaryKeysCache(Collection<GenericPK>)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938945 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:29:32 +00:00
Scott Gray
3129044e2d
The following deprecated classes, constructors or methods have been removed:
...
org.ofbiz.entity.model.ModelRelation.getMainEntity()
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938942 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:29:20 +00:00
Scott Gray
f8c5c12bcf
The following deprecated classes, constructors or methods have been removed:
...
org.ofbiz.entity.model.ModelEntity.getPksCopy()
- Use getPkFieldsUnmodifiable() instead
org.ofbiz.entity.model.ModelEntity.getFieldsCopy()
- Use getFieldsUnmodifiable() instead
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938939 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:29:09 +00:00
Scott Gray
1fb82378eb
At some point the behavior of initEntityEcaHandler() was changed so that a new handler wasn't inititated if the delegator already had one. The broke the test delegator because it requires a new handler be created for it rather than inherit the one provided by the delegator that it cloned. Worked around by setting the handler to null on the while making the test delegator before calling initEntityEcaHandler().
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935870 13f79535-47bb-0310-9956-ffa450edef68
2010-04-20 11:10:45 +00:00
Scott Gray
a3837cdcd2
Fix a problem reported by Bob Morley in OFBIZ-3663. When a delegator is cloned during test execution then the test mode isn't inherited by the new delegator and subsequently any changes made by that delegator are not tracked for rollback. Fixed by setting the testMode of the new delegator to match that of the one being cloned.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935869 13f79535-47bb-0310-9956-ffa450edef68
2010-04-20 11:10:34 +00:00
Scott Gray
167b4c0b99
Added a Groovy Builder class for building EntityConditions, plenty of room for handling possible errors, at the moment I'm just assuming the passed in parameters will be what I expect
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935326 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 10:11:45 +00:00
Adam Heath
a9a3b1058c
When rolling back a transaction, and there is already an exception
...
available, then don't bother logging a new temporary exception.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932104 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:42 +00:00