this is about how flexible and ready for change you want to be and in control and...and.. and.. and preformance.
When you use one methode which accepts different criteria and let the request handle the knowledge on which property to filter, and multiple clients are using that methode. they also must have knowledge of the filtering properties. When you change (add, delete or rename) a filter property you must notify the clients.
When you use multiple methods each client who uses a specific filter methode. this client doesn't have to know all the other filter properties and when you change one methode you only have to notify the clients who are using that service.
When you just have one client, you can choose to have just one methode, but maybe you want some control on which properties this client is filtering on...
and what Tim is saying, result should be the same.
and you can go on like this a while.. there are more tradeoffs you can make.
But finaly I would go for multiple methodes
www.ClemensReijnen.nl / IASA Netherlands |