I would describe pl2sql as an ORM, as the name implies. However, I would describe Class::DBI and the others as an ROM, since it maps database functions (normally implemented in SQL) to class methods. Hence, Class::DBI defines numerous methods to correspond to their database equivalents. For nomenclature, this ORM designation seems somewhat Orwellian- its name has an opposite meaning. In fact, a Class::DBI object is exactly an RDB table represented as a Perl object.
PL2SQL takes the opposite approach. It provides automatic persistence (in an RDB table) of any arbitrary complex object. PL2SQL has two methods: The first assigns the object to a designated table via a unique ID. The second retrieves the object. It also uses a "Universal table definition" which provides reusability. Finally, a single table can be applied to numerous object types, instead of the one-to-one correspondence required of Class::DBI.
In fact, the "Universal table definition" is based on an XML representation of an arbitrary object. I lack the expertise to precisely place this module in the Universal jingo taxonomy, but based on Wikipedia, I would describe it as an XML-enabled XML database.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||