Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    Object::Transaction 1.01

    Download button

    No screenshots available
    Downloads: 282  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    David Muir Sharnoff | More programs
    Perl Artistic License / FREE
    May 21st, 2007, 18:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Object::Transaction description

    Object::Transaction is a virtual base class for transactions on files containing serialized hash objects.

    Object::Transaction is a virtual base class for transactions on files containing serialized hash objects.

    SYNOPSIS

    use Object::Transaction;

    transaction($coderef, @codeargs);
    commit();
    abandon();
    $there_is_a_pending_transaction = transaction_pending()

    package Pkg;

    @ISA = qw(Object::Transaction);

    use Object::Transaction;

    $obj = sub new { ... }
    sub file($ref,$id) { ... }

    $obj = load Pkg $id;
    $obj->savelater();
    $obj->save();
    $obj->removelater();
    $obj->remove();
    $obj->commit();
    $obj->uncache();
    $obj->abandon();
    $oldobj = $obj->old();

    $reference = $obj->objectref();
    $obj = $reference->loadref();

    $id = sub id { ... }
    $restart_commit = sub precommit() { }
    @passby = sub presave($old) { ... }
    sub postsave($old,@passby) { ... }
    $newid = sub preload($id) { .... }
    sub postload() { ... }
    sub preremove() { ... }
    sub postremove() { ... }

    Object::Transaction provides transaction support for hash-based objects that are stored one-per-file using Storable. Multiuser access is supported. In the future, serializing methods other than Storable will be supported.

    Object::Transaction is a virtual base class. In order to use it, you must inherit from it and override the new method and the file method.

    Optomistic locking is used: it is possible that a transaction will fail because the data that is is based upon has changed out from under it.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    file transactions | hash objects | Perl module | Object::Transaction | hash | objects

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM