Scott Gray
ea4c4c892e
Removed deprecated method ConnectionFactory.tryGenericConnectionSources(String, Element)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902226 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:18 +00:00
Scott Gray
5d8c3aa5f6
Fixed bug reported by Wickersheimer Jeremy, OFBIZ-3302. Because the testEntityListIterator test depends on the correct ordering of the find results, explicity specify the correct order rather than depending on the database to get it right.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900511 13f79535-47bb-0310-9956-ffa450edef68
2010-01-18 18:53:50 +00:00
Scott Gray
89e146c0b2
Allow byte[] and ByteBuffer to be used to set a Blob typed GenericEntity fields without warnings
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899825 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:43:56 +00:00
Adam Heath
b17eb127ec
Fix trailing whitespace, and mixed tab/space at the beginning of lines.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:00:23 +00:00
David E. Jones
9f222d3224
Small improvement to the EntityListIterator count total results code when distinct is used and partial fields are selected; note that this assumes the most unique field is first in the list since doing distinct on multiple fields in this way does not seem to work
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@897605 13f79535-47bb-0310-9956-ffa450edef68
2010-01-10 09:16:47 +00:00
David E. Jones
78f92eb5db
Small change to reduce the volume on this frequent error message that simply lets you know the system is falling back to a different way of doing things
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@896853 13f79535-47bb-0310-9956-ffa450edef68
2010-01-07 11:46:00 +00:00
Bilgin Ismet Ibryam
6b0a2fe97f
Use getLocalName() instead of getNodeName() and getTagName() methods. This change will fix errors in soap call, where elements have namespace prefixes.
...
I didn't notice any error caused from these changes, but it would be great if someone with more xml knowledge takes a loot at it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894359 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 11:33:39 +00:00
Adam Heath
93cc17b5b0
Remove a bunch of wildcard imports.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894106 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 19:54:58 +00:00
Adam Heath
17e8d26105
Fix some javadoc warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894037 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 01:01:01 +00:00
Adam Heath
68278753f9
Pass the list of values to ModelConversion.convert().
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893345 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 23:17:56 +00:00
Adam Heath
4693797bc2
Remove plurality in ModelConversion.convert().
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893344 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 23:17:13 +00:00
Adam Heath
f355b9e503
Don't test viewEntityCondition against null multiple times.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893342 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 23:16:38 +00:00
Adam Heath
1dc3aa9b0a
Make the map passed to convert read-only.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893340 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 23:14:22 +00:00
Adam Heath
be3e008240
Support MathValue for field definitions.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892705 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 06:04:47 +00:00
Adam Heath
c66af181b1
MathValue now supports constants.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892704 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 06:04:09 +00:00
Adam Heath
9d031c883b
Fix planning of MathValue.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892696 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 05:49:13 +00:00
Adam Heath
9864303a74
Detect duplicate relations during parse, by making use of a map. In
...
addition, store this map for later use.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892143 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 05:38:49 +00:00
Adam Heath
e98ca66748
OrderBy is now a list of OrderByItem, instead of String, and support
...
upper and lower functions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892142 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 05:38:09 +00:00
Adam Heath
07e1de3270
Make testOperations manipulation non-blocking, using concurrent programming.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885277 13f79535-47bb-0310-9956-ffa450edef68
2009-11-29 21:32:36 +00:00
Jacques Le Roux
569a4afeea
Some cleaning related to isEmpty
...
* remove duplicate ()
* remove casts no longer needed
I'm doing these last tasks around isEmpty and isNotEmpty mostly to be sure that nothing has slipped in. Despite I have been very careful, I prefer double check.
+ one typo in ofbizSelenium help (not sure this file is used yet though, seems to be missing some parts which are commented out, for now I guess)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885093 13f79535-47bb-0310-9956-ffa450edef68
2009-11-28 14:08:16 +00:00
Adam Heath
e650de55f1
Fix build error, caused by bad merge from an old branch.
...
GenericDelegator was used instead of Delegator.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884373 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 02:30:10 +00:00
Adam Heath
1d148ce235
Helper method to fetch all rows/values from a query.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884363 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 01:33:38 +00:00
Adam Heath
586bedfa70
for all doTransaction helpers, change Throwable to
...
GenericEntityException.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884362 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 01:33:03 +00:00
Adam Heath
3a6becca71
For unimplemented values, show the class name as well.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884361 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 01:32:25 +00:00
Adam Heath
1599de6d2c
Handle null values during planning of conditions.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884360 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 01:31:38 +00:00
Jacques Le Roux
ebf6dc2efa
Fix a typo in JavaDoc found by Eclipse
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884251 13f79535-47bb-0310-9956-ffa450edef68
2009-11-25 20:31:38 +00:00
Jacques Le Roux
13ab0a310b
Use log verbose as suggested by Scott in https://issues.apache.org/jira/browse/OFBIZ-3107
...
+ SuppressWarnings("serial")
+ a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884047 13f79535-47bb-0310-9956-ffa450edef68
2009-11-25 11:15:16 +00:00
Adrian Crum
0b269f4296
Improved entity engine Blob test.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883882 13f79535-47bb-0310-9956-ffa450edef68
2009-11-24 21:24:10 +00:00
Jacques Le Roux
3bc058cef7
Replaces a not needed call to isEmpty()
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883682 13f79535-47bb-0310-9956-ffa450edef68
2009-11-24 13:10:38 +00:00
Jacques Le Roux
e25f58f02d
Scott detected that UtilValidate.is(Not)Empty did not exist for CharSequence and reverted changes I did in EntitySaxReader.java
...
This commit adds UtilValidate.is(Not)Empty for CharSequence; and uses it in EntitySaxReader.java and everywhere else it might still be used (because of my changes)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883634 13f79535-47bb-0310-9956-ffa450edef68
2009-11-24 09:24:32 +00:00
Scott Gray
01ca7f002b
Revert Jacques changes to EntitySaxReader.java from r883549 and 883507, the UtilValidate.is(Not)Empty methods are not setup to test CharSequence instances. Hopefully there aren't too many more out there.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883613 13f79535-47bb-0310-9956-ffa450edef68
2009-11-24 07:43:18 +00:00
Jacques Le Roux
c72b29cb1f
Use UtilValidate.isNotEmpty methods instead of (obj != null) || (obj.length > 0) and (obj != null) || (obj.size > 0)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883549 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 23:41:34 +00:00
Jacques Le Roux
5518e9baf8
Use UtilValidate.isEmpty methods instead of (obj == null) || (obj.size == 0)
...
Complete r883492
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883516 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 22:02:05 +00:00
Jacques Le Roux
4e0d303e06
Use UtilValidate.isEmpty methods instead of (obj == null) || (obj.length == 0)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883507 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 21:42:18 +00:00
Jacques Le Roux
8ae9319710
Use UtilValidate.isEmpty methods instead of (obj == null) || (obj.size == 0)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883492 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 20:34:27 +00:00
Adam Heath
6e0fcf060a
No longer access utilCacheTable from AbstractCache; this nescessatited
...
creating a getOrCreateUtilCache helper method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883225 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 03:03:20 +00:00
Adam Heath
95264791c2
Move getCacheName out of the synchronized block.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883224 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 03:02:27 +00:00
Adam Heath
760632627c
Add another createUtilCache variant that allows for extra properties to
...
be looked upped for setting parameters.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883223 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 03:01:37 +00:00
Adam Heath
820d11eb97
Deprecate UtilCache constructors, and add a create helper function.
...
This is the first step to making utilCacheTable concurrent, and
non-blocking. To do so, the constructor has to have no side-effects.
This means it can't modify utilCacheTable itself; this will be moved to
the helper function created above.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883217 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 02:56:28 +00:00
Adam Heath
c31e3499ed
Add flags to disable joins on DELETE and UPDATE.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883138 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 20:07:29 +00:00
Adam Heath
4976cbb3da
Plans that have condition objects now store those in the abstract classes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883137 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 20:06:34 +00:00
Adam Heath
be7b27b4cf
Fix StackOverflowError in EntitySelectPlan.toString.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883136 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 20:05:01 +00:00
Adrian Crum
f342a9804b
Small fixup for last commit - intern() the field type name.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@882243 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 18:48:30 +00:00
Adrian Crum
fdf56b40b0
Major code cleanup in ModelFieldTypeReader.java. Eliminated unused fields, made public fields protected, simplified code.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@882236 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 18:16:35 +00:00
Jacques Le Roux
dd66fd9dd6
Some itemizedlists and orderedlists in Accounting Help
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881845 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 17:39:53 +00:00
Adam Heath
38178273f6
Some space changes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881681 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 06:13:52 +00:00
Jacques Le Roux
9f3e41d975
A patch from Bob Morley "Resolve java warnings exposed in Eclipse : framework - entity" ( https://issues.apache.org/jira/browse/OFBIZ-3107 ) - OFBIZ-3107
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881669 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 04:54:18 +00:00
Adam Heath
d8c232164f
Reworked, no more unchecked warnings, nor suppressions.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881653 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 02:55:59 +00:00
Adam Heath
c171e23064
Add generics markup to makeWhereClause(modelFields) parameter.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881652 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 02:52:11 +00:00
Adam Heath
f5009216c1
Implement parameterized value conversion.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881193 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 08:31:30 +00:00