I am trying to write logic for advanced search which has lot of fields. Based on user inputs I have to build the query dynamically. The oracle query has exists clause also.
At present I have a chain of switch cases which helps me in forming the query. But this has become very complex procedure, editing the logic to build a query has become very difficult.
Other than switch case is there any other way to build query dynamically. Please let me know