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
c171e23064
Add generics markup to makeWhereClause(modelFields) parameter.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881652 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 02:52:11 +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
Adrian Crum
22b83c211f
More Java object type converters.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881515 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 21:02:57 +00:00
Jacques Le Roux
834176ceaf
A patch from Philippe Mouawad "Ofbiz freeze" ( https://issues.apache.org/jira/browse/OFBIZ-2124 ) - OFBIZ-2124
...
In a certain scenario the application freezes, no more AJP connector threads are available.
After analysis the lock seems to come from very slow response time in GenericDelegator.clearAllCaches and particularily in CacheLineTable.keySet.
Furthermore, looking at org.ofbiz.base.util.cache.UtilCache, the class seems to have some synchronisation problems:
1) utilCacheTable.put calls are not synchronized
2) findCache synchronizes access to utilCacheTable while only getting an element which has big performance impact since utilCacheTable is static
3) clearExpiredFromAllCaches and clearAllCaches does not synchronize while clearCachesThatStartWith does, why ?
The patch synchronizes correctly the access to utilCacheTable and optimises findCache
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881194 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 08:36:35 +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
60c960a795
Handle nested alias.fieldName, which happens when nested conditions
...
exist.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881191 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 08:29:23 +00:00
Adam Heath
e2e43bf9e9
Move the condition parsing code to a separate class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881190 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 08:28:35 +00:00
Adam Heath
2e3757ffc1
Convert Planner from an interface to a class.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881189 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 08:26:58 +00:00
Adam Heath
b3c5cb1724
Make most classes extends Atom, which implements Appender, and
...
toString().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881188 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 08:24:41 +00:00
Jacques Le Roux
ed6b4be761
A patch from André Herbst "Danish translations for CommonHelpUiLabels" ( https://issues.apache.org/jira/browse/OFBIZ-3210 ) - OFBIZ-3210
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881182 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 07:54:41 +00:00
Adam Heath
04259814de
Add a helper method, reduce, for list processing.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881169 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 06:29:56 +00:00
Scott Gray
b01a50578c
Forgot to commit the uiLabel for r881139
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881140 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 03:31:07 +00:00
Scott Gray
062e85ac9e
Added a screenlet to webtool's view value screen that shows an entity xml representation of the value, might be useful if you've got some xml data files to build by hand
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881139 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 03:29:44 +00:00
Scott Gray
d79e59f640
Added java.sql.Date -> java.sql.Timestamp converter
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881045 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 23:27:19 +00:00
Adam Heath
671b47bd69
Remove some unneeded imports.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881033 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 23:07:14 +00:00
Adam Heath
6b4a696e1e
Expost various properties in a standard way.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881032 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 23:06:56 +00:00
Adam Heath
60c1f7cb09
Make some more classes final.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881025 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 22:57:42 +00:00
Adrian Crum
5832bcd719
Small performance enhancement to the entity engine converter code. If a SQL->Java converter is needed, keep a reference to it in ModelFieldType.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@880957 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 21:09:34 +00:00
Adam Heath
11b281c025
Bother, I should have never used the conversion framework.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@880919 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 19:30:11 +00:00
Adam Heath
35edfbc498
Removed space from jar name.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@880879 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 18:00:46 +00:00
Adrian Crum
9df0aa6329
Fixed layout problems in the new visual theme.
...
I took the no-clear style out of the tab bar - that should not have been put there. The no-clear style is intended to be used on a case-by-case basis when the layout is adversely affected by clearing floats.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@880871 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 17:48:42 +00:00
Adam Heath
67fd1ca9a8
Bother, forgot this.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@880837 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 16:34:06 +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
Bilgin Ismet Ibryam
a68a8a722f
Added FTL macro for the tree widget.
...
https://issues.apache.org/jira/browse/OFBIZ-2550
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@880683 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 09:16:24 +00:00
Jacques Le Roux
39d105f92f
Reverted changes 836044 following Adrian's issue report in https://issues.apache.org/jira/browse/OFBIZ-3206 "Recent Markup Changes Break Layout"
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@880658 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 08:27:36 +00:00
Adrian Crum
10f5cf54d7
The first step in getting the entity engine to use the new Java object type conversion code. Right now it only works while getting values from the database.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@836415 13f79535-47bb-0310-9956-ffa450edef68
2009-11-15 20:47:42 +00:00
Jacques Le Roux
99bcbcc08a
Fixes/enhances the help description, from Cimballi's comment on user ML
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@836376 13f79535-47bb-0310-9956-ffa450edef68
2009-11-15 16:08:31 +00:00
Bilgin Ismet Ibryam
ffe7c0926a
Fix for the issue reported in https://issues.apache.org/jira/browse/OFBIZ-3196
...
Set also the result from services invoked by multi-service w/o a suffix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@836192 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 15:42:26 +00:00
Jacques Le Roux
ffdbca925e
A patch from Marc Morin "Resolve java warnings exposed in Eclipse : framework - webapp" ( https://issues.apache.org/jira/browse/OFBIZ-3116 ) - OFBIZ-3116
...
With few changes notably an enhanced for loop instead of while iterator and
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@836141 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 08:29:42 +00:00
Adam Heath
14c9b6f7f4
Support complex aliases now. Note, that string default values do not
...
work corretly, and ModelViewEntity does not do any encoding of the
value, and this parser doesn't handle that.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@836088 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 01:15:56 +00:00
Adam Heath
6003fb0cf5
Helper method to add several complex alias members.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@836086 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 01:14:49 +00:00
Adam Heath
8be78c2804
Add aggregate function support for field definitions.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@836073 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14 00:13:09 +00:00
Scott Gray
64c38ffcc3
Removed anonymous password from the example assert data test since it was removed from the seed data in r829464, the test now passes again
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@836051 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 23:04:34 +00:00
Jacques Le Roux
5fc931c191
A patch from Bruno Busco "A new droppingcrumbs theme" ( https://issues.apache.org/jira/browse/OFBIZ-3156 ) - OFBIZ-3156
...
An updated patch to be used to show correctly the tabbars with this theme.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@836044 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 22:47:44 +00:00
Bruno Busco
5899644275
Better Italian labels
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@836021 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 22:15:03 +00:00
Jacques Le Roux
2e4130844b
commons-dbcp-1.3-20091113-r835956 .jar replaces commons-dbcp-1.3-20080708-r674758.jar
...
Built directly from DBCP trunk. Compiles with jdk 1.5 and 1.6 as well, runs also with both
An initiative from Philippe Mouawad at "Memory leak due to transaction management" (https://issues.apache.org/jira/browse/OFBIZ-2599 ) - OFBIZ-2599
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@836015 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 22:00:12 +00:00
Adam Heath
d17a8bf5c6
Make AND have a higher priority than OR.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835938 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 17:44:44 +00:00
Adam Heath
8bafb94b7e
Implement list values, and handle between(needed to be special cased).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835934 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 17:28:35 +00:00
Adam Heath
cc340041ce
Implement relations in xml output.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835933 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 17:27:29 +00:00
Jacopo Cappellato
40dc7cd9ab
Replaced hardcoded value for view size in pagination macro with the viewSize variable.
...
Thanks to Divesh Dutta for the patch, OFBIZ-3194
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835925 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 17:12:52 +00:00
Ashish Vijaywargiya
76c426670d
Applied patch from jira issue OFBIZ-2984 - HTML cleanup for Product Detail page.
...
In this patch table are removed for non tabular data and used div, and add CSS code for layout issue that created due to this cleanup.
Thanks Rohit for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835861 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 14:38:35 +00:00
Jacques Le Roux
03ac565c90
No functional changes just a clean-up : no intermediate var is needed
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835851 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 14:01:47 +00:00
Jacques Le Roux
6e89a069e7
Revert r835394 (DBCP upgrade, issue compiling with jdk 1.5 OOTB)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835801 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 10:28:29 +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
4a141e10fe
Add <TYPE> to NamePart(); the other words should also be added here.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835787 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 09:21:41 +00:00
Adam Heath
38d0d601ba
Add relation support. Not fully correct, as one-nofk is not yet
...
supported, because of the '-' in the name.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835786 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 09:20:15 +00:00