commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierrick HYMBERT (JIRA)" <j...@apache.org>
Subject [jira] Created: (BEANUTILS-370) Querying or filtering collections expression feature
Date Sun, 06 Dec 2009 17:46:18 GMT
Querying or filtering collections expression feature
----------------------------------------------------

                 Key: BEANUTILS-370
                 URL: https://issues.apache.org/jira/browse/BEANUTILS-370
             Project: Commons BeanUtils
          Issue Type: New Feature
          Components: Bean / Property Utils
            Reporter: Pierrick HYMBERT
             Fix For: LATER THAN 1.8.3


Feature proposal to support querying or filtering collection of beans inside expression:

employee.addresses{city == 'Toulouse'}
employees{subordinate[0] != null}
...

I attach patch as a proof of concept.

Successfuly JUnit tests examples are :

listNestedBeans{intArray[0] == 0}.intArray[0]
listNestedBeans{intArray[0] != 0}
listNestedBeans{floatProperty == 1.1}.floatProperty
listNestedBeans{stringProperty == 'Yop 2'}.stringProperty
arrayNestedBeans{doubleProperty = -1.5}.doubleProperty
arrayNestedBeans{dateProperty != null}
arrayNestedBeans{dateProperty == " + formatedDate + "}

Modified classes :
org.apache.commons.beanutils.expression.Resolver
org.apache.commons.beanutils.expression.DefaultResolver
org.apache.commons.beanutils.PropertyUtilsBean
org.apache.commons.beanutils.PropertyUtils

Modified test classes:
org.apache.commons.beanutils.expression.DefaultResolverTestCase
org.apache.commons.beanutils.TestBean
org.apache.commons.beanutils.PropertyUtilsTestCase

Thank you for your feedbacks

Regards,

Pierrick HYMBERT

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message