[CDBI] Automatic inheritance?

John Drago john.drago at data393.com
Fri Sep 9 04:06:19 BST 2005

Have you tried Class::DBI::Relationship::IsA?

It sounds like it might be right up your alley.

> -----Original Message-----
> From: classdbi-bounces at lists.digitalcraftsmen.net [mailto:classdbi-
> bounces at lists.digitalcraftsmen.net] On Behalf Of melo_am0 at sewanee.edu
> Sent: Thursday, September 08, 2005 8:37 PM
> To: classdbi at svr02.digitalcraftsmen.net
> Subject: [CDBI] Automatic inheritance?
> Hey all-
> I'm trying to do something weird, and I'm stumped as to how to do it.
I am
> writing some scripts to control a cluster of machines. I have a table
> up with each row defining a machine (ip address, etc..) and it's
> swimmingly well.
> I have an issue though. I'd like to be able to subclass the machine
> into a machine::windows and machine::linux class since some functions
> different depending on if the machine is running windows or linux. I'm
> just not sure how I'd go about it though. At first glance, it seems
> the 'select' trigger would work, but would it work with relationships
> well? (it seems like before_create or after_create would be called at
> point too, but my grasp of the terminology is too weak to decide)
> So, I guess the question is, will writing a 'select' trigger for my
> allow me to hook the contructor into letting me bless the class as a
> subclass? And if so, will class::dbi's @ISA barf on me?
> Thanks for your patience-
> Andrew
> _______________________________________________
> ClassDBI mailing list
> ClassDBI at lists.digitalcraftsmen.net
> http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

More information about the ClassDBI mailing list