lucas theisen created DIRSERVER-1941:
----------------------------------------
Summary: Add a FilterBuillder
Key: DIRSERVER-1941
URL: https://issues.apache.org/jira/browse/DIRSERVER-1941
Project: Directory ApacheDS
Issue Type: New Feature
Components: ldap
Affects Versions: 2.0.0-M16
Reporter: lucas theisen
Looking for something Fluent, in the _spirit_ of Hibernate Criteria. My own
version looks something like this:
FilterBuilder.and( FilterBuilder.equals( MAIL_AT, "*@example.com" ),
FilterBuilder.notEqualTo( CN_AT, "test" ) ).build();
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)