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:
entity - EntityModel::Entity
id - ID to read data from
create
Creates new entry for the given EntityModel::Entity.
Parameters:
entity - EntityModel::Entity
data - actual data values
store
Stores data to the given entity and ID.
Parameters:
entity - EntityModel::Entity
id - ID to store data to
data - actual data values
remove
Removes given ID from storage.
Parameters:
entity - EntityModel::Entity
id - ID to store data to
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.