NAME
DBIx::ObjectMapper::Mapper - map the metadata to a class.
DESCRIPTION
SYNOPSIS
my
$mapped_artist
= DBIx::ObjectMapper::Mapper->new(
$meta
->t(
'artist'
) =>
'My::Artist'
,
attributes
=> {
include
=> [],
exclude
=> [],
prefix
=>
''
,
properties
=> +{
col1
=> {
isa
=>
undef
,
lazy
=> 0,
validation
=> 0,
},
}
},
accessors
=> +{
auto
=> 0,
exclude
=> [],
do_replace
=> 0,
},
constructor
=> +{
name
=>
'new'
,
arg_type
=>
'HASHREF'
,
auto
=> 0,
},
default_condition
=> [],
default_value
=> {},
);
METHODS
new(%config)
attributes
accessors
constructor
default_condition
is_initialized
mapping
find
get_unique_condition
create_cache_key
primary_cache_key
unique_cache_keys
AUTHOR
Eisuke Oishi
COPYRIGHT
Copyright 2010 Eisuke Oishi
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.