try JDO , there u cn create database using class and can use it as objects
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
algogee
you "had" the java class so now wats the need of any implementation :P
well jokes apart
Specify the exact requirement ie when u say method which returns the
respective object of the class based on given data(instance variable : what
type of object you want from this method?
and what does thes
One Line Answer..
Check Factory Design Pattern.
On Thu, Aug 2, 2012 at 10:13 PM, teja bala wrote:
> I had a java class(acts as a database class) which got a method which
> returns the respective object of the class based on given data(instance
> variable) .. eg: given customer id and 3 classe
I had a java class(acts as a database class) which got a method which
returns the respective object of the class based on given data(instance
variable) .. eg: given customer id and 3 classes clerk,manager,salesperson
like that .. method should return the instance associated with the customer
id..
c