M
Marc Twain
I'm surprised how little material there is available on the web
regarding the creation of objects based on data from an RDBMS.
For the simple things, like say Employee objects, I : 1) create an
employee class 2) in a 'EmployeeDB' bean, add a 'getEmployee' and
'addEmployee' method to interact with the db (populating or receiving
an instance of the 'Employee' class.
Now for the more complex stuff I must admit I could really use some
simple pointers. For example if I want to retreive a collection of
employee, should I make the 'getEmployees' method a part of the
EmployeeDB bean or should I create a brand new Class called
'EmployeeCollection'? Not to mention that I have no idea what to put
in the constructor of my EmployeeDB bean.
Any pointers? (url, etc?)
TIA,
AJ
regarding the creation of objects based on data from an RDBMS.
For the simple things, like say Employee objects, I : 1) create an
employee class 2) in a 'EmployeeDB' bean, add a 'getEmployee' and
'addEmployee' method to interact with the db (populating or receiving
an instance of the 'Employee' class.
Now for the more complex stuff I must admit I could really use some
simple pointers. For example if I want to retreive a collection of
employee, should I make the 'getEmployees' method a part of the
EmployeeDB bean or should I create a brand new Class called
'EmployeeCollection'? Not to mention that I have no idea what to put
in the constructor of my EmployeeDB bean.
Any pointers? (url, etc?)
TIA,
AJ