Commit Graph
321 Commits
Author SHA1 Message Date
David E. Jones 670dabded0 Fixed bug reported by Ritesh Trivedi where an encrypted field accessed through a view entity was not decrypted
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662090 13f79535-47bb-0310-9956-ffa450edef68
2008-05-31 21:34:01 +00:00
David E. Jones a97dcc600a Added further support for javolution ObjectFactory which will bring the efficiency improvements that along with syntax cleanup are part of this whole factory method effort
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660850 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 07:58:13 +00:00
David E. Jones 82df3529e2 More cleanups of now deprecated constructors and what what
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660840 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 07:16:36 +00:00
David E. Jones b9d6f8b524 Changed EntityExpr and EntityFunction subclasses to use the factory instead of constructor pattern, plus moved EntityExpr to EntityCondition factory methods; a number of EntityExpr cleanups, but many more to go
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660812 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 05:20:09 +00:00
David E. Jones 3543d6abe3 Changed the way EntityCondition sub-classes work so they use the javolution Reusable class for recycling objects; now all conditions should be created using the factory methods on the EntityCondition object instead of the direct constructors; there is a small variety of classes available there now for ease of use; also changed a bunch of old code to not use the deprecated constructors; note that still need to do a pass similar to this on EntityExpr
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660780 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 01:58:46 +00:00
Jacques Le Roux 66f3699ad7 Upgrade to Derby 10.4.1.3 from 10.3.1.4 from a recommendation of the Derby project
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659237 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 20:19:14 +00:00
Adrian Crum a3536990f1 Locale and Time Zone refactor and bug fixes.
1. Modified the Start class to initialize the JVM default locale and time zone - configurable through start.properties. Removed calls to UtilDateTime.getDefaultTimeZone() - no longer needed.

2. Changed all calls to ObjectType.simpleTypeConvert(...) that didn't supply the necessary Locale and TimeZone objects. This fixes a lot of localization issues, https://issues.apache.org/jira/browse/OFBIZ-1696 being one of them.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@658045 13f79535-47bb-0310-9956-ffa450edef68
2008-05-19 23:50:14 +00:00
David E. Jones 349f9518ca Removed deprecate from DynamicViewEntity call; was a little too aggressive on that; thanks to Scott for the heads up
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655242 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 04:55:54 +00:00
Scott Gray 153653615b Removed the rest of the calls to deprecated GenericDelegator methods, except for the findListIteratorByCondition which takes a DynamicViewEntity as a parameter not sure what to do about that one.
There's still all the bsh files to check though.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655235 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 03:29:04 +00:00
Scott Gray 0792342f2a Removed more calls to deprecated GenericDelegator methods
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655016 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 06:24:19 +00:00
Scott Gray c182253d73 Removed more calls to deprecated GenericDelegator methods
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@655013 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 05:35:16 +00:00
Scott Gray daeadc7442 Removed more calls to deprecated GenericDelegator methods
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@654934 13f79535-47bb-0310-9956-ffa450edef68
2008-05-09 20:57:23 +00:00
Scott Gray 8c606bcdce Removed all calls to the deprecated GenericDelegator.findAll(String, List)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@654771 13f79535-47bb-0310-9956-ffa450edef68
2008-05-09 11:52:37 +00:00
Scott Gray 848c024f3f Fix to prevent an IndexOutOfBoundsException
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@654718 13f79535-47bb-0310-9956-ffa450edef68
2008-05-09 08:33:03 +00:00
David E. Jones 329631a4b5 A whole bunch of cleanups to use newer and more consolidated delegator find methods; still lots of deprecation warnings, bots of deprecation warnings but this is a first pass, and things still run as before
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653029 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 09:40:51 +00:00
David E. Jones dfed0d7378 First pass at deprecating find methods, comments include counts of references and some stuff about code cleanups to be committed next
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653028 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 09:39:18 +00:00
David E. Jones 3897a70ee3 Removed redundant synchronized on setFields because it is synced on set
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653009 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 06:43:39 +00:00
David E. Jones 3b7660fc3b Added feature to entity engine to support generic audit log that can be used for any field; values are converted to a string and l using the enable-audit-log attribute on the entity->field element; the Testing entity uses it now for the testName; this also has functionality to associate user info like the userLoginId with the thread so that the EE knows about it automatically, and uses a stack for flexibility
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652226 13f79535-47bb-0310-9956-ffa450edef68
2008-04-30 02:02:29 +00:00
David E. Jones b3ade46e61 Realized method name was bad for properties resource not found method, improved
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@645562 13f79535-47bb-0310-9956-ffa450edef68
2008-04-07 15:22:44 +00:00
David E. Jones e6e13652af Small refactor to preserve protected Map in UtilProperties
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@645561 13f79535-47bb-0310-9956-ffa450edef68
2008-04-07 15:21:26 +00:00
Adrian Crum d0dff7df5e Fixed problem with entity engine trying to translate fields using properties files that don't exist. Reported by Jacopo in https://issues.apache.org/jira/browse/OFBIZ-1736.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@645278 13f79535-47bb-0310-9956-ffa450edef68
2008-04-06 18:06:06 +00:00
David E. Jones 0b4bcd4807 Added stuff to get definition location URL for all artifact types
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644206 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 07:59:52 +00:00
Jacopo Cappellato 0e75a4abb1 Added support for get-related* operations in entity related information for artifact infos.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639780 13f79535-47bb-0310-9956-ffa450edef68
2008-03-21 19:58:09 +00:00
Jacques Le Roux e791983beb Comment outside the test definition to avoid conflicts (when the datasource has been changed for intance)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@637382 13f79535-47bb-0310-9956-ffa450edef68
2008-03-15 10:14:34 +00:00
Jacques Le Roux 5de5f59bc4 More complete comment and on another line to avoid conflicts (when the datasource has been changed for intance)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@637381 13f79535-47bb-0310-9956-ffa450edef68
2008-03-15 10:11:07 +00:00
Jacques Le Roux f28dfd5b32 A short comment to prevent issues with run-tests when the datasource is not the same than for run-install
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@637312 13f79535-47bb-0310-9956-ffa450edef68
2008-03-15 00:44:45 +00:00
Jacques Le Roux 8633b5080a From a Chris Juettner's remark in dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@635236 13f79535-47bb-0310-9956-ffa450edef68
2008-03-09 13:54:20 +00:00
David E. Jones e6e09fcc68 Moved plist stuff to its own file; added simple class to look for stuff in Java code, amazingly seems to be working to find entities/seseems to be working to find entities/services in java services
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@634119 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 02:08:10 +00:00
David E. Jones a4305dc6ab Changed to be able to identify pks in related entities in the export
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@633963 13f79535-47bb-0310-9956-ffa450edef68
2008-03-05 18:25:13 +00:00
David E. Jones 1af406bebf Changed plist export to use XML form, much more friendly to funny characters; a few fixes/improvements too
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@633783 13f79535-47bb-0310-9956-ffa450edef68
2008-03-05 07:40:02 +00:00
David E. Jones 2bf0afbe4a No real functional changes to operational code, just new stuff for getting meta data about entities, services, etc from the system
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@633325 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 23:37:14 +00:00
David E. Jones 8f34e95db9 Small change to set isMandatory
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@631867 13f79535-47bb-0310-9956-ffa450edef68
2008-02-28 06:30:25 +00:00
David E. Jones 22a58861f5 Some refactoring of the entity eomodeld export, wrote initial service and eca calling/called graph, still needs data gathering though
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630737 13f79535-47bb-0310-9956-ffa450edef68
2008-02-25 05:47:34 +00:00
David E. Jones 45b65f076b Some refinements to use relationship attributes for incoming rels and fields for outgoing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630553 13f79535-47bb-0310-9956-ffa450edef68
2008-02-24 00:24:19 +00:00
David E. Jones 8e80106836 Changed to support comma separated package name list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630544 13f79535-47bb-0310-9956-ffa450edef68
2008-02-23 23:11:04 +00:00
David E. Jones f6ff4a760d Changed EOModelBundle entity stuff to use the generic plist out format routines
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630541 13f79535-47bb-0310-9956-ffa450edef68
2008-02-23 22:45:10 +00:00
David E. Jones 490ee125e3 A number of fixes and improvements to get the EOModelBundle stuff to be loadable in OmniGraffle, now pretty much functional
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630428 13f79535-47bb-0310-9956-ffa450edef68
2008-02-23 13:10:50 +00:00
David E. Jones e8d61ef0b7 Added initial implementation of entity EOModelBundle export, including various utility methods and refactoring and such
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630279 13f79535-47bb-0310-9956-ffa450edef68
2008-02-22 18:17:21 +00:00
David E. Jones 80acfcb716 Fixed tabs to spaces; it is evil that eclipse comes with this sort of default...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@628703 13f79535-47bb-0310-9956-ffa450edef68
2008-02-18 12:34:08 +00:00
David E. Jones eb542c49ad A few misc cleanups/improvements; some generics stuff, use FastMap/List, convenience methods for meta data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@628700 13f79535-47bb-0310-9956-ffa450edef68
2008-02-18 12:21:13 +00:00
David E. Jones edafa04bd7 Added seed-initial data set and changed all JobSandbox seed data entries to be in this instead; allows for reloading of seed data withows for reloading of seed data without redundant jobs scheduled
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@627824 13f79535-47bb-0310-9956-ffa450edef68
2008-02-14 18:26:44 +00:00
Jacques Le Roux c342f744b2 Add checkIndexes in checkDB to be able to use check-indices-on-start="true" on entityengine.xml
Replace // TODO: also check the declared indices on start, if the datasourceInfo.checkIndicesOnStart flag is set

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@611626 13f79535-47bb-0310-9956-ffa450edef68
2008-01-13 19:40:26 +00:00
Jacopo Cappellato af320519e0 Applied patch from Adrian Crum (OFBIZ-1422) to fix some cases where aliased entity fields were losing their description element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@601072 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 20:27:19 +00:00
Scott Gray 212733027f getNextSeqId requires a valid entity name
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600830 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 08:16:36 +00:00
David E. Jones 2a3f7fe13a Some more backward compatibility to use getBytes if getBlob fails; gotta love JDBC
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600224 13f79535-47bb-0310-9956-ffa450edef68
2007-12-02 01:20:52 +00:00
David E. Jones 0c171dd783 This is a fix for the lock wait timeout problem that was happening for large sets of orders and other high volume operations, and long-lived operations with lots of asynchronous service calls; this includes some diagnostic code to show the status of transactions in other threads when a lock wait timeout error is detected; the main fix here is a big cleanup of the concurrency handling in the JobManager and JobPoller objects, including the use of sleep instead of wait for more strict and consistent sync locking, and the use of different objects for locking different parts of that class since some are meant to be used by various other threads (like the queueNow and next methods) and others are only for the poller thread, like the run method; this also includes certain other small cleanups and improvements, like using FastList/FastMap more
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600164 13f79535-47bb-0310-9956-ffa450edef68
2007-12-01 16:50:00 +00:00
Jacques Le Roux aafab5d951 To avoid NPEs in Webtools/Minerva Connection Info (did not look further to check if it works fine)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@598288 13f79535-47bb-0310-9956-ffa450edef68
2007-11-26 14:30:44 +00:00
Jacques Le Roux f520931be7 Slightly modified annotation/documentation for complex-alias from Skip Dever proposition in "Additional documentation for View entities"https://issues.apache.org/jira/browse/OFBIZ-1419
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@597488 13f79535-47bb-0310-9956-ffa450edef68
2007-11-22 21:03:57 +00:00
Jacopo Cappellato 7fd19bc319 Added support for the <description> element to the ModelChild class, which all of ModelField, ModelIndex, and ModelRelation extend.
Thanks to Adrian Crum for the patch: OFBIZ-1389

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@596815 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 20:35:35 +00:00
David E. Jones d16b818a2a Fixed bad XML from recent commit in r594077
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@594207 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 16:44:01 +00:00