java - Programatically create exclusion parameters in Apache CXF? -


I am creating a secure web service that queries the database using a query queryeria object. There are fields like 'color' and 'size' in QueryCriteria.

  public string getObject (@Context final HttpServletRequest httpRequest_, @QueryParam ("")  

Last question serenity criteria) {...}

I want to be able to query for color! = Blue However, the only way I can think of doing this is, for each field in QueryCriteria, there is an exclusion field, e.g. Exclude, Exclude Color

This will add a lot of bloat to my criteria objects, is there a more elegant solution to my problem? Answer:

Answer:

Answer:

OK, here is a solution that I thought.

For each region, create two sets, e.g. SetExcludeColor and setColor. Both will modify a pair, where the left side of the pair is included and what's right.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -