Commit Graph
396 Commits
Author SHA1 Message Date
Jacques Le Roux 2d14996c3a A patch from Bob Morley " Resolve widget action entity caching with filter-by-date" (https://issues.apache.org/jira/browse/OFBIZ-3090) - OFBIZ-3090
When you attempt to get a cached result in an action block with "filter-by-date" turned on, caching never occurs because the date/time changes with each request. Recommended solution is when use-cache and filter-by-date are both true, we will create a condition w/o the date restriction, execute the (cachable) query, and then use the EntityUtil to filter by date.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832908 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 23:35:48 +00:00
Jacques Le Roux 33f843c771 A patch from Matarazzo Angelo "Remove an useless EntitySubSelect warning message." (https://issues.apache.org/jira/browse/OFBIZ-3145) - OFBIZ-3145
With the same security kept


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832880 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 21:56:34 +00:00
Adrian Crum f30d44ccdc TimeDuration.java improvements. This is the first step in a duration data type implementation discussed here - https://issues.apache.org/jira/browse/OFBIZ-3125.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832574 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 21:58:00 +00:00
Adrian Crum 9ee18d37c5 Updated client code to use the new Delegator factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823633 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09 17:44:24 +00:00
Adam Heath 7f94829d66 Don't use the internal CacheLine value iterator, instead iterating
over the keys, fetching the value, and then removing when it matches.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823319 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08 20:49:17 +00:00
Adam Heath f4ce5e6276 Remove unneeded CacheLine import.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823317 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08 20:48:43 +00:00
Adam Heath 3162462a72 Remove protected method, that isn't used.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823289 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08 19:38:29 +00:00
Scott Gray ca09f69b94 Fix an inconsistency in GenericEntity's get methods when the key doesn't exist, get(String) throws an exception but get(Object) just logs a warning. Changed so that both methods just log a warning.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@822276 13f79535-47bb-0310-9956-ffa450edef68
2009-10-06 14:07:04 +00:00
Adam Heath b15b30ddfd Simple factory lookup, DelegatorFactory switched to abstract class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821669 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 03:00:11 +00:00
Adrian Crum 7fa08f9079 Replaced GenericDelegator.getGenericDelegator(...) calls with new factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821649 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 01:53:50 +00:00
Adrian Crum a4d68934c9 Converted GenericDelegator concrete class references to Delegator interface references.
This commit requires ant clean. Also, external libraries that reference GenericDelegator will need to be updated.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821643 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 00:08:27 +00:00
Adam Heath db585f5d95 Oops, shouldn't have checked these 2 lines in.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821577 13f79535-47bb-0310-9956-ffa450edef68
2009-10-04 19:04:08 +00:00
Adam Heath 11df2b159a Make 2 reusable schema types, boolean, and aggregate-function.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821576 13f79535-47bb-0310-9956-ffa450edef68
2009-10-04 19:01:44 +00:00
Adam Heath 5a30fec5d9 Bother, forgot to allow default-resource-name at the top level.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821406 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 20:05:58 +00:00
Adam Heath 124ebc7e8d Suppress deprecation warnings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821405 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 20:01:16 +00:00
Adam Heath 80d220afe8 Allow <default-resource-name> globally.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821403 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 19:53:20 +00:00
Adrian Crum dd22f83c72 Improvements to the GenericDelegator refactoring - based on suggestions from Adam Heath.
I removed the deprecated methods from the Delegator interface. So, any replacements of GenericDelegator.getGenericDelegator(...) with the new factory method will have to include code to replace the deprecated method calls.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821391 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 18:52:29 +00:00
Scott Gray 3e602a00f1 Changing MySQL's blob type from BLOB to LONGBLOB which moves the maximum column size up to 2GB from 64KB which is more inline with the other db mappings for blobs that seem to range within 2-4GB
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819411 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27 21:26:47 +00:00
Adrian Crum 2f063e3fd7 Refactored GenericDelegator.java based on a design proposed by Adam Heath on the dev mailing list.
DelegatorInterface.java has been replaced by Delegator.java.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819067 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 23:36:13 +00:00
Jacopo Cappellato 18415c98d0 Better variable name (removed jotm prefix), no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@818123 13f79535-47bb-0310-9956-ffa450edef68
2009-09-23 14:44:48 +00:00
Jacopo Cappellato 5e61e31ffe New class to make it easier to test the usage of connections in the DBCP pool.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@818106 13f79535-47bb-0310-9956-ffa450edef68
2009-09-23 14:01:17 +00:00
Adam Heath 9725979827 Add some more register variants, to support other lookups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817305 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 16:04:12 +00:00
Jacques Le Roux e8f9dec801 Changed DBCP parameter name at Jacopo's request (consistent with OFBiz style)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817194 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 08:48:49 +00:00
Jacques Le Roux e8874a4bf9 Allow to set timeBetweenEvictionRunsMillis for each DB type from entityengine.xml. Keep default value at 600000 (10 min)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817082 13f79535-47bb-0310-9956-ffa450edef68
2009-09-20 19:14:41 +00:00
Adam Heath 123d02c2e5 Move this code to TransactionUtil.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@815914 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 18:06:54 +00:00
Adam Heath 6d02f38a92 Fix AND and OR support when evaluating some conditions in memory;
namely, EntityExpr(Condition, Join, Condition) didn't work.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@814731 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14 17:02:36 +00:00
Adam Heath 307f2f956b Remove the compare method from the base class, and make it abstract.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@814512 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14 07:54:41 +00:00
Adam Heath 0fc6bd8408 Bother, that'll teach for me fix this late night, with my glasses off.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@814511 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14 07:49:59 +00:00
Adam Heath d6cf856b07 s/List/Comparable in a few places, to stop a CCE from occuring.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@814508 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14 07:47:38 +00:00
Adam Heath 1e6f7b7857 Start adding generics to the operators, to document what they
operate on(more to come).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@814492 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14 06:35:44 +00:00
Adam Heath 28474f80ac Remove generics markup on operator variables.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@814491 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14 06:28:21 +00:00
Adrian Crum 74ea95889c Reverted rev 802567.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812692 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 20:56:14 +00:00
Adam Heath b86756490a Add @Deprecated to silence javac.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812323 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 02:31:34 +00:00
Hans Bakker e0ba7104ce create a 'set' of documents: a technical and a user guide and added more info
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812021 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 07:31:11 +00:00
Jacques Le Roux 3fedb9e5ed Some ASL2 headers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811870 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 19:54:25 +00:00
Scott Gray 00e1d034ea Fix a problem where empty Collections fail the field type check
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811581 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05 00:56:07 +00:00
Jacques Le Roux 372d9ce14e Fix an issue reported by André Herbst at http://markmail.org/thread/wgqhbyr5qo6j44yq. Related to r810438
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@810465 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02 11:55:44 +00:00
Scott Gray 044d8d6090 Fix some code that seems to cause problems for some non-Sun JDKs
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@810438 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02 09:55:20 +00:00
Scott Gray 49fe2b05ce Switched back to using scroll insensitive cursors, fixes problem reported by Jacques and Jacopo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@809425 13f79535-47bb-0310-9956-ffa450edef68
2009-08-30 22:15:01 +00:00
Scott Gray 9df4db06bd Fix problem reported by Jacques, the ResultSet API doesn't allow FORWARD_ONLY result sets to call the first() method even
if the current position is beforeFirst or first, worked around it by having the EntityListIterator handle the
situation

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@809324 13f79535-47bb-0310-9956-ffa450edef68
2009-08-30 12:36:49 +00:00
Scott Gray d185774026 Fix to make sure the ELI count handles distinct queries
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@808824 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 09:13:01 +00:00
Scott Gray 12566c26b9 Wherever possible changed ELI queries to limit the result set to the actual rows required of the query, should improve time
and memory performance if a cursor isn't being used on large result sets quite a bit.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@808820 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 08:58:10 +00:00
Scott Gray 712364816b Changes to the EntityListIterator to use a separate COUNT query to determine the result size plus a few other changes to help the ELI deal with TYPE_FORWARD_ONLY resultsets.
The changes to SQLProcessor are unrelated and contains no functional changes.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@808812 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 08:35:45 +00:00
Jacques Le Roux 7befd1d25e no tabs but 4 spaces in code files (*.ftl, *.gro*, *.java, *.xml)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804935 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 11:01:25 +00:00
Jacques Le Roux 4c442ee379 Some fusiness
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804895 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 08:20:38 +00:00
Jacopo Cappellato d073d1db07 "admin" user is only in demo data.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804131 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 08:54:01 +00:00
Hans Bakker 31a5a0c5f4 reverted 804104 because of compile error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804130 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 08:48:06 +00:00
Hans Bakker e40f03e356 adjustment of storing/retrieving timestamp in the proper timezone. In the database the time zone is always GMT
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804104 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 07:42:30 +00:00
Adrian Crum 38f8588dea Small code cleanup in DelegatorData.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802881 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10 18:22:40 +00:00
Adrian Crum 22dc76f12f Fixed a bug in DelegatorData.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802877 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10 18:09:07 +00:00