design help

Hi all,

I have to create a business objects that handles similar functionality but on different types of objects. This functionality are like update, delete, insert methods for different tables that the object are to hit. So i wanted to know what would be the better way to do it? Should I have one class that has overloaded methods ( in this case the class would be huge with lot of methods since we have to hit like 20 tables ) or should I have one generic class that has just this 4 or 5 methods and then have some mechanism to identify the object that is passed to it and then do the processing? If the latter case is prefered then can you please suggest a way to identify the obejcts.

Also if you think there is some design pattern or some better mechanism to handle this then please let me know. I would be very greatful to you.

Thanks in adavnce.

[879 byte] By [crazeedudea] at [2007-10-2 4:06:41]
# 1
Have a look at the DTO (Data Transfer Object), DAO (Data Access Object)and the VO (Value Object) patterns for starters. Have a look [url= http://java.sun.com/blueprints/patterns/]here[/url].kind regards,Jos
JosAHa at 2007-7-15 23:29:32 > top of Java-index,Other Topics,Patterns & OO Design...