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
Jacques Le Roux
ae76370a04
Replace all www.ofbiz.org by ofbiz.apache.org (mostly links to dtds). Note that there are 2 void links :
...
http://ofbiz.apache.org/service/
http://ofbiz.apache.org/cgi-bin/http_test.pl
Those links were useless before also
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586802 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 21:17:45 +00:00
Andrew Zeneski
d04c0e7522
changed connection pool to be DBCP by default now
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586666 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 04:47:11 +00:00
David E. Jones
d1abb14eaa
Some refactoring of the sequence bank refill code: reorganized so that transaction management is inside the loop instead of out, causing each attempt to be in its own transaction to avoid doing mean things like locking and waiting; also added an extra synchronized block around the transaction that does the select/update/select stuff to protect it extra and avoid problems with waiting/sleeping; this is tested minimally and needs more thorough testng to see if it solved the problems seen
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586306 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 08:13:17 +00:00
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