Commit Graph
1133 Commits
Author SHA1 Message Date
Adam Heath c8a6d783aa Remove double assignment to addParens(slight optimization/code refactor).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949610 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:07:16 +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
Jacques Le Roux 6193dd4e53 <author>None</author> is totally useless and we don't need an author OOTB
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949101 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 05:41:23 +00:00
Jacques Le Roux 63fd94e778 Not sure why, but my regexp S/R in the commit r948846 boke some formatting. I also removed some useless other stuff in this commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948852 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:45:59 +00:00
Jacques Le Roux 2a1a5aee14 We don't need
<copyright>Copyright 2001-.* The Apache Software Foundation</copyright>
<copyright><year>.*</year><holder>Apache Foundation</holder></copyright>
<copyright><year>.*</year><holder>Apache Foundation.</holder></copyright>
<owner>Copyright 2001-.* The Apache Software Foundation</owner>

Less to update every year!

Thanks to BJ 1st effort at "update files from 2009 to 2010" (https://issues.apache.org/jira/browse/OFBIZ-3783) - OFBIZ-3783

Note: there are been a lot of efforts in 2009: there are plenty of data dated from this year!

I hope I did not broke anything (should not, but of course I did not try all changes...) Anyway, this can be easily reverted...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948846 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:23:22 +00:00
Adam Heath 39faca3863 Allow for dynamic registering of additional operators for extensions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948448 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:23:03 +00:00
Adam Heath 3ffebd5910 Always set memberModelEntities; there's no reason to check for null, as
the population methods always get called during construction anways.
This was discovered while looking at code coverage.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948443 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:40 +00:00
Adam Heath b861401e71 Fix view entities that have view entities as members, with complex aliases, or functions on the nested view.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948442 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:34 +00:00
Adam Heath 4488c44a32 Add support for UPPER and LOWER functions in index fields.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948440 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:21 +00:00
Erwan de Ferrieres 962c6f3ccc udpating derby version to 10.6.1.0
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946556 13f79535-47bb-0310-9956-ffa450edef68
2010-05-20 07:48:15 +00:00
Jacopo Cappellato 0dd1427f0a Added ability to override the type, colName and description of an existing entity field using the extend-entity definition.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@942076 13f79535-47bb-0310-9956-ffa450edef68
2010-05-07 14:08:39 +00:00
David E. Jones 1b2bbe40c5 Check for bad entity name and return a better error message than an NPE
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941284 13f79535-47bb-0310-9956-ffa450edef68
2010-05-05 13:40:33 +00:00
Scott Gray df84248153 The following deprecated classes, constructors or methods have been removed:
org.ofbiz.entity.GenericDelegator.findCountByAnd(String)
- Use findCountByCondition(String, EntityCondition, EntityCondition, EntityFindOptions) instead

org.ofbiz.entity.GenericDelegator.findCountByAnd(String, Object...)
- Use findCountByCondition(String, EntityCondition, EntityCondition, EntityFindOptions) instead

org.ofbiz.entity.GenericDelegator.findCountByAnd(String, Map<String, ? extends Object)
- Use findCountByCondition(String, EntityCondition, EntityCondition, EntityFindOptions) instead

org.ofbiz.entity.GenericDelegator.findCountByCondition(String, EntityCondition, EntityCondition)
- Use findCountByCondition(String, EntityCondition, EntityCondition, EntityFindOptions) instead

org.ofbiz.entity.GenericDelegator.getRelated(String, GenericValue)
- Use getRelated(String, Map<String, ? extends Object>, List<String>, GenericValue) instead

org.ofbiz.entity.GenericDelegator.getRelatedByAnd(String, Map<String, ? extends Object>, GenericValue)
- Use getRelated(String, Map<String, ? extends Object>, List<String>, GenericValue) instead

org.ofbiz.entity.GenericDelegator.getRelatedOrderBy(String, List<String>, GenericValue)
- Use getRelated(String, Map<String, ? extends Object>, List<String>, GenericValue) instead

org.ofbiz.entity.GenericDelegator.getMultiRelation(GenericValue, String, String)
- Use getMultiRelation(GenericValue, String, String, List<String>) instead

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938955 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:31:18 +00:00
Scott Gray 5220be9f4e The following deprecated classes, constructors or methods have been removed:
org.ofbiz.entity.Delegator.getMultiRelation(GenericValue, String, String)
- Use getMultiRelation(GenericValue, String, String, List<String>) instead

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938954 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:31:08 +00:00
Scott Gray 2d4b56a599 The following deprecated classes, constructors or methods have been removed:
org.ofbiz.entity.GenericDelegator.findByOr(String, Object...)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findByOr(String, Map<String, ? extends Object>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findByOr(String, Map<String, ? extends Object>, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findByAndCache(String, Object...)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findByLike(String, Object...)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findByLike(String, Map<String, ? extends Object>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findByLike(String, Map<String, ? extends Object>, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findByCondition(String, EntityCondition, Collection<String>, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findByCondition(String, EntityCondition, EntityCondition, Collection<String>, List<String>, EntityFindOptions)
- Use find(String, EntityCondition, EntityCondition, Set<String>, List<String>, EntityFindOptions) instead

org.ofbiz.entity.GenericDelegator.findByConditionCache(String, EntityCondition, Collection<String>, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findListIteratorByCondition(String, EntityCondition, Collection<String>, List<String>)
- Use find(String, EntityCondition, EntityCondition, Set<String>, List<String>, EntityFindOptions) instead

org.ofbiz.entity.GenericDelegator.findListIteratorByCondition(String, EntityCondition, EntityCondition, Collection<String>, List<String>, EntityFindOptions)
- Use find(String, EntityCondition, EntityCondition, Set<String>, List<String>, EntityFindOptions) instead

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938950 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:30:57 +00:00
Scott Gray f097b0a639 The following deprecated classes, constructors or methods have been removed:
org.ofbiz.entity.GenericDelegator.findAll(String)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findAll(String, String...)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findAll(String, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findAllCache(String)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findAllCache(String, String...)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findAllCache(String, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findByAnd(String, EntityCondition...)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findByAnd(String, List<EntityCondition>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findByAnd(String, List<EntityCondition>, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findByOr(String, EntityCondition...)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findByOr(String, List<EntityCondition>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

org.ofbiz.entity.GenericDelegator.findByOr(String, List<EntityCondition>, List<String>)
- Use findList(String, EntityCondition, Set<String>, List<String>, EntityFindOptions, boolean) instead

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938948 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:30:33 +00:00
Scott Gray 8a0ba1d049 The following deprecated classes, constructors or methods have been removed:
org.ofbiz.entity.GenericDelegator.findByPrimaryKey(GenericPK)
- Use findByPrimaryKey(String, Map<String, ? extends Object>)

org.ofbiz.entity.GenericDelegator.findByPrimaryKey(String, Object...)
- Use findByPrimaryKey(String, Map<String, ? extends Object>)

org.ofbiz.entity.GenericDelegator.findByPrimaryKeyCache(GenericPK)
- Use findByPrimaryKeyCache(String, Map<String, ? extends Object>)

org.ofbiz.entity.GenericDelegator.findByPrimaryKeySingle(String, Object)
- Use findOne(String, Map<String, ? extends Object, boolean)

org.ofbiz.entity.GenericDelegator.findByPrimaryKeyCacheSingle(String, Object)
- Use findOne(String, Map<String, ? extends Object, boolean)

org.ofbiz.entity.GenericDelegator.findByPrimaryKeyPartial(GenericPK, String...)
- Use findByPrimaryKeyPartial(GenericPK, Set<String>)

org.ofbiz.entity.GenericDelegator.findAllByPrimaryKeys(Collection<GenericPK>)

org.ofbiz.entity.GenericDelegator.findAllByPrimaryKeysCache(Collection<GenericPK>)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938945 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:29:32 +00:00
Scott Gray 3129044e2d The following deprecated classes, constructors or methods have been removed:
org.ofbiz.entity.model.ModelRelation.getMainEntity()

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938942 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:29:20 +00:00
Scott Gray f8c5c12bcf The following deprecated classes, constructors or methods have been removed:
org.ofbiz.entity.model.ModelEntity.getPksCopy()
- Use getPkFieldsUnmodifiable() instead
org.ofbiz.entity.model.ModelEntity.getFieldsCopy()
- Use getFieldsUnmodifiable() instead

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938939 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:29:09 +00:00
Scott Gray 1fb82378eb At some point the behavior of initEntityEcaHandler() was changed so that a new handler wasn't inititated if the delegator already had one. The broke the test delegator because it requires a new handler be created for it rather than inherit the one provided by the delegator that it cloned. Worked around by setting the handler to null on the while making the test delegator before calling initEntityEcaHandler().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935870 13f79535-47bb-0310-9956-ffa450edef68
2010-04-20 11:10:45 +00:00
Scott Gray a3837cdcd2 Fix a problem reported by Bob Morley in OFBIZ-3663. When a delegator is cloned during test execution then the test mode isn't inherited by the new delegator and subsequently any changes made by that delegator are not tracked for rollback. Fixed by setting the testMode of the new delegator to match that of the one being cloned.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935869 13f79535-47bb-0310-9956-ffa450edef68
2010-04-20 11:10:34 +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 167b4c0b99 Added a Groovy Builder class for building EntityConditions, plenty of room for handling possible errors, at the moment I'm just assuming the passed in parameters will be what I expect
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935326 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 10:11:45 +00:00
Adam Heath a9a3b1058c When rolling back a transaction, and there is already an exception
available, then don't bother logging a new temporary exception.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932104 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:42 +00:00
Adam Heath 70d017f130 Bother, me == stupid, inverted the equalsHelper test. This fixes the
buildbot problem.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930979 13f79535-47bb-0310-9956-ffa450edef68
2010-04-05 23:09:31 +00:00
Adrian Crum 7a73dc39a1 Fixed broken compile.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930740 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 19:41:27 +00:00
Adam Heath 3fe7804696 Make use of UtilObject.equalsHelper in storeAll.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930737 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 19:08:46 +00:00
Adrian Crum f152bcfdf9 Changed a demo data comment to help clear up some confusion.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930470 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 04:41:21 +00:00
Scott Gray 63aadfd6be Removed a couple of redundant null assignments
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928275 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 21:00:32 +00:00
Scott Gray 42f78553dc Removed a couple of unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928274 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 21:00:29 +00:00
Scott Gray b9605ffbf0 Removed a few redundant null checks.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928273 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 21:00:27 +00:00
Scott Gray 0ea00e303d Move a couple of null checks higher to where they can actually be reached
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928272 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 21:00:24 +00:00
David E. Jones 0ef67581ce Small fix so that new SequenceUtil stuff (with no delegtor reference) will work with the multi-tenant extended helper info; before this all tenants would use the SequenceValueItem table from the master (no tenant) database
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927584 13f79535-47bb-0310-9956-ffa450edef68
2010-03-25 20:22:55 +00:00
Adrian Crum 8a3306c4e2 Commented out unused entity in entitygroup.xml file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927396 13f79535-47bb-0310-9956-ffa450edef68
2010-03-25 13:34:48 +00:00
David E. Jones 8e3edae07f Merged multitenant20100310 branch into the trunk
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927271 13f79535-47bb-0310-9956-ffa450edef68
2010-03-25 04:42:26 +00:00
Adrian Crum acb4ff1357 Compiler warning and spelling fixups in PrimaryKeyFinder.java. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926940 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 05:52:51 +00:00
Erwan de Ferrieres e934e86fd1 Correcting warning message on too long foreign keys
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@925302 13f79535-47bb-0310-9956-ffa450edef68
2010-03-19 16:17:35 +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
Adam Heath 2f7ee6b1d3 Move Factory to lang package.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923354 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 17:31:34 +00:00
Adam Heath 37f62c89e9 Follow junit best practices.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922735 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:22:10 +00:00
Adam Heath 4ba13c9699 Fix formatting; some lines had a leading indent of 2 spaces.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922734 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:21:42 +00:00
Adam Heath 2d40b49aff Thread.sleep takes a long, not an int, so convert the wait time to long calculations. Also, remove the use of new Double().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922733 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:21:14 +00:00
Adam Heath 641b22e58c Change visibility of purely internal methods to private, and make several instance variables final.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922731 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:20:45 +00:00
Adam Heath 579ff51707 SequenceBank no longer stores the bankSize.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922730 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:20:17 +00:00
Adam Heath 1647601757 SequenceBank no longer maintains a duplicate reference to SequenceUtil.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922729 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:19:44 +00:00
Adam Heath 23abe54e4e SequenceUtil no longer stores a reference to the ModelEntity at all.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922728 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:19:16 +00:00
Adam Heath be1f4c329c SequenceBank no longer uses ModelEntity at all.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922725 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:18:42 +00:00
Adam Heath 795b0cdbab Remove use of ModelEntity from fillBank.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922724 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:18:10 +00:00
Adam Heath 8ccf42e1dd Fix bad caching. Previously, any call to getDelegator() would *always*
walk the entire classpath, trying to find all implementations of
DelegatorFactory.  This was fixed by moving the cache higher up.

In detail, the entity caching system only stored a String delegator
name.  It would then try to find the appropriate delegator to match that
name.  However, during a custom importer, the caching system was being
exercised very heavily, so DelegatorFactory.getDelegator() was being
called in a very tight loop.  Since the delegator instances were not
being cached at the high level, this caused a *big* slowdown; basically,
a 15 minute importer was taking over 2 hours, and was no near finishing.
This was because UtilObject.getObjectFromFactory would end up walking
the entire classpath, finding every jar, looking at every zip entry, to
try and find the appropriate file in META-INF/services.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921990 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 18:59:34 +00:00
Adam Heath a68617c9ad Pass the delegator into any create/init methods that end up setting any
field data.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921989 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 18:58:13 +00:00