NAME

EntityModel::Storage - backend storage interface for EntityModel

VERSION

version 0.001

SYNOPSIS

See EntityModel.

DESCRIPTION

See EntityModel.

METHODS

register

Register with EntityModel so that callbacks trigger when further definitions are loaded/processed.

read

Reads the data for the given entity and returns hashref with the appropriate data.

Parameters:

create

Creates new entry for the given EntityModel::Entity.

Parameters:

store

Stores data to the given entity and ID.

Parameters:

remove

Removes given ID from storage.

Parameters:

find

Find some entities that match the spec.

adjacent

Returns the previous and next element for the given ID.

prev

Returns previous element for the given ID.

next

Returns next element for the given ID.

outer

Returns first and last IDs for the given entity.

first

Returns first active ID for the given entity.

last

Returns last active ID for the given entity.

transaction_start

Mark the start of a transaction.

transaction_rollback

Roll back a transaction.

transaction_commit

Commit this transaction to storage - makes everything done within the transaction permanent (or at least to the level the storage class supports permanence).

transaction_end

Release the transaction on completion.

AUTHOR

Tom Molesworth <cpan@entitymodel.com>

LICENSE

Copyright Tom Molesworth 2008-2011. Licensed under the same terms as Perl itself.