Adam Heath
e768559d39
Bother; these uses of FastMap are actually rather stupid. The map is
...
only populated once at startup, then never modified again. What I have
discovered is that, while FastMap is supposed to be more stable in
memory allocation and cpu utilization, there was one leg of it's
internal structure that was *extremely* unbalanced. Ie, consider a
binary tree with 128 nodes, with 7 top level nodes, and then all the
rest of the nodes are on one side of the tree. Since these maps are
never modified after startup, we might as well just use a HashMap here.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903802 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:52:27 +00:00
Adam Heath
041a20e96b
Similiar to the last commit, don't maintain back-links to view entities;
...
instead, just the names of the entities are stored.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903801 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:51:47 +00:00
Adam Heath
9a206397ca
Don't store references to connected ModelEntity; instead, just store the
...
entity name. This helps the connected object graph at runtime, as it
used to be view->entity->view->entity, in very long loops. This is one
part of the fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903800 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:51:03 +00:00
Adam Heath
52143c14c1
Fix case of DynamicViewEntity vivification into ModelViewEntity not
...
storing the ModelReader.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903796 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:49:16 +00:00
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
18d0ceeaf9
Remove most docs targets, they are all the same anyways.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath
56dac0bf9e
Add a classes target to common.xml, and switch most build.xml to use it.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894024 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:16:56 +00:00
Adam Heath
47b0a876ed
Switch all javac15 to javac16.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894022 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:12:04 +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
Jacopo Cappellato
13a79db193
Upgrade to Derby 10.5.3.0
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892733 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 09:04:52 +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
Jacques Le Roux
47c9613346
Some easy documentation (cwiki) links changes following r888510
...
I have found a way to fix tinylinks :D http://confluence.atlassian.com/pages/viewpage.action?pageId=162988142
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888559 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 20:23:23 +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