NAME

App::Dochazka::REST::Model::Tempintvls - object class for "scratch schedules"

SYNOPSIS

use App::Dochazka::REST::Model::Tempintvls;

...

METHODS

populate

Populate the tempintvls object (called automatically by 'reset' method which is, in turn, called automatically by 'spawn')

_vet_tsrange

Instance method. Takes a DBIx::Connector object and a tsrange. Checks the tsrange for sanity and populates the tsrange, lower_canon, lower_ymd, upper_canon, upper_ymd attributes. Returns a status object.

The algorithm for generating fillup intervals takes lower and upper date bounds - it does not know about timestamps or tsranges

fillup

Instance method. Takes a DBIx::Connector object, an EID, an AID and a tsrange. Attempts to INSERT records into the tempintvls table according to the tsrange and the employee's schedule. Returns a status object.

update

There is no update method for tempintvls. Instead, delete and re-create.

delete

Instance method. Once we are done with the scratch intervals, they can be deleted. Returns a status object.

FUNCTIONS

_next_tiid

Get next value from the temp_intvl_seq sequence

AUTHOR

Nathan Cutler, <presnypreklad@gmail.com>