NAME
App::Dochazka::REST::Model::Interval - Activity intervals data model
VERSION
Version 0.076
SYNOPSIS
use App::Dochazka::REST::Model::Interval;
...
DESCRIPTION
A description of the interval data model follows.
Intervals in the database
The intervals
database table has the following structure:
CREATE TABLE intervals (
int_id serial PRIMARY KEY,
eid integer REFERENCES employees (eid) NOT NULL,
aid integer REFERENCES activities (aid) NOT NULL,
intvl tsrange NOT NULL,
long_desc text,
remark text,
EXCLUDE USING gist (eid WITH =, intvl WITH &&)
);
Intervals in the Perl API
# FIXME: MISSING VERBIAGE
EXPORTS
This module provides the following exports:
METHODS
spawn
Constructor. See Employee.pm->spawn for general comments.
reset
Instance method. Resets object, either to its primal state (no arguments) or to the state given in PARAMHASH.
Accessor methods
Basic accessor methods for all the fields of schedintvl table. These functions return whatever value happens to be associated with the object, with no guarantee that it matches the database.
iid
Accessor method.
eid
Accessor method.
aid
Accessor method.
intvl
Accessor method.
long_desc
Accessor method.
remark
Accessor method.
load_by_iid
Instance method. Given an IID, loads a single interval into the object, rewriting whatever was there before. Returns a status object.
insert
Instance method. Attempts to INSERT a record. Field values are taken from the object. Returns a status object.
update
Instance method. Attempts to UPDATE a record. Field values are taken from the object. Returns a status object.
delete
Instance method. Attempts to DELETE a record. Field values are taken from the object. Returns a status object.
AUTHOR
Nathan Cutler, <presnypreklad@gmail.com>