Commit Graph
159 Commits
Author SHA1 Message Date
Adam Heath 4a609f7531 Intern the entity descriptions too.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586117 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 20:16:29 +00:00
Adam Heath ba687998de Fix CCE in equals.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586115 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 20:14:36 +00:00
David E. Jones 02f471258d Based on feedback from Adam Feder small change to better avoid conflicting threads grabbing the same sequences
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586079 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 18:57:01 +00:00
Adam Heath 54f7822cfa Fix error reported on mailing list; in essence, it appeared that
conditions weren't being processed.  This was due to a cut-n-waste
issue; both whereCondition and havingCondition called
getHavingEntityCondition(doh!).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586018 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 15:56:48 +00:00
Adam Heath 300f380b62 Fix compare, UnsupportedOperationException.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585974 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 14:24:50 +00:00
Adam Heath d3c07bfa49 Final bit of generics for EntityDataAssert.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585846 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:57:29 +00:00
Adam Heath b420ea54d4 Java 1.5 markup for DelegatorInterface and GenericDelegator.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585845 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:56:10 +00:00
Adam Heath 2bfc17a15d Java 1.5 markup for entity util.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585844 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:54:48 +00:00
Adam Heath 6a7236c6d6 Java 1.5 markup for entity jdbc.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585842 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:53:30 +00:00
Adam Heath f0909c0805 Java 1.5 markup for entity datasource.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585841 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:52:08 +00:00
Adam Heath 8874f0eb0c Java 1.5 markup for entity finder.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585840 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:50:30 +00:00
Adam Heath ed4fa858cb Java 1.5 markup after model support added.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585839 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:49:12 +00:00
Adam Heath f5702a9b93 Java 1.5 markup for entity model.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585838 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 03:47:31 +00:00
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 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 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 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 78773e7215 The only public hasExpired method on UtilCache takes an Object; since
a CacheLine is passed, however, UtilCache never really finds the
correct value to check for expiration.  Closes
https://issues.apache.org/jira/browse/OFBIZ-1296


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585650 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 19:54:32 +00:00
Jacopo Cappellato 3687738738 Small cleanups by Adrian Crum OFBIZ-902
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585389 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 06:12:49 +00:00
Jacopo Cappellato 1f81945758 in view definitions, group-by fields that are not in the select clause are not added to the group by section.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585051 13f79535-47bb-0310-9956-ffa450edef68
2007-10-16 06:04:29 +00:00
Jacopo Cappellato a188d85806 First version/poc (proof of concept) for an integrated framework for business intelligence in OFBiz.
For now everything is in a separate specialpurpose component to facilitate the community review but as soon as everything will be consolidated the component will probably disappear (absorbed by the existing framework/applications components).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@584727 13f79535-47bb-0310-9956-ffa450edef68
2007-10-15 10:55:07 +00:00
Jacopo Cappellato 24724bfa46 Added 'description' field and accessor methods to the ModelField and ModelViewEntity.ModelAlias classes to store the field level description specified in the entity definition (<description></description> tags).
Added new optional attributes to the alias-all element: function and group-by. If specified then to all the aliased fields the function and/or group-by element will be applied.
In ModelViewEntity, added new method to get the list of group-by fields as a subset of the passed in list: this is useful to get the list of group-by fields limited to the felds that are in the select clause.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@584700 13f79535-47bb-0310-9956-ffa450edef68
2007-10-15 07:28:48 +00:00
David E. Jones ca526c3957 Some improvements to how sequencing is done, including a new method in the GenericDelegator that does a sequence and create all in one, including a single retry with bank refresh on failure because of duplicate ID just in case two sequencers somehow get the same ID bank; in theory that is impossible but it has been observed in production and this is part of the 2 part solution to handle the problem more elegantly than having to restart the servers, and to try to find out just how two sequencers got the same bank of values; this includes changing a number of key code blocks to use the combined sequence and create for retry, and a little bit of code cleanup too
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582142 13f79535-47bb-0310-9956-ffa450edef68
2007-10-05 09:02:49 +00:00
David E. Jones 72e104f08d Updated derby to 10.3.1.4, which requires recent change in DatabaseUtil, but is now tested with the new stuff there
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579552 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 10:00:35 +00:00
David E. Jones a843682ce1 Applied patch from Karl Eilebrecht, cleaned up by Adrian Crum, to fix startup issues in SQL Server and other databases, including the latest version of Derby which I'll now put in here; after the patch I made a few changes to keep the stuff that tries to get data for all tables in one call as that tends to perform MUCH faster on certain databases, but now checks for errors and will try other methods as needed; right now this is only being done for primary key info, but the same pattern could be applied in other places if needed (and it may very well be); this should close Jira #OFBIZ-1020
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@579551 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 09:59:26 +00:00