in reply to SQLMaps
As I understand it, SQL maps merely transforms the results of a hand-written SQL query as an object with some getter/setter methods. You can get the same kind of functionality by doing something like
my $data = $sth->fetchrow_hashref(); my $object = bless $data,Some::Class; package Some::Class; use base 'Class::Accessor'; __PACKAGE__->mk_accessors(qw(result_column_a result_column_b .... );
THe only other thing SQLMaps does is that it allows you to take the SQL code out of the java code (which means you can, and probably should, rewrite the SQL for every database you want to support)
I'm not trying to take the piss out of SQLMaps; Java just forces you to make all of this really difficult. I'm not sure if there is an equivalent module for Perl at the moment. I would like one, as long as it didn't require me to configure it in XML.
|
|---|