Commit Graph
58 Commits
Author SHA1 Message Date
Adam Heath cbd11cf3b0 Revert wrongly committed 950258
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950277 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 22:00:26 +00:00
Adam Heath 69c2d455f3 sql foo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950258 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:46:44 +00:00
Adam Heath feef6caffc Use the new equals implementations to test for a correct parse; also
test all the statements.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949609 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:07:10 +00:00
Adam Heath 17d8151d34 Allow fieldAlls, fieldDefs, and relations to be null; if they are empty,
then force them to null instead.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949608 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:07:04 +00:00
Adam Heath a24bab15cf Only output the alias if it is not the same as the default name.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949607 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:06:58 +00:00
Adam Heath 40cff7fd7b Implement equals() in a bunch of places.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949606 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:06:53 +00:00
Adam Heath 69de194305 Convert operators to lowercase in the constructors that have them,
instead of only during parsing; this fixes instances where the objects
are not constructed by the sql parser.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949605 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:06:42 +00:00
Adam Heath 4a31886e82 Fix operator parsing; only the last character was being parsed as the
operator.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949604 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:06:36 +00:00
Adam Heath ddb9bf8b27 Remove FieldDefFieldValue, and merge FieldDefValue into FieldDef.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949603 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:06:31 +00:00
Adam Heath 8c083d6743 Make the Order enum public.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949602 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:06:23 +00:00
Adam Heath 39ee8befa9 Start adding DISTINCT support to SELECT.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949600 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:06:17 +00:00
Adam Heath 36bed586b9 Add support for several count function variants.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949599 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:06:11 +00:00
Adam Heath 95949ff2b7 Add <test-jar> macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935381 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:47 +00:00
Scott Gray 6109808c8a Tabs to spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924378 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 17:28:01 +00:00
Adrian Crum 24922db654 Created a new Java package - org.ofbiz.base.lang - which is intended to be used as a home for basic Java types. Moved some basic Java type classes into the new package.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@916987 13f79535-47bb-0310-9956-ffa450edef68
2010-02-27 16:48:32 +00:00
Jacopo Cappellato 75a3c9f270 Added a bunch of missing license headers; we'll have to pay more attention on this in the future.
Still some work needs to be done in order to have the codebase inline with the ASF policies as it used to be.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907413 13f79535-47bb-0310-9956-ffa450edef68
2010-02-07 11:24:45 +00:00
Adam Heath b17eb127ec Fix trailing whitespace, and mixed tab/space at the beginning of lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:00:23 +00:00
Adam Heath eb0f0bfb16 Fix several generics warnings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898090 13f79535-47bb-0310-9956-ffa450edef68
2010-01-11 22:21:12 +00:00
Adam Heath 276cc7b501 Add a default-javadoc presetdef.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894038 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 01:01:39 +00:00
Adam Heath 693c05aacd Fix javadoc calls.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894025 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:18:20 +00:00
Adam Heath 47b0a876ed Switch all javac15 to javac16.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894022 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:12:04 +00:00
Adam Heath dfc631e2ed Start actually doing real testing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893082 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 06:11:53 +00:00
Adam Heath 3aefa8e81f Use the alternate FieldValue when no table alias is used.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893081 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 06:11:24 +00:00
Adam Heath 2392b1e5cc Make alias optional for function calls and math value field definitions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893080 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 06:11:00 +00:00
Adam Heath 0e7872abef It turns out that all current uses of this are actually with
StaticValues.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893079 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 06:10:33 +00:00
Adam Heath 8626985652 Start of visitor support.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893078 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 06:09:55 +00:00
Adam Heath cdec74a809 Fix alias-based fielddef parsing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893076 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 06:08:15 +00:00
Adam Heath 3959e34c47 Bunch of sql stmts and other commands that provide for more coverage.
Still not actually testing the output, other than printing.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892706 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 06:05:21 +00:00
Adam Heath be3e008240 Support MathValue for field definitions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892705 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 06:04:47 +00:00
Adam Heath c66af181b1 MathValue now supports constants.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892704 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 06:04:09 +00:00
Adam Heath bed7885f78 StaticValues are constant.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892703 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 06:03:33 +00:00
Adam Heath dad8c988e6 Add TYPE and TITLE keywords to string output.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892702 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 06:02:57 +00:00
Adam Heath 5706e76dbe Switch all IllegalArgumentException to ParseException.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892701 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 06:02:24 +00:00
Adam Heath cec6ba71e1 Allow view definitions for full file parsing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892700 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 06:01:51 +00:00
Adam Heath 1c2bc9b83b Need to wrap the list with ().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892699 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 06:01:24 +00:00
Adam Heath 8f2b94fc02 Switch <path id="src-path"/> to a patternset implementation. See next
commit.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892171 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 08:04:06 +00:00
Adam Heath ec8ea7d52c Add start of sql testing, just printing them for now.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892169 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 08:02:53 +00:00
Adam Heath cf7ff14b33 Fix comment end parsing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892168 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 08:02:16 +00:00
Adam Heath df3653a24c Remove ListValue, in preference of a more accurate object model
representation.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892147 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 05:40:52 +00:00
Adam Heath c4a25bfff5 Detect duplicate alias all entries.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892146 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 05:40:11 +00:00
Adam Heath 0514883e64 Excludes are now done as a Set instead of a List.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892144 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 05:39:16 +00:00
Adam Heath 9864303a74 Detect duplicate relations during parse, by making use of a map. In
addition, store this map for later use.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892143 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 05:38:49 +00:00
Adam Heath e98ca66748 OrderBy is now a list of OrderByItem, instead of String, and support
upper and lower functions.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892142 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 05:38:09 +00:00
Adam Heath e75c3d12e2 Implements proper null support, and fix operators that have '=' in them.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884359 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 01:30:35 +00:00
Adam Heath 4e31701beb Override appendTo.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884358 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 01:29:52 +00:00
Adam Heath c31e3499ed Add flags to disable joins on DELETE and UPDATE.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883138 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 20:07:29 +00:00
Adam Heath 4976cbb3da Plans that have condition objects now store those in the abstract classes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883137 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 20:06:34 +00:00
Adam Heath d8c232164f Reworked, no more unchecked warnings, nor suppressions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881653 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 02:55:59 +00:00
Adam Heath d2260d05d4 Implements all the interfaces/classes, but everything returns null
still.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881643 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 02:07:52 +00:00
Adam Heath 5875284963 And generic condition planning.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881192 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 08:30:46 +00:00