[CDBI] Automatic inheritance?

[prev] [thread] [next] [Date index for 2005/09/09]

From: melo_am0
Subject: [CDBI] Automatic inheritance?
Date: 02:37 on 09 Sep 2005
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 set
up with each row defining a machine (ip address, etc..) and it's working
swimmingly well.

I have an issue though. I'd like to be able to subclass the machine class
into a machine::windows and machine::linux class since some functions are
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 like
the 'select' trigger would work, but would it work with relationships as
well? (it seems like before_create or after_create would be called at some
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 class
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@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

[CDBI] Automatic inheritance?
melo_am0 02:37 on 09 Sep 2005

RE: [CDBI] Automatic inheritance?
John Drago 03:06 on 09 Sep 2005

RE: [CDBI] Automatic inheritance?--thanks!
Andrew Melo 13:46 on 09 Sep 2005

Generated at 23:46 on 13 Sep 2005 by mariachi v0.52