Perl equivalent to a JavaBean

K

kbass

Is there a module within Perl that has the equivalent functionality of a
JavaBean?
I would like to use this functionality within CGI without having to go using
Java. Thanks!

Kevin
 
M

Malcolm Dew-Jones

kbass ([email protected]) wrote:
: Is there a module within Perl that has the equivalent functionality of a
: JavaBean?
: I would like to use this functionality within CGI without having to go using
: Java. Thanks!

That depends on what you mean by "equivalent functionality". What are
youy trying to accomplish?
 
K

kbass

Malcolm Dew-Jones said:
kbass ([email protected]) wrote:
: Is there a module within Perl that has the equivalent functionality of a
: JavaBean?
: I would like to use this functionality within CGI without having to go using
: Java. Thanks!

That depends on what you mean by "equivalent functionality". What are
youy trying to accomplish?

I am attempting to create a module that would allow me to encapsulate
functionality such as retrieving, updating, inserting and deleting data from
a database table. Before creating this module, I wanted to see if there was
a current module that handled this type of functionality or had some of this
functionality so that I would not have to reinvent the wheel. I could
perform this tasks using a JavaBean with JSP but I was hoping to use Perl
instead.

Kevin
 
D

David Oswald

Did you even look at CPAN or the Perl core modules? Good grief. You just
described practically what Perl does best. See the O'Rielly book,
"Programming the Perl DBI."
 
T

Tintin

kbass said:
I am attempting to create a module that would allow me to encapsulate
functionality such as retrieving, updating, inserting and deleting data from
a database table. Before creating this module, I wanted to see if there was
a current module that handled this type of functionality or had some of this
functionality so that I would not have to reinvent the wheel. I could
perform this tasks using a JavaBean with JSP but I was hoping to use Perl
instead.

It's spelt DBI in Perl.
 
J

Juha Laiho

Tintin said:
It's spelt DBI in Perl.

No, the DBI equivalent in Java would more or less be JDBC.

Bean is a form of class that in its most simplistic form just has a few
instance variables, and accessor methods for them. So, what is called
here is a class that would have accessor methods for set of attributes,
and would use database as the persistence layer for that data.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top