Adam Heath
b42247e988
Java 1.5 markup for eca, connection, and test.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585837 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:46:03 +00:00
Adam Heath
8aa1c4a132
Last bit of java 1.5 markup for EntityUtil.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585836 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:44:43 +00:00
Adam Heath
36d965155a
Java 1.5 markup for entity condition.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585835 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:43:26 +00:00
Adam Heath
537e6263ea
Add makeFields() method to verify keys/values of entity maps.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585834 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:41:53 +00:00
Adam Heath
fc82438bfa
Java 1.5 markup for EntityUtil.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585833 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:40:32 +00:00
Adam Heath
73804c6a54
Java 1.5 markup for GenericEntity.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585832 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:38:11 +00:00
Adam Heath
a26e9092ee
Add generics markup for Comparator and Comparable.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585824 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:33:25 +00:00
Adam Heath
c410d430b6
Implement Comparable on a few classes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585823 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:31:46 +00:00
Adam Heath
207830e893
Refactor compareTo into compareToFields.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585821 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:30:09 +00:00
Adam Heath
517d386d2b
GenericEntity.setString is buggy in setString for Boolean and
...
BigDecimal. MemoryHelper.verifyValue is buggy for Boolean.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585820 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:28:20 +00:00
Adam Heath
a822abceca
Use an anonymous class for running ecas.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585819 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:24:51 +00:00
Adam Heath
9999ba6628
Remove uneeded emptyList/emptyMap in EntityConditionBase.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585818 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:21:59 +00:00
Adam Heath
94bee5b834
EntityFunction is generified.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585816 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:20:27 +00:00
Adam Heath
78795b52e2
Use StringBuilder instead of StringBuffer.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585815 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:18:15 +00:00
Adam Heath
e383694ff0
Java 1.5 markup for entity cache.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585814 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:13:00 +00:00
Adam Heath
199b240f05
Java 1.5 markup for entity transaction classes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585813 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:11:44 +00:00
Adam Heath
66bc2f7dfb
Java 1.5 markup for entity serialize.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585811 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:10:26 +00:00
Adam Heath
560c693c31
Java 1.5 markup for entity config classes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585810 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:08:36 +00:00
Adam Heath
5e0b231049
EntityListIterator is now generified.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585809 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:07:05 +00:00
Adam Heath
5cb826f1cb
Add varargs variants to all entity source.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585808 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:05:01 +00:00
Adam Heath
2e3620deda
Refactor finder code.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585807 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:03:04 +00:00
Adam Heath
503dcdcfb9
No need to use + when a StringBuilder already exists.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585806 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:59:02 +00:00
Adam Heath
c69096e93a
Switch as much as possible from StringBuffer to StringBuilder.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585805 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:56:02 +00:00
Adam Heath
ffad050836
Use StringBuilder instead of StringBuffer in framework/service.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585804 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:54:25 +00:00
Adam Heath
2ff7a8a575
Make use of the single-arg variants of makePK/makeValue, removeAll,
...
and clearCacheLine
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585803 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:46:57 +00:00
Adam Heath
a66fb12d73
Add single-arg variants of makeValue, makePK, and clearCacheLine,
...
that take just an entityName. Also add removeAll(entityName).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585802 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:43:54 +00:00
Adam Heath
56ae98f437
Make use of UtilCache.findCache.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585801 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:41:30 +00:00
Adam Heath
5d2226ca82
Switch to local LRUMap.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585798 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:38:37 +00:00
Adam Heath
d658971b5e
Remove use of ArrayList/HashMap, and use FastList/FastMap.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585794 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:28:37 +00:00
Adam Heath
60df320b48
Use LinkedHashMap instead of LinkedMap.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585793 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:25:10 +00:00
Adam Heath
62e2816cec
Switch AbstractEntityConditionCache to FastMap.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585792 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:23:39 +00:00
Adam Heath
08a33982fa
Switch connection classes to FastMap.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585790 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:22:03 +00:00
Adam Heath
7b092d4ec3
ByteWrapper now implements Comparable, hashCode, and equals().
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585789 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:19:59 +00:00
Adam Heath
5048936900
Switch to collections class, from Vector/Hashtable.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585788 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:18:34 +00:00
Adam Heath
686210a51b
Fix loc incrementing in OfbizStore.keys().
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585786 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:15:59 +00:00
Adam Heath
70b72b96a9
Use System.currentTimeMillis() instead of new Date.getTime().
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585784 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 02:13:02 +00:00
Adam Heath
d9732f5d00
While tracking down memory usage(using java 1.6 and jhat), I noticed
...
a significant amount being referenced from the xml definition files.
Interning the strings that are found reduced this usage noticably.
Each string found in an xml file ends up sharing the original array
from the incoming buffer, so more than is nescessary is held in
memory.
Additionally, several strings(for example, partyId) are referenced
several times. Interning them reduces the memory even further.
Closes https://issues.apache.org/jira/browse/OFBIZ-1291
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585761 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 00:02:59 +00:00
Adam Heath
e1597de161
Lots of entities have a single field as their primary key. Add some
...
find variants that allow for specifying just the value for database
lookup. Closes https://issues.apache.org/jira/browse/OFBIZ-1292
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585759 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 23:51:41 +00:00
Adam Heath
753fc161b2
One little changed got merged incorrectly, for generics support.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585758 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 23:39:42 +00:00
Adam Heath
21e6eb59ad
Java 1.5 markup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585752 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 23:19:44 +00:00
Adam Heath
444d041fdf
Java 1.5 markup. Closes https://issues.apache.org/jira/browse/OFBIZ-1342
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585750 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 23:15:38 +00:00
Adam Heath
7b3a2a6b41
Java 1.5 markup for ComponentLoaderConfig.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585733 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 22:13:13 +00:00
Adam Heath
13580471ed
Java 1.5 markup for FlexibleStringExpander.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585730 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 22:11:30 +00:00
Adam Heath
df5cdede2a
Java 1.5 markup for UtilProperties(fixes InvoiceServices too).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585729 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 22:08:42 +00:00
Adam Heath
f3102e9053
Java 1.5 markup for FreeMarkerWorker.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585723 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 21:58:34 +00:00
Adam Heath
ea614d5985
Java 1.5 markup for config and containers. Closes
...
https://issues.apache.org/jira/browse/OFBIZ-1335
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585720 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 21:56:36 +00:00
Adam Heath
309c2ee642
Java 1.5 markup for UtilMisc.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585719 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 21:54:51 +00:00
Adam Heath
c12614388c
Remove ArrayList and HashMap usage from FreeMarkerWorker.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585718 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 21:52:21 +00:00
Adam Heath
b29e01ddb7
Make these config classes final.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585716 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 21:48:40 +00:00
Adam Heath
cf8fc6582c
Add java 1.5 generics and enhanced-for syntax. Closes
...
https://issues.apache.org/jira/browse/OFBIZ-1330
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585715 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 21:45:37 +00:00