directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lucas theisen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRAPI-165) Add a FilterBuillder
Date Thu, 19 Dec 2013 16:10:18 GMT

    [ https://issues.apache.org/jira/browse/DIRAPI-165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13852999#comment-13852999
] 

lucas theisen commented on DIRAPI-165:
--------------------------------------

My own version looks something like this:

{code:java}
    String filter = FilterBuilder.and( 
            FilterBuilder.equals( MAIL_AT, "*@example.com" ), 
            FilterBuilder.notEqualTo( CN_AT, "test" ) ).build();
{code}

> Add a FilterBuillder
> --------------------
>
>                 Key: DIRAPI-165
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-165
>             Project: Directory Client API
>          Issue Type: New Feature
>    Affects Versions: 1.0.0-M21
>            Reporter: lucas theisen
>            Priority: Minor
>
> Looking for something Fluent, in the _spirit_ of Hibernate Criteria.  May not seem like
much, but can drastically reduce query syntax issues. Also, you would likely be using a StringBuilder
anyway, so its not much different. 



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message