Commit Graph
27737 Commits
Author SHA1 Message Date
Hans Bakker 7950a17133 deleteWorkEffortRequest service not working properly: fixed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981733 13f79535-47bb-0310-9956-ffa450edef68
2010-08-03 04:06:31 +00:00
Adam Heath be8ece3717 When loading an order into a cart, handle per-item tax adjustments
correctly, by storing them in CartShipItemInfo, instead of the
ShoppingCartItem.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981699 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 22:33:00 +00:00
Adam Heath 2da92e401f Some more trailing newline changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981698 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 22:32:54 +00:00
Adam Heath d06f72f7f9 FEATURE: Start of union support; parsing isn't tested yet.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981640 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:44:20 +00:00
Adam Heath 872db5befd FEATURE: Start of aggregate function support.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981639 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:44:12 +00:00
Adam Heath 550d275781 FEATURE: Add count-all variant that doesn't require a table name.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981638 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:44:05 +00:00
Adam Heath ca01d94d2a FEATURE: Add support for CREATE INDEX.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981637 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:44:00 +00:00
Adam Heath 56c7c3391a FEATURE: ORDER BY now supports any ConstantValue, which includes any
function, and also math operations.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981636 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:43:53 +00:00
Adam Heath 066b0716d8 Expose a helper method for parsing order by items.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981635 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:43:47 +00:00
Adam Heath f7ad0f1ea6 Allow external callers to parse individual OrderByItem instances.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981634 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:43:42 +00:00
Adam Heath 055e49cb5a FEATURE: Add support for NULLS FIRST/LAST in ORDER BY.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981633 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:43:36 +00:00
Adam Heath 8ebec8e647 OPTIMIZE: Remove descending and orderingSet booleans, they weren't being used
properly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981632 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:43:30 +00:00
Adam Heath 5147b48afa TESTS: Ensure that no more statements has been parsed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981631 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:43:25 +00:00
Adam Heath eebce0b77f BUG FIX: Fix parsing of -/+ style order by prefixes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981630 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:43:19 +00:00
Adam Heath 6772e47dd6 FEATURE: Add basic implementations of the available visitors.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981629 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:43:13 +00:00
Adam Heath 2923612353 OPTIMIZE: Remove unused variable i from Select().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981628 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:43:08 +00:00
Adam Heath f150eecfb9 BUG FIX: CountAll needs to remember the tableName; also implement
equals.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981627 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:43:02 +00:00
Adam Heath 46b66d2bd2 BUG FIX: Fix correct formatting around the operator.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981626 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:42:55 +00:00
Adam Heath 33809facfe TESTS: Start adding low-level object unit tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981625 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:42:49 +00:00
Adam Heath c9f9555c25 No longer use ON in relation settings; instead, use MAP, which makes the
sql a little bit simpler.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981624 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:42:39 +00:00
Adam Heath 1581156412 TESTS: Test reparsing of all statements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981623 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:42:33 +00:00
Adam Heath a9aa86c234 BUG FIX: OFFSET/LIMIT have to be after ORDER BY/GROUP BY.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981622 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:42:28 +00:00
Adam Heath 1fc630261e BUG FIX: Fix toString with multiple RELATION, they should not be
separated by commas.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981621 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:42:23 +00:00
Adam Heath 3ade64a656 OPTIMIZE: KeyMap no longer extends Atom, so no longer has any appendTo variants.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981620 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:42:17 +00:00
Adam Heath 0864fca12f BUG FIX: Fix multiple keymaps in a relation, wasn't separated by AND.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981619 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:42:11 +00:00
Adam Heath bc6a4b7870 Introduce a new method, getDefaultName(), so that null alias logic
doesn't happen in the constructor.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981618 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:42:06 +00:00
Adam Heath f8e091775c FEATURE: Make public wrappers around several internal methods.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981617 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:42:00 +00:00
Adam Heath 3929451368 FEATURE: Create a new StaticValue function, based on the contents of
FieldDef.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981616 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:41:55 +00:00
Adam Heath 81a56ac59c REFACTOR: Move FieldAll call to a new function, SelectField.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981615 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:41:50 +00:00
Adam Heath e544bd6be0 REFACTOR: Optimize select AS support, so it is only required in one place.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981614 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:41:44 +00:00
Adam Heath 806332cc89 REFACTOR: Optimize FieldDef, so that the FieldDef object instantiation only
happens in one place.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981613 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:41:39 +00:00
Adam Heath b98105c65f REFACTOR: Abstract out FieldAll so it can be called externally.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981612 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:41:34 +00:00
Adam Heath 54c6cb0f16 FEATURE: Add static valueOf methods.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981611 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:41:28 +00:00
Adam Heath 0038f309a5 FORMAT: Re-indent; couldn't find a standard for indentation, so this is an
attempt to have some sort of common pattern for doing so.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981610 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:41:23 +00:00
Adam Heath 496a0b09f6 In loadCartFromOrder, add support for restoring the per-ship-group sales
tax adjustments.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981600 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:00:26 +00:00
Adam Heath 5b4e8071c5 Add appendTo/append variant that allows for a prefix and suffix around
the separator.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981533 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 14:46:21 +00:00
Adam Heath cb1646e320 More StringUtil tests; This also tests double-encoding detection, which
required changing the type of defaultWebEncoder.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981532 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 14:46:15 +00:00
Adam Heath 77912ea777 StringUtil now has a private constructor; all uses of it must use the
singleton static INSTANCE(only one such use is in ofbiz).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981531 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 14:46:09 +00:00
Adam Heath ce409cd671 Start adding StringUtil tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981530 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 14:46:02 +00:00
Adam Heath 509532a3d4 Add methods for testing iterability.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981529 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 14:45:54 +00:00
Scott Gray 327081a1bb Replaced all usage of CommonWorkers.hasParentType(...) with the EntityTypeUtil version.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981447 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 10:48:06 +00:00
Scott Gray 10a56ea013 Copied CommonWorkers.hasParentType(...) over to EntityTypeUtil and deprecated the method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981446 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 10:47:26 +00:00
Jacques Le Roux 83d2efe2b7 Fix a bug reported by Ruth " eCommerce checkout -> Edit Contact Information -> Save -> Go Back does not return user to checkout" (https://issues.apache.org/jira/browse/OFBIZ-3432) - OFBIZ-3432
Mostly to test the change I just did in mergefromtrunk.bat. Else I'd like to fix also the way the options are shown when using the std checkout (far below, very bad for newcomers). But I have not enough faith, at least today...

I tested enough, and this should not not introduce any side-effects.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981288 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 19:36:40 +00:00
Scott Gray 9346035a5b Deprecate method* that doesn't use its input parameter and add a new method that doesn't take one.
* org.ofbiz.order.shoppingcart.CheckoutHelper.checkOrderBlackList(GenericValue)
use checkOrderBlackList() instead


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981179 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 08:52:19 +00:00
Scott Gray b5f71c236c Remove throws declaration for unthrown exception
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981178 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 08:52:11 +00:00
Scott Gray 1d8c3ad20c Remove unnecessary null assignment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981177 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 08:52:02 +00:00
Scott Gray 14d812f57d Fix bug in unused method, the newly created result map was being iterated over instead of the input list. Also added generics markup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981176 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 08:51:54 +00:00
Scott Gray 220ba3feae Generics markup
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981175 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 08:51:44 +00:00
Scott Gray b4b155de17 Commented test-suite declaration in webapp's ofbiz-component.xml because the contents of the test suite file are themselves commented out
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981174 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 08:51:36 +00:00
Scott Gray ace861ed08 Remove duplicate service definition, removed the one that was defined first so the existing behaviour is maintained.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981173 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 08:51:28 +00:00