NAME
Persistence::Meta::Injection - Persisitence meta definition object.
SYNOPSIS
use Persistence::Meta::Injection;
my $obj = Persistence::Meta::Injection->new;
DESCRIPTION
Represents persistence meta data that is loaded as a persistence unit. (Entitties + ORM mapping)
EXPORT
None
ATTRIBUTES
- entities
- _entities_subquery_columns
- _entities_to_many_relationship
- _entities_to_one_relationship
- orm_files
- entities_files
- sequence_generators
- table_generators
- _orm_mapping
- entity_manager
- cached_version
- file_stats
METHODS
- load_persistence_context
- _store
- load_from_cache
-
Loads injection object from cache
- can_use_cache
-
Returns true if there are not changes in xml files
- _initialise_value_generators
-
Initialises value generators
- _initialise_table_value_generators
- _initialise_subquery_columns
-
Initialise subquery columns
- _initialise_to_one_relationship
-
Initialise to one relationships
- _initialise_to_many_relationship
-
Initialise to manye relationships
- _initialise_relationships
-
Initialises relationshsips Takes relationship type as parameters. Allowed value: 'to_one_relationships', 'to_many_relationships'
- crate_orm_mappings
- create_orm_mapping
-
Creates orm mappings.
- _add_one_to_many_relationship
- _add_to_many_to_many_relationship
- _add_to_one_relationship
- _add_relationship_parameters
- _relationship
-
Returns the relationship object. Takes hash_ref, that will be transformed to the new object parameters.
- _parse_condition
-
Parses condition object to replacase ant occurence of <entity>.<column> to column object.
- has_column
- entity_column
-
Returns entity column
- add_file_stat
-
Adds file modification time
- file_modification_time
SEE ALSO
COPYRIGHT AND LICENSE
The Persistence::Meta::Injection module is free software. You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
AUTHOR
Adrian Witas, <adrian@webapp.strefa.pl</gt>