Skip to Content.
Sympa Menu

grouper-dev - RE: [grouper-dev] findAllByApproximateAttr ?

Subject: Grouper Developers Forum

List archive

RE: [grouper-dev] findAllByApproximateAttr ?


Chronological Thread 
  • 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
Sent: Monday, February 23, 2009 1:14 PM
To: Grouper Dev
Subject: [grouper-dev] findAllByApproximateAttr ?

 

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




Archive powered by MHonArc 2.6.16.

Top of Page