Commit Graph
1462 Commits
Author SHA1 Message Date
Scott Gray 5145912da8 - Added @SuppressWarnings("hiding") to field module (hides ModelInfo.module)
- Comment typo fix
- Removed a couple of unnecessary casts

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912245 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 22:53:18 +00:00
Scott Gray b44d9fde91 Javadoc typo fix
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912227 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 21:15:06 +00:00
Scott Gray 5bfd3c432b The following deprecated classes, constructors or methods have been removed:
org.ofbiz.entity.condition.EntityWhereString(String)
- Use EntityCondition.makeConditionWhere(String) instead

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912226 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 21:15:00 +00:00
Scott Gray 114ea16f93 Removed unneccesary semicolons
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912225 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 21:09:28 +00:00
Scott Gray 51bcefa91d The following deprecated classes, constructors or methods have been removed:
org.ofbiz.entity.condition.EntityFunction.LENGTH(EntityConditionValue)
- Use EntityFunction.LENGTH(EntityConditionValue) instead (method rather than constructor)

org.ofbiz.entity.condition.EntityFunction.LENGTH(Object)
- Use EntityFunction.LENGTH(Object) instead (method rather than constructor)

org.ofbiz.entity.condition.EntityFunction.TRIM(EntityConditionValue)
- Use EntityFunction.TRIM(EntityConditionValue) instead (method rather than constructor)

org.ofbiz.entity.condition.EntityFunction.TRIM(Object)
- Use EntityFunction.TRIM(Object) instead (method rather than constructor)

org.ofbiz.entity.condition.EntityFunction.UPPER(EntityConditionValue)
- Use EntityFunction.UPPER(EntityConditionValue) instead (method rather than constructor)

org.ofbiz.entity.condition.EntityFunction.UPPER(Object)
- Use EntityFunction.UPPER(Object) instead (method rather than constructor)

org.ofbiz.entity.condition.EntityFunction.LOWER(EntityConditionValue)
- Use EntityFunction.LOWER(EntityConditionValue) instead (method rather than constructor)

org.ofbiz.entity.condition.EntityFunction.LOWER(Object)
- Use EntityFunction.LOWER(Object) instead (method rather than constructor)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912224 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 21:09:23 +00:00
Scott Gray a3e3df15af The following deprecated classes, constructors or methods have been removed:
org.ofbiz.entity.condition.EntityFieldValue(String)
- Use EntityFieldValue.makeFieldValue(String) instead

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912221 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 20:50:49 +00:00
Scott Gray e0563af6cd The following deprecated classes, constructors or methods have been removed:
org.ofbiz.entity.condition.EntityFieldMap(EntityComparisonOperator<L, R>, EntityJoinOperator, V…)
- Use EntityCondition.makeCondition(EntityComparisonOperator<L, R>, EntityJoinOperator, Object…) instead

org.ofbiz.entity.condition.EntityFieldMap(Map<String,V>, EntityComparisonOperator<L, R>, EntityJoinOperator)
- Use EntityCondition.makeCondition(Map<String, ? extends Object>, EntityComparisonOperator<L, R>, EntityJoinOperator) instead

org.ofbiz.entity.condition.EntityFieldMap(EntityJoinOperator, Object...)
- Use EntityCondition.makeCondition(EntityJoinOperator, Object...) instead

org.ofbiz.entity.condition.EntityFieldMap(Map<String, ? extends Object>, EntityJoinOperator)
- Use EntityCondition.makeCondition(Map<String, ? extends Object>, EntityJoinOperator) instead

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912220 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 20:47:27 +00:00
Scott Gray ea65488869 Removed unneccesary deprecation warning suppression
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912212 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 20:19:35 +00:00
Scott Gray 0c3baeae57 The following deprecated classes, constructors or methods have been removed:
org.ofbiz.entity.condition.EntityExpr(L, EntityComparisonOperator<L,R>, R)
- Use EntityCondition.makeCondition(L, EntityComparisonOperator<LL,RR>, R) instead

org.ofbiz.entity.condition.EntityExpr(String, EntityComparisonOperator<String,R>, R)
- Use EntityCondition.makeCondition(L, EntityComparisonOperator<LL,RR>, R) instead

org.ofbiz.entity.condition.EntityExpr(L, boolean, EntityComparisonOperator<L,R>, R, boolean)
- Use EntityCondition.makeCondition(L, EntityComparisonOperator<LL,RR>, R) instead
- Use EntityFunction.UPPER_FIELD(L) in place of leftUpper = true
- Use EntityFunction.UPPER(R) in place of rightUpper = true

org.ofbiz.entity.condition.EntityExpr(EntityCondition, EntityJoinOperator, EntityCondition)
- Use EntityCondition.makeCondition(EntityCondition, EntityJoinOperator, EntityCondition) instead

org.ofbiz.entity.condition.EntityExpr.setLUpper(boolean)
org.ofbiz.entity.condition.EntityExpr.isLUpper()
org.ofbiz.entity.condition.EntityExpr.isRUpper()
org.ofbiz.entity.condition.EntityExpr.setRUpper(boolean)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912211 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 20:19:30 +00:00
Scott Gray 60f6517b74 Organized imports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912210 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 20:19:23 +00:00
Scott Gray aa815051f5 The following deprecated classes, constructors or methods have been removed:
org.ofbiz.entity.condition.EntityDateFilterCondition(String, String)
- Use EntityCondition.makeConditionDate(String, String) instead

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912203 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 19:54:33 +00:00
Scott Gray fee56d9f59 The following deprecated classes, constructors or methods have been removed:
org.ofbiz.entity.condition.EntityConditionList(EntityJoinOperator, T…)
- Use EntityCondition.makeCondition(EntityJoinOperator, T…) instead

org.ofbiz.entity.condition.EntityConditionList(List<T>, EntityJoinOperator)
- Use EntityCondition.makeCondition(List<T>, EntityJoinOperator) instead

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912202 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 19:49:18 +00:00
Adrian Crum e984c0afcf Have XmlSerializer delegate object deserialization to XStream if the serialization method is not from XmlSerializer.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912072 13f79535-47bb-0310-9956-ffa450edef68
2010-02-20 03:05:49 +00:00
Adrian Crum 583d012e4b Created a SOAP serializer facade class to decouple SOAP code from XmlSerialize.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910060 13f79535-47bb-0310-9956-ffa450edef68
2010-02-14 18:38:34 +00:00
Adrian Crum 7eb22acb3a Test XStream serialization/deserialization of GenericValue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909858 13f79535-47bb-0310-9956-ffa450edef68
2010-02-13 17:45:11 +00:00
Adam Heath e768559d39 Bother; these uses of FastMap are actually rather stupid. The map is
only populated once at startup, then never modified again.  What I have
discovered is that, while FastMap is supposed to be more stable in
memory allocation and cpu utilization, there was one leg of it's
internal structure that was *extremely* unbalanced.  Ie, consider a
binary tree with 128 nodes, with 7 top level nodes, and then all the
rest of the nodes are on one side of the tree.  Since these maps are
never modified after startup, we might as well just use a HashMap here.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903802 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:52:27 +00:00
Adam Heath 041a20e96b Similiar to the last commit, don't maintain back-links to view entities;
instead, just the names of the entities are stored.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903801 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:51:47 +00:00
Adam Heath 9a206397ca Don't store references to connected ModelEntity; instead, just store the
entity name.  This helps the connected object graph at runtime, as it
used to be view->entity->view->entity, in very long loops.  This is one
part of the fix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903800 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:51:03 +00:00
Adam Heath 52143c14c1 Fix case of DynamicViewEntity vivification into ModelViewEntity not
storing the ModelReader.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903796 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 19:49:16 +00:00
Scott Gray ea4c4c892e Removed deprecated method ConnectionFactory.tryGenericConnectionSources(String, Element)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902226 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 19:11:18 +00:00
Scott Gray 5d8c3aa5f6 Fixed bug reported by Wickersheimer Jeremy, OFBIZ-3302. Because the testEntityListIterator test depends on the correct ordering of the find results, explicity specify the correct order rather than depending on the database to get it right.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900511 13f79535-47bb-0310-9956-ffa450edef68
2010-01-18 18:53:50 +00:00
Scott Gray 89e146c0b2 Allow byte[] and ByteBuffer to be used to set a Blob typed GenericEntity fields without warnings
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899825 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:43:56 +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
David E. Jones 9f222d3224 Small improvement to the EntityListIterator count total results code when distinct is used and partial fields are selected; note that this assumes the most unique field is first in the list since doing distinct on multiple fields in this way does not seem to work
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@897605 13f79535-47bb-0310-9956-ffa450edef68
2010-01-10 09:16:47 +00:00
David E. Jones 78f92eb5db Small change to reduce the volume on this frequent error message that simply lets you know the system is falling back to a different way of doing things
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@896853 13f79535-47bb-0310-9956-ffa450edef68
2010-01-07 11:46:00 +00:00
Bilgin Ismet Ibryam 6b0a2fe97f Use getLocalName() instead of getNodeName() and getTagName() methods. This change will fix errors in soap call, where elements have namespace prefixes.
I didn't notice any error caused from these changes, but it would be great if someone with more xml knowledge takes a loot at it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894359 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 11:33:39 +00:00
Adam Heath 93cc17b5b0 Remove a bunch of wildcard imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894106 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 19:54:58 +00:00
Adam Heath 17e8d26105 Fix some javadoc warnings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894037 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 01:01:01 +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 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 68278753f9 Pass the list of values to ModelConversion.convert().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893345 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 23:17:56 +00:00
Adam Heath 4693797bc2 Remove plurality in ModelConversion.convert().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893344 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 23:17:13 +00:00
Adam Heath f355b9e503 Don't test viewEntityCondition against null multiple times.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893342 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 23:16:38 +00:00
Adam Heath 1dc3aa9b0a Make the map passed to convert read-only.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893340 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 23:14:22 +00:00
Jacopo Cappellato 13a79db193 Upgrade to Derby 10.5.3.0
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892733 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 09:04:52 +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 9d031c883b Fix planning of MathValue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892696 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 05:49:13 +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
Jacques Le Roux 47c9613346 Some easy documentation (cwiki) links changes following r888510
I have found a way to fix tinylinks :D http://confluence.atlassian.com/pages/viewpage.action?pageId=162988142

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888559 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 20:23:23 +00:00
Adam Heath 07e1de3270 Make testOperations manipulation non-blocking, using concurrent programming.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885277 13f79535-47bb-0310-9956-ffa450edef68
2009-11-29 21:32:36 +00:00
Jacques Le Roux 569a4afeea Some cleaning related to isEmpty
* remove duplicate ()
* remove casts no longer needed

I'm doing these last tasks around isEmpty and isNotEmpty mostly to be sure that nothing has slipped in. Despite I have been very careful, I prefer double check.

+ one typo in ofbizSelenium help (not sure this file is used yet though, seems to be missing some parts which are commented out, for now I guess)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885093 13f79535-47bb-0310-9956-ffa450edef68
2009-11-28 14:08:16 +00:00
Adam Heath e650de55f1 Fix build error, caused by bad merge from an old branch.
GenericDelegator was used instead of Delegator.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884373 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 02:30:10 +00:00
Adam Heath 1d148ce235 Helper method to fetch all rows/values from a query.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884363 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 01:33:38 +00:00
Adam Heath 586bedfa70 for all doTransaction helpers, change Throwable to
GenericEntityException.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884362 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 01:33:03 +00:00
Adam Heath 3a6becca71 For unimplemented values, show the class name as well.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884361 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 01:32:25 +00:00
Adam Heath 1599de6d2c Handle null values during planning of conditions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884360 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26 01:31:38 +00:00
Jacques Le Roux ebf6dc2efa Fix a typo in JavaDoc found by Eclipse
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884251 13f79535-47bb-0310-9956-ffa450edef68
2009-11-25 20:31:38 +00:00