Commit Graph
19051 Commits
Author SHA1 Message Date
Adam Heath 9bc7a25bb9 DEPRECATION: specialpurpose/ecommerce: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343495 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:15:07 +00:00
Adam Heath 77f97242e0 DEPRECATION: specialpurpose/ecommerce: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343493 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:14:59 +00:00
Adam Heath 50ec523a03 DEPRECATION: specialpurpose/ebaystore: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343492 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:14:37 +00:00
Adam Heath 05383b9311 DEPRECATION: specialpurpose/assetmaint: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343491 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:14:29 +00:00
Adam Heath 941d6ef482 DEPRECATION: applications/workeffort: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343490 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:14:21 +00:00
Adam Heath 206b3378d1 DEPRECATION: applications/securityext: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343489 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:14:11 +00:00
Adam Heath e606223cca DEPRECATION: applications/product: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343488 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:14:02 +00:00
Adam Heath 3d5bad1bf4 DEPRECATION: applications/party: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343487 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:13:29 +00:00
Adam Heath 7264fff0a3 DEPRECATION: applications/party: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343486 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:13:22 +00:00
Adam Heath 26ed25cdea DEPRECATION: applications/order: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343485 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:13:04 +00:00
Adam Heath 51413d477a DEPRECATION: applications/marketing: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343484 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:12:36 +00:00
Adam Heath 6e662f31bf DEPRECATION: applications/manufacturing: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343483 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:12:26 +00:00
Adam Heath b0e7c8675b DEPRECATION: applications/humanres: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343482 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:12:11 +00:00
Adam Heath a92d79d341 DEPRECATION: applications/content: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343481 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:12:04 +00:00
Adam Heath 3779f5ef4f DEPRECATION: applications/commonext: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343480 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:11:53 +00:00
Adam Heath 7d2b0d9865 DEPRECATION: applications/accounting: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343479 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:11:43 +00:00
Adam Heath 1aa422773b DEPRECATION: framework: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343478 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:11:19 +00:00
Adam Heath 9e8ddebcac FEATURE: Add GenericValue.getRelatedOne that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343477 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:10:58 +00:00
Adam Heath 7cf7538567 Deprecate all Delegator.getRelatedOne/getRelatedOneCache, and add a
version that takes a cache parameter.

This commit finishes the Delegator.getRelatedOne set of changes; the
previous methods are now deprecated, and the new ones should be used
going forward.

Delegator.getRelatedOne(String, GenericValue) is replaced by
Delegator.getRelatedOne(String, GenericValue, boolean).

Delegator.getRelatedOneCache(String, GenericValue) is replaced by
Delegator.getRelatedOne(String, GenericValue, boolean).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343476 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:10:52 +00:00
Adam Heath 221b2c0312 FEATURE: Add Delegator.getRelatedOne variant that takes a boolean useCache parameter.
Rework internal GenericDelegator methods to call the new method, but no
other external classes directly call this new one yet.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343475 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:10:44 +00:00
Adam Heath 3482d929e7 OPTIMIZE: Replace Delegator.getRelatedOne calls with
GenericValue.getRelatedOne.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343474 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:10:37 +00:00
Adam Heath 2d512fd498 FORMATTING: Add final trailing newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343473 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:10:28 +00:00
Adam Heath 91dcd099d5 OPTIMIZE: Join a few overly long split lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343472 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:10:11 +00:00
Adam Heath ce8e0a2c24 FIX: Found a local case of findByPrimaryKey usage.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343471 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 04:09:53 +00:00
Adam Heath eb4695bb96 FIX: Now that TransactionUtil.doNewTransaction is fixed to actually
work, back out the incorrect fix done in 1343088.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343470 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 03:55:11 +00:00
Adam Heath 1ba97a3210 FIX: This is the correct fix for 1343088;
TransactionUtil.doNewTransaction was starting a new transaction, then
immediately suspending it.  This caused confusion in calling code that
tried to use doNewTransaction.  Fortunately, this was not used very
much,

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343469 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 03:55:05 +00:00
Adam Heath a2d4b1b5e3 OPTIMIZE: Change return type of noTransaction(Callable) to
NoTransaction; it used to be Callable.  NoTransaction implements
Callable.  This change requires a recompile, but is otherwise
compatible with calling code.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343468 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 03:54:58 +00:00
Adam Heath b829aa5d60 FEATURE: Change NoTransaction.call() to throw GenericEntityException
instead of Exception.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343467 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 03:54:51 +00:00
Adam Heath d0e08314b3 FEATURE: Ignore many vim temp files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343466 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 03:54:44 +00:00
Hans Bakker 020dd28a4f improved 'load-tenant-data-readers' explanantion and removed confirmation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343458 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 03:11:01 +00:00
Jacopo Cappellato aa62961e63 Corrected param name in javadoc.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343303 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 15:53:41 +00:00
Jacopo Cappellato 3eecd00954 Enhanced unit test for UtilCache.putIfAbsentAndGet method to better explain its behaviour: it returns the reference to the same object passed as argument only if the key was not already found in cache.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343291 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 15:39:02 +00:00
Jacopo Cappellato 247c205188 Improved code that manages the cache:
* replaced putIfAbsent + get with putIfAbsentAndGet to avoid the risk of a NPE if the cache entry is removed (or expired) between the two calls



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343287 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 15:32:28 +00:00
Jacopo Cappellato 074c282c0c Improved code that manages the cache:
* protected the UtilCache object (static field) by making it private and final
* instead of using the "put" method, use the "putIfAbsentAndGet" method to prevent the risk of adding the new value if another concurrent thread added it in the meantime



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343278 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 15:25:46 +00:00
Jacopo Cappellato 733bb64592 Improved code that manages the cache:
* removed unnecessary synchronization  
 * protected the UtilCache object (static field) by making it private and final


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343277 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 15:02:39 +00:00
Jacopo Cappellato ed9474669c Removed an unused UtilCache static field.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343273 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 14:51:32 +00:00
Jacopo Cappellato ee53c9452b Some cleanups and changes to logging configuration:
* some misc formatting and changes to comments
* removed the old and unused configuration for minerva
* added a new file appender for Tomcat where all Tomcat internal logging is now redirected 
* changed internal logging for FOP from info to warn to be consistent with the settings of other external components (Tomcat, Geronimo Transaction Manager, Freemarker)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343269 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 14:41:50 +00:00
Jacopo Cappellato 0fb93cc33b Removed a bunch of unused jars imported from the Tomcat distribution and replaced with the ones in the "Embedded" distribution.
For details about the upgrade process for future Tomcat releases see my notes:
  https://cwiki.apache.org/confluence/display/OFBTECH/How+to+upgrade+the+embedded+Tomcat


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343263 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 14:22:15 +00:00
Jacopo Cappellato 7c91aaa74f OFBIZ-4901 Upgraded icu4j from version 4.4 to version 49.1; thanks to Deepak Dixit for the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343261 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 14:05:29 +00:00
Adrian Crum 1002cfb510 Mini-language JavaDocs. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343174 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 09:30:49 +00:00
Jacopo Cappellato 95e8f72311 Removed some unnecessary ?exists statements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343158 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 08:04:35 +00:00
Jacopo Cappellato d0dd1897f3 Replaced "!= null" with "??" (that is a replacement for the deprecated "exists" built-in).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343156 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 07:36:41 +00:00
Jacques Le Roux 6075bed667 Missed this because I had some other changes pending
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343154 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 07:15:42 +00:00
Hans Bakker 20c8d5f282 foreign key name too long
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343122 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 01:15:16 +00:00
Jacques Le Roux 54555ad7b7 Fixes this error found by chance in log
---- exception report ----------------------------------------------------------
ERROR: Cannot do a find that returns an EntityListIterator with no transaction in place. Wrap this call in a transaction.
Exception: java.lang.Exception
Message: Stack Trace
---- stack trace ---------------------------------------------------------------
java.lang.Exception: Stack Trace
org.ofbiz.entity.GenericDelegator.find(GenericDelegator.java:1751)
org.ofbiz.order.order.OrderServices$1.call(OrderServices.java:5610)
org.ofbiz.order.order.OrderServices$1.call(OrderServices.java:5605)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343088 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 20:28:16 +00:00
Jacques Le Roux 55468331fa Closes "Move SHARK to Attic" https://issues.apache.org/jira/browse/OFBIZ-4795
These were missing in r1343064 (used * in Eclipse search, needed *.*)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343065 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 16:00:17 +00:00
Jacques Le Roux b48ff3a62c Closes "Move SHARK to Attic" https://issues.apache.org/jira/browse/OFBIZ-4795
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343064 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 15:47:32 +00:00
Jacques Le Roux 8d497b1bbf As ever, forgot .classpath in r1343038
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343040 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 12:44:13 +00:00
Jacques Le Roux 7730a12e22 Renames nekohtml.jar to nekohtml-1.9.7.jar (found in MANIFEST) see http://nekohtml.sourceforge.net/index.html
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343038 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 12:33:17 +00:00
Adrian Crum 28c894cd6f Overhauled Mini-language <find-by-and> element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343035 13f79535-47bb-0310-9956-ffa450edef68
2012-05-27 12:06:41 +00:00