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
Si Chen
c396b92ff4
Fix some potential NPEs from Oleg Andreyev OFBIZ-1244
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@578874 13f79535-47bb-0310-9956-ffa450edef68
2007-09-24 16:39:40 +00:00
David E. Jones
1c746f7234
Chagned type for very-long in MySQL from TEXT to LONGTEXT to be more similar to what we expect in other databases; TEST has a max size of 64KB, LONGTEXT has a max size of 4GB
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@577960 13f79535-47bb-0310-9956-ffa450edef68
2007-09-21 02:04:29 +00:00
David E. Jones
a1a4271304
A small change to make it possible to attach these to a transaction other than the currently active one (like a paused one, for example)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576661 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 02:09:52 +00:00
David E. Jones
559723ad32
Changed to use BigDecimal.valueOf instead of constructor, for something closer to the expected results; thanks to Jacopo and Martin Anderson for comments on this
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576660 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 02:09:09 +00:00
Scott Gray
c501041f58
Applied patch from myself based on comments from David E Jones in an issue reported by Pham Hoai Van OFBIZ-152, Removed the boolean keepLocalReaders and any references to it since the false setting is no longer supported.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@576331 13f79535-47bb-0310-9956-ffa450edef68
2007-09-17 09:47:50 +00:00
Andrew Zeneski
4202c6ecac
refactored entity engine factory and transaction factories to allow full configuration of managed connections through entityengine.xml. changed all connection factories to be instance objects (singleton pattern) implementing the new ConnectionFactoryInterface interface.
...
Two working connection factories are included now, Minerva and DBCP.
Minerva is still default until more testing can be done on DBCP; to change this use the DBCPConnectionFactory instead of MinervaConnection factory (see entityengine.xml)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@575396 13f79535-47bb-0310-9956-ffa450edef68
2007-09-13 18:32:31 +00:00
Andrew Zeneski
b9fe2735e4
added DBCP connection pool and supporting class; need to modify ConnectionFactory to enable this; needs more testing before 'production' ready (snapshot of 1.3 DBCP)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@575181 13f79535-47bb-0310-9956-ffa450edef68
2007-09-13 06:10:34 +00:00
David E. Jones
882124675e
Fixed problem with service engine and TransactionUtil where if rollback only was set in a service it could not run sub-services even in their own transaction; the test case for this now passes with no problems
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@574514 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 08:52:18 +00:00
Jacques Le Roux
c1d5cbf664
Finally put toUpperCase in ModelFieldType.StringLength() on David's advice
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573980 13f79535-47bb-0310-9956-ffa450edef68
2007-09-09 10:25:13 +00:00
Jacques Le Roux
b45c9b49a9
A patch from Adrian Crum "ModelFieldType.StringLength() returns incorrect value" ( https://issues.apache.org/jira/browse/OFBIZ-1229 )
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573967 13f79535-47bb-0310-9956-ffa450edef68
2007-09-09 09:16:50 +00:00
David E. Jones
2d744d0102
Added sequence-bank-size to configure sequence bank sizes on a per-entity basis
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573785 13f79535-47bb-0310-9956-ffa450edef68
2007-09-08 05:32:53 +00:00
Andrew Zeneski
a39e0f07a0
changed toSring() method to NOT display encyrpted fields for security; add new toStringInsecure() to get the insecure string value
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573650 13f79535-47bb-0310-9956-ffa450edef68
2007-09-07 18:00:27 +00:00
David E. Jones
136b14faf5
Small format change only in TransactionUtil; in EntityDataAssert fixed a couple of NPE cases and improved to make much more robust
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572413 13f79535-47bb-0310-9956-ffa450edef68
2007-09-03 20:22:51 +00:00
David E. Jones
3ad6776a70
Small comment change
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@571663 13f79535-47bb-0310-9956-ffa450edef68
2007-09-01 01:02:46 +00:00
David E. Jones
9b347446c8
A few improvements to make error logs less redundant
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@570729 13f79535-47bb-0310-9956-ffa450edef68
2007-08-29 10:03:11 +00:00
David E. Jones
6ced65fcb1
Cleaned up exception and error handling in getNextSeqId code, was redundant and the tx code in getNextSeqIdLong that getNextSeqId always calls wasn't handling commits right
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@570706 13f79535-47bb-0310-9956-ffa450edef68
2007-08-29 08:58:10 +00:00
David E. Jones
e20fb4bd36
Added set element for Entity ECA rules, and a simple service to be run as an EECA for watching entire entities or single fields on entities
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@570282 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 00:47:58 +00:00
David E. Jones
f64294339b
Implemented a new feature to do a check on data files with no changes to the database instead of loading the data; this includes some refactoring of other classes that do this and a few improvements as well based on some testing
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@564565 13f79535-47bb-0310-9956-ffa450edef68
2007-08-10 11:47:37 +00:00
David E. Jones
af72dec55c
Changed to not warn about transaction timeout if not timeout is passed to this object
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@560155 13f79535-47bb-0310-9956-ffa450edef68
2007-07-27 08:56:17 +00:00
David E. Jones
a2b303b281
Added ext-demo data loader, plus improved comments about them
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@550881 13f79535-47bb-0310-9956-ffa450edef68
2007-06-26 17:54:57 +00:00
David E. Jones
eae64b0e30
Added ext-test data reader for ext data files that are used for testing only and not for production; the main reason for using this instead of demo is that it is often necessary for custom installations to make sure the tests will run without the demo data which is not generally used in production; so, production gets extseed (seed, ext) and pre-production testing gets exttest (seed, ext, ext-test)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@550848 13f79535-47bb-0310-9956-ffa450edef68
2007-06-26 16:43:56 +00:00
Jacopo Cappellato
bf3fb8206c
Fixed bug reported by Anil Patel in the mailing list.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@550384 13f79535-47bb-0310-9956-ffa450edef68
2007-06-25 06:49:13 +00:00
Jacopo Cappellato
f9ccd14670
Applied patch from Stefan Huehner OFBIZ-730 to fix some very bad conditions that could cause NPE.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@550233 13f79535-47bb-0310-9956-ffa450edef68
2007-06-24 14:17:31 +00:00
Jacopo Cappellato
48d3898de7
Fixed wrong field name.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@546833 13f79535-47bb-0310-9956-ffa450edef68
2007-06-13 12:04:25 +00:00
David E. Jones
42c83d59a0
Change to adjust for Derby bug with null values in a unique index; this setting just turns off the unique part of maually declared indices when set, as it is now by default for Derby; now the seed data loading and other things will work though WARNING: unique indices will not work with Derby; we don't use these much but we need to watch for it in testing
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@544640 13f79535-47bb-0310-9956-ffa450edef68
2007-06-05 21:24:21 +00:00
David E. Jones
c0b1dfc8f0
Changed default for alias-view-columns from true to false
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@542665 13f79535-47bb-0310-9956-ffa450edef68
2007-05-29 21:52:22 +00:00
David E. Jones
07b48643c5
As noted needing to be done by Jacques Le Roux did a search/replace on source=1.4 and changed to 1.5
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@541997 13f79535-47bb-0310-9956-ffa450edef68
2007-05-27 15:55:18 +00:00
David E. Jones
4f6984e880
Fixed NPE reported by Michael Imhof, based on patch in Jira #OFBIZ-742
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539790 13f79535-47bb-0310-9956-ffa450edef68
2007-05-19 19:13:40 +00:00
Hans Bakker
7b47d7de44
If a entity to extend does not exist: NPE replaced with exception and message
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539691 13f79535-47bb-0310-9956-ffa450edef68
2007-05-19 06:00:09 +00:00
Si Chen
bdd3ed9f4b
fix last commit of oracle alias-view-column
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539645 13f79535-47bb-0310-9956-ffa450edef68
2007-05-19 00:06:37 +00:00
David E. Jones
856a924ee3
Reversed a couple of changes that appear to have been committed by accident
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539643 13f79535-47bb-0310-9956-ffa450edef68
2007-05-19 00:04:03 +00:00
Si Chen
f47068f164
alias-view-columns must be turned off for oracle to work properly
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539588 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 20:15:52 +00:00
David E. Jones
7d70c41c12
Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +00:00
Andrew Zeneski
8be8579f95
synced up changed to connection pool
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@537062 13f79535-47bb-0310-9956-ffa450edef68
2007-05-11 01:09:44 +00:00
Andrew Zeneski
8cf7c6b157
fixed, to make sure the real transaction is used to get status; previous to this commit the new thread wasn't associated with a transaction
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@537059 13f79535-47bb-0310-9956-ffa450edef68
2007-05-11 01:05:28 +00:00
Andrew Zeneski
7c364ac81a
added tracer to internal XAResource to notify when transactions timeout
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@536705 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 22:57:40 +00:00
Andrew Zeneski
1db9cdd4f7
appears GeronimoTXM throws IllegalStateExceptions under certain conditions in transactions; this will cause the transaction to hang since it is never caught; now catching this
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@536689 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 22:14:30 +00:00
David E. Jones
20b0c6c7b3
Changed default connection pool size to 250; our default http listener size in ofbiz-containers.xml is 200 and the default service engine pool size is 15, plus leaving a few extras
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@536644 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 20:05:58 +00:00
Andrew Zeneski
f17843d7c0
fixed NPE in collector thread
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@536431 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 05:57:06 +00:00
Andrew Zeneski
31b1cee987
updated minerva; added new debugging; fixed problem with RuntimeException hanging transactions; fixed problems with pool not clearing old/stale connections
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@536400 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 03:38:36 +00:00