grouper-dev - findAllByApproximateAttr ?
Subject: Grouper Developers Forum
List archive
- From: Tom Zeller <>
- To: Grouper Dev <>
- Subject: findAllByApproximateAttr ?
- Date: Mon, 23 Feb 2009 12:14:01 -0600
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=E369dZGGYUx4djDV+dU4z/qonEjMVGWhv9sHm5ufee0keQQAU4zNtUDdU+ysVNZTYS cHCXz4kOCuA669+L9U/NODpY69/aPAUz7EC21//idI8nDUq1StGKp8+zl0VrI93BLy/N Z7pgqEAkPZE3vtIOrKFNpD3BmqizNWJmL8ZPw=
Would it make sense to provide a method like Hib3GroupDAO.findAllByApproximateAttr() that doesn't surround the attribute value with wildcards ? Or perhaps a boolean arg to turn off the wildcards ?
Instead of
.setString( "value", "%" + val.toLowerCase() + "%" )
just
.setString( "value", val.toLowerCase() )
I'm interested because I'd like to search for case-insensitive group names and partial case-insensitive group mail addresses (value like "mailLHS@%") in order to force uniqueness of our naming conventions.
Thanks,
TomZ
- findAllByApproximateAttr ?, Tom Zeller, 02/23/2009
- RE: [grouper-dev] findAllByApproximateAttr ?, Chris Hyzer, 02/23/2009
- Re: [grouper-dev] findAllByApproximateAttr ?, Tom Zeller, 02/23/2009
- RE: [grouper-dev] findAllByApproximateAttr ?, Chris Hyzer, 02/23/2009
- Re: [grouper-dev] findAllByApproximateAttr ?, Tom Zeller, 02/23/2009
- RE: [grouper-dev] findAllByApproximateAttr ?, Chris Hyzer, 02/23/2009
Archive powered by MHonArc 2.6.16.