Commit Graph
56 Commits
Author SHA1 Message Date
Scott Gray bee57642b3 Removed use of deprecated EntityExpr constructors
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912209 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 20:19:18 +00:00
Scott Gray bd8459e2ff Removed use of a deprecated constructor
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912201 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 19:49:12 +00:00
Adam Heath 3ebd4c634e Add license headers to lots of files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907569 13f79535-47bb-0310-9956-ffa450edef68
2010-02-08 07:24:40 +00:00
Adam Heath 18d0ceeaf9 Remove most docs targets, they are all the same anyways.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath 1c269fc012 Convert all javadoc calls to use fileset instead of sourcepath; this
allows excludes to be processed correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894030 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:24:20 +00:00
Adam Heath 56dac0bf9e Add a classes target to common.xml, and switch most build.xml to use it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894024 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:16:56 +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 be09838055 Remove duplicate webslinger-base-invoker libs and classpath entries.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889878 13f79535-47bb-0310-9956-ffa450edef68
2009-12-12 01:47:34 +00:00
Adam Heath d22fbbe257 Upgrade asm from 2.2 to 3.2; this required upgrading to an unreleased
version of groovy(ick), and a new webslinger snapshot.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889836 13f79535-47bb-0310-9956-ffa450edef68
2009-12-11 22:21:36 +00:00
Adam Heath f5009216c1 Implement parameterized value conversion.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881193 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 08:31:30 +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
Adam Heath 91050d9263 Very large update. SQL parser is fairly generic now. Can parse sql
that is compatible with features used by ofbiz.  Has support for
DELETE, INSERT, INSERT SELECT, SELECT, UPDATE, and VIEW.

Modified the delegator side of the above to handle the new
interfaces.  Now supports complex alias.  Only SELECT is supported,
and the parseCondition code is disabled for the time being.

The plan(sic) here is to obviously support the other sql statements.
Then, to have a jdbc wrapper around all this, so external tools, that
only know how to talk jdbc, can actually talk directly to the
delegator.

Plus, many more people can understand sql syntax.  This allows them
to do things with ofbiz, that they would find much more difficult if
they had to write <view-entity> definitions.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@880835 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 16:31:32 +00:00
Adam Heath b33013c644 Add shorthand for keymap lists, making use of "USING".
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835792 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 09:47:58 +00:00
Adam Heath c1a71d6eb0 Example of relations.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835790 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 09:35:52 +00:00
Adam Heath 60c9b07217 Send the debug to the browser, instead of the console.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835789 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 09:35:33 +00:00
Adam Heath d8d6b957e4 More example usage, shows condition parsing, and makes use of more
sql syntax.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835765 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 07:24:41 +00:00
Adam Heath 5f44e7e3de Example showing how the sql parser works.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835650 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 00:04:44 +00:00
Jacques Le Roux cbc51c2532 A patch from Marc Morin "Resolve java warnings exposed in Eclipse : framework - webslinger" (https://issues.apache.org/jira/browse/OFBIZ-3121) - OFBIZ-3121
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833727 13f79535-47bb-0310-9956-ffa450edef68
2009-11-07 18:18:33 +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
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 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
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
Adrian Crum 6786aa4dbc Refactored GenericDelegator:
1. Converted GenericDelegator to an interface. We already have DelegatorInterface, but it isn't being used anywhere. Removed DelegatorInterface.java.

2. Extracted the static, cached data from the GenericDelegator implementation and put it in its own class - DelegatorData. The GenericDelegator implementation holds a reference to the DelegatorData instance. This makes it possible to have per-thread instances of GenericDelegator.

3. Replaced the ThreadLocal variables with regular variables. ThreadLocal variables are no longer needed. Client code doesn't need to be concerned with pushing and popping the GenericDelegator state.

This commit paves the way for the forthcoming ExecutionContext.

User modifications will have to replace GenericDelegator.getGenericDelegator(...) with DelegatorFactory.getGenericDelegator(...). Also, replace the push code with the new setXxx methods, and remove the pop code. If modifications used DelegatorInterface, replace that with GenericDelegator.

Aside from those changes, this commit is backwards compatible.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802567 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 18:04:26 +00:00
Scott Gray dec24b29f2 Sorry for the big commit, got a bit carried away.
Added override and deprecated annotations wherever they were missing
Removed the use of any deprecated classes/methods (except OutputFormat in UtilXml)
A few other random generics and misc. cleanups

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@791212 13f79535-47bb-0310-9956-ffa450edef68
2009-07-05 10:01:19 +00:00
Adam Heath 04c6a9b2b1 New upstream; fixes line numbers in wrap, and improves the css rules
matching.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789866 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 18:31:12 +00:00
Adam Heath dd51c0108b Add a simple initCause helper method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789400 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 18:13:19 +00:00
Adam Heath 03b030b475 Yet another update. Very very close. Hunting rabbits.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783564 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 23:00:26 +00:00
Adam Heath 783130b58d Add ability for simple methods to be wrapped with a custom compiled
class.  The resource location from where the simple method was read
is encoded as the classname of the proxy.  This makes debugging
simpler to do.  This feature is turned off by default.

The wrapping code has support for setting the line number, to include
in stack traces.  However, DOM-based xml parsing doesn't record line
numbers, so it's not possible to encode that into the wrapped proxy
class.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783060 13f79535-47bb-0310-9956-ffa450edef68
2009-06-09 16:19:50 +00:00
Adam Heath 0003cb99dc Updated webslinger.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@782815 13f79535-47bb-0310-9956-ffa450edef68
2009-06-08 22:00:26 +00:00
Adam Heath 47f0a9f2e8 Upgrade webslinger(sorry about all this, but we are getting close to
a new brainfood.com website, and are running it against ofbiz head).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@781548 13f79535-47bb-0310-9956-ffa450edef68
2009-06-03 21:04:22 +00:00
Adam Heath e3b85d39f9 Upgrade webslinger.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@781117 13f79535-47bb-0310-9956-ffa450edef68
2009-06-02 18:42:11 +00:00
Adam Heath 34efed1d26 Few more jars.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@777353 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 02:23:17 +00:00
Adam Heath 5ef70aee4a These should have not been added.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@777338 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 00:48:16 +00:00
Adam Heath 42c173f991 Upgrade to newer upstream.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@777337 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 00:45:51 +00:00
Adam Heath 7e5f06cdcc Integrate new changes from webslinger upstream; dispatcher is now
created properly each time.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@777333 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 00:20:47 +00:00
Adam Heath 1a31984695 Several minor generics fixes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@771124 13f79535-47bb-0310-9956-ffa450edef68
2009-05-03 20:35:52 +00:00
Andrew Zeneski 6ada9f4f66 integration with new Authz API - JIRA OFBIZ-2381
(only added to ContextMapper)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770077 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 05:53:08 +00:00
Adrian Crum 26c4787ec3 Updated the xsd URIs in XML files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769576 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 22:34:47 +00:00
Adam Heath 77a45da3c7 Switch to the newly introduced GenericDispatcher.newInstance variant.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765738 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 20:06:54 +00:00
Adam Heath d5cd156761 Add image handling stuff, forgot this for the first checkin.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@764982 13f79535-47bb-0310-9956-ffa450edef68
2009-04-14 22:13:17 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
David E. Jones 4a1705a315 Removed some more references to applications stuff from framework, including small cleanup of service engine to get rid of WebAppDispatcher and use new factory method in GenericDispatcher, and changed AvailableServices.groovy to get the real dispatcher list instead of a hard-coded one; also updated eclipse classpath file for new webslinger stuff
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757671 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 06:27:03 +00:00
Adam Heath 76f0dbd7b6 Don't use ArrayUtil for helper(equals/hashCode).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757113 13f79535-47bb-0310-9956-ffa450edef68
2009-03-22 00:41:16 +00:00
Adam Heath 50e4e82157 Fix purely empty whitespace lines, and remove trailing whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757071 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 23:23:40 +00:00
Adam Heath 64b951e776 Remove entitygroup.xml, no longer needed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757016 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 21:00:46 +00:00
Adam Heath 4a2e685627 This got missed when I reworked the code separation upstream. Mea
culpa :(

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757011 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 20:51:23 +00:00
Adam Heath 4435ffde64 Upgrade to newer version. Works on java 1.5 now.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@756754 13f79535-47bb-0310-9956-ffa450edef68
2009-03-20 20:50:19 +00:00
Jacques Le Roux 0e0519e802 All tabs to 4 spaces in *.groovy, *.java, *.xml
Done with Eclipse S/R "\t"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755696 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 18:43:49 +00:00
Adam Heath dbedb15ef2 Remove the need to have the singleton <screen> tag.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@753280 13f79535-47bb-0310-9956-ffa450edef68
2009-03-13 14:17:49 +00:00