Constraining a Class
[prev]
[thread]
[next]
[Date index for 2005/07/12]
I have a table 'Company' in my database. This table holds all manner of
companies: Customers, Potential Customers, Previous Customers, Suppliers
etc. There's an enum field that tells me which sort of company each row
represents.
I'd like to be able to create My::Data::Customer,
My::Data::PotentialCustomer etc., representing each of these types of
record in the table.
Is this possible in Class::DBI or do I always have to add that to my
queries?
Cheers!
Rick Measham
|
Constraining a Class
Rick Measham 01:08 on 12 Jul 2005
|