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

    Persistent::Oracle 0.50

    Download button

    No screenshots available
    Downloads: 333  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 Winters | More programs
    Perl Artistic License / FREE
    May 19th, 2007, 12:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Persistent::Oracle description

    Persistent::Oracle is a persistent class implemented using an Oracle database.

    Persistent::Oracle is a persistent class implemented using an Oracle database.

    SYNOPSIS

    use Persistent::Oracle;
    use English; # import readable variable names like $EVAL_ERROR

    eval { ### in case an exception is thrown ###

    ### allocate a persistent object ###
    my $emp = new Persistent::Oracle('dbi:Oracle:ORCL',
    'scott', 'tiger', 'emp');

    ### define attributes of the object ###
    $emp->add_attribute('empno', 'ID', 'Number', undef, 4);
    $emp->add_attribute('ename', 'Persistent', 'VarChar', undef, 10);
    $emp->add_attribute('job', 'Persistent', 'VarChar', undef, 9);
    $emp->add_attribute('mgr', 'Persistent', 'Number', undef, 4);
    $emp->add_attribute('hiredate', 'Persistent', 'DateTime', undef);
    $emp->add_attribute('sal', 'Persistent', 'Number', undef, 7, 2);
    $emp->add_attribute('comm', 'Persistent', 'Number', undef, 7, 2);
    $emp->add_attribute('deptno', 'Persistent', 'Number', undef, 2);

    ### query the datastore for some objects ###
    $emp->restore_where(qq{
    sal > 1000 and
    job = 'CLERK' and
    ename LIKE 'M%'
    }, "sal, ename");
    while ($emp->restore_next()) {
    printf "ename = %s, emp# = %s, sal = %s, hiredate = %sn",
    $emp->ename, $emp->empno, $emp->sal, $emp->hiredate;
    }
    };

    if ($EVAL_ERROR) { ### catch those exceptions! ###
    print "An error occurred: $EVAL_ERRORn";
    }

    ABSTRACT

    This is a Persistent class that uses an Oracle database table to store and retrieve objects. This class can be instantiated directly or subclassed. The methods described below are unique to this class, and all other methods that are provided by this class are documented in the Persistent documentation. The Persistent documentation has a very thorough introduction to using the Persistent framework of classes.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    persistent class | Oracle database | Perl module | Persistent::Oracle | persistent | class

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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