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
Jacques Le Roux
422ebdc44c
From Derryck Welas's comment in "Firebird 2.0 config improvement" ( https://issues.apache.org/jira/browse/OFBIZ-1012 ) OFBIZ-1012
...
I kept as comment old jdbc and login/pwd configuration (seems to be not platform independent)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@594077 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 10:34:22 +00:00
Scott Gray
ad4187594e
Added support for CLOB to ModelFieldType.stringLength()
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@592291 13f79535-47bb-0310-9956-ffa450edef68
2007-11-06 05:48:00 +00:00
David E. Jones
2495a69699
Fixed issue reported by Scott Gray in OFBIZ-1378; tested for save and load actual images, and for the broken case with an AgreementItactual image data and for the broken case of an AgreementItem that has no image associated with it, based on the patch from Scott but improves to be more efficient to do nothing on null, and only create a SerialBlob when needed, ie when setting it on an entity field
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@591834 13f79535-47bb-0310-9956-ffa450edef68
2007-11-04 20:50:06 +00:00
David E. Jones
1249d1472d
Small configuration change to move the bi/olap stuff to a separate database by default in order to avoid startup warnings; note data by default in order to avoid startup warnings; note existing databases with data in these tables will need to be moved to the olap db
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@589980 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 08:08:02 +00:00
David E. Jones
202d5c420d
Fixed issue with new Blob on the entity level and ByteBuffer on the service level stuff related to persisting actual bytes in the db related to persisting actual bytes in the db instead of an object wrapper; also some improvements to the null value and entity, etc; the main issue here was reported by guo weizhan
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@589517 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 06:35:19 +00:00
David E. Jones
77d7339a11
Initial commit of delegator futurizing which some new methods that better fit common desired use scenarios; other find methods may be deprecated in the near future
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@589514 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 06:31:05 +00:00
Scott Gray
624355387d
Fixed reversed method signature caused by rev. 585819
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@588171 13f79535-47bb-0310-9956-ffa450edef68
2007-10-25 09:05:50 +00:00
David E. Jones
75c26763e5
Fairly significant update to correct a long-standing problem; reverted ByteWrapper back for backward compatibility, and then replaced all use of ByteWrapper with java.nio.ByteBuffer; the main point is to both store only the byte[] data in the database and not a serialized object containing the byte[], and at the same time be able to read the old ByteWrapper objects, and there is a service to read and update all old data to be plan bytes instead of wrapped in a serialized object; this includes changing the java-type for blob fields to be java.sql.Blob to greater compatibility and flexibility, ie you can either set a plain byte[] or you can pass in a Blob object to be persisted, you can also get both as get returns java.sql.Blob, but getBytes always returns the byte[], converting as needed; this is tested a fair amount, but obviously needs to be watched as it is new code
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@587433 13f79535-47bb-0310-9956-ffa450edef68
2007-10-23 09:52:49 +00:00
Adam Heath
6b3382e72e
Collection size can not be negative.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586966 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 23:02:11 +00:00