NAME
EntityModel::Model - base class for model definitions
VERSION
version 0.003
SYNOPSIS
see EntityModel.
DESCRIPTION
see EntityModel.
METHODS
pending_entities
Returns a list of all pending entities for this model.
These will be applied on commit, or cleared on rollback.
rollback
Revert any pending changes for this model.
apply_fields
Apply the field definitions for an entity.
load_model
Populate the entity model from any information we can get from the data source.
update_from
Update this entity model so that it matches the given model.
matches
Returns true if this entity model has identical content to another given model.
read_tables
Virtual method for reading table definitions.
new_entity
Helper method to create a new entity.
add_table
Generate an appropriate EntityModel::Entity for the given table name.
add_entity
Add an EntityModel::Entity to this model.
commit
Apply the actions, starting with the longest names first for removal, and shortest first for update and create.
commit_pending_update
commit_pending_remove
commit_pending_add
Add all pending items, ordering to resolve dependencies as required.
add_field_to_table
DESTROY
Notify when there are pending uncommitted entries.
AUTHOR
Tom Molesworth <cpan@entitymodel.com>
LICENSE
Copyright Tom Molesworth 2008-2011. Licensed under the same terms as Perl itself.