NAME
App::Dochazka::REST::Model::Lock - lock data model
VERSION
Version 0.135
SYNOPSIS
use App::Dochazka::REST::Model::Lock;
...
DESCRIPTION
A description of the lock data model follows.
Locks in the database
CREATE TABLE locks (
lid serial PRIMARY KEY,
eid integer REFERENCES Employees (EID),
intvl tsrange NOT NULL,
remark text
)
There is also a stored procedure, fully_locked
, that takes an EID and a tsrange, and returns a boolean value indicating whether or not that period is fully locked for the given employee.
Locks 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
Boilerplate.
Accessor methods
Boilerplate.
lid
Accessor method.
eid
Accessor method.
intvl
Accessor method.
remark
Accessor method.
load_by_lid
Instance method. Given an LID, loads a single lock 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>