A series of cleanups and changes in preparation for some work to attempt to fix the thread safety of the ServerHitBin class.
Also fixed a bug affecting multi-tenant systems: ServerHitBin entries had an additional #tenant suffix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620831 13f79535-47bb-0310-9956-ffa450edef68
First part of the overhaul of ServerHitBin class: now ServerHitBin objects are thread-safe; however the ServerHitBin class isn't because of its static maps (more work is needed in order to fix this).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1620907 13f79535-47bb-0310-9956-ffa450edef68
Completed the work to make the ServerHitBin class thread safe.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621088 13f79535-47bb-0310-9956-ffa450edef68
Small code improvement.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621109 13f79535-47bb-0310-9956-ffa450edef68
Found a bug in GenericDelegator.java. No time to fix it now, so leaving a FIXME comment.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621122 13f79535-47bb-0310-9956-ffa450edef68
Fixed an issue affecting the thread safeness of the SequenceBank objects.
Added two unit tests to confirm the proper behavior of the SequenceUtil class; the second test fails without the fix committed with this revision.
Part of OFBIZ-2353.
This is just the first pass of my work to refactor the SequenceUtil.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621335 13f79535-47bb-0310-9956-ffa450edef68
Fix broken contact mechanism screenlet.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621363 13f79535-47bb-0310-9956-ffa450edef68
Unit test to demonstrate the bug I found in GenericDelegator.java. Test is commented out.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621385 13f79535-47bb-0310-9956-ffa450edef68
Fix unintended change in my last commit.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621386 13f79535-47bb-0310-9956-ffa450edef68
Change how Mini-language simple methods are cached: Cache individual methods instead of the entire file.

The new approach will load all methods from a file into the cache - the same as before, but now individual methods can expire if unused.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621388 13f79535-47bb-0310-9956-ffa450edef68
Fixed bugs in GenericDelegator.java - storeByCondition and removeByCondition did not update the cache, resulting in stale cache entries.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621413 13f79535-47bb-0310-9956-ffa450edef68
Misc minor enhancements to the testSequenceValueItemWithConcurrentThreads unit test.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621425 13f79535-47bb-0310-9956-ffa450edef68
Removed some references to GenericDelegator concrete class.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621436 13f79535-47bb-0310-9956-ffa450edef68
Removed a deprecated constructor from GenericDelegator.java.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621437 13f79535-47bb-0310-9956-ffa450edef68
Completely refactored the SequenceUtil class:
* the class is now thread safe
* the class is now cleaner (no references to delegator etc...)
* replaced the collision detection algorithm with a simpler/reliable/efficient one based on: update with no changes (to get a lock) + select + update (to increase the last sequence id)
* removed ugly special code for "clusters" that is no more needed



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621438 13f79535-47bb-0310-9956-ffa450edef68
Removed references to GenericDelegator from Delegator interface.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621439 13f79535-47bb-0310-9956-ffa450edef68
Small code cleanup - use auto-boxing.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621442 13f79535-47bb-0310-9956-ffa450edef68
Removed unnecessary public keywords from the Delegator interface.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621445 13f79535-47bb-0310-9956-ffa450edef68
Move some GenericDelegator static methods to the Delegator interface.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621448 13f79535-47bb-0310-9956-ffa450edef68
GenericDispatcherFactory.java FIXME comment.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621454 13f79535-47bb-0310-9956-ffa450edef68