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
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