grouper-dev - RE: [grouper-dev] findAllByApproximateAttr ?
Subject: Grouper Developers Forum
List archive
- From: Chris Hyzer <>
- To: Tom Zeller <>, Grouper Dev <>
- Subject: RE: [grouper-dev] findAllByApproximateAttr ?
- Date: Mon, 23 Feb 2009 13:18:16 -0500
- Accept-language: en-US
- Acceptlanguage: en-US
I wonder if it would be confusing if findGroupByAttr just used “like”
instead of “=”, so if you don’t pass in wildcards, you get by attr, and if you
pass in wildcards, it would do the right thing… just trying to avoid too many
overloads… maybe other methods could benefit by this too… Chris From:
[mailto:] On Behalf Of Tom Zeller 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.