79
|
1 package IMPL::ORM::Adapter::Generic;
|
|
2
|
|
3 1;
|
|
4
|
|
5 __END__
|
|
6
|
|
7 =pod
|
|
8
|
|
9 =head1 NAME
|
|
10
|
|
11 C<IMPL::ORM::Adapter::Generic> .
|
|
12
|
|
13 =head1 DESCRIPTION
|
|
14
|
|
15 , ,
|
|
16 .
|
|
17
|
|
18 =head1 MEMBERS
|
|
19
|
|
20 =over
|
|
21
|
|
22 =item C<CTOR($object,$hashOptions)>
|
|
23
|
|
24 C<$object>
|
|
25
|
|
26 =item C<[get]object>
|
|
27
|
|
28 , C<undef> .
|
|
29
|
|
30 =item C<[get]isChanged>
|
|
31
|
|
32 .
|
|
33
|
|
34 =item C<[get]isDeleted>
|
|
35
|
|
36 .
|
|
37
|
|
38 =item C<[get]isNew>
|
|
39
|
|
40 .
|
|
41
|
|
42 =item C<[get]initialState>
|
|
43
|
|
44 , C<undef> .
|
|
45
|
|
46 =item C<[get]currentState>
|
|
47
|
|
48 . C<undef> .
|
|
49
|
|
50 =item C<[get,list]history>
|
|
51
|
|
52 . C<IMPL::Object::List>
|
|
53
|
|
54 =item C<SaveChanges>
|
|
55
|
|
56 , .
|
|
57
|
|
58 B<returns> .
|
|
59
|
|
60 =item C<Revert($version)>
|
|
61
|
|
62 .
|
|
63
|
|
64 =item C<Delete>
|
|
65
|
|
66 , C<Commit>.
|
|
67
|
|
68 =item C<Commit>
|
|
69
|
|
70 , .
|
|
71
|
|
72 =back
|
|
73
|
|
74 =head1
|
|
75
|
|
76 =begin code
|
|
77
|
|
78 {
|
|
79 version => 1, # object version
|
|
80 op => STORAGE_UPDATE,
|
|
81 data => {
|
|
82 entity1 => {
|
|
83 field1 => 'value 1'
|
|
84 },
|
|
85 entity2 => {
|
|
86 field2 => 'value 2'
|
|
87 }
|
|
88 }
|
|
89 }
|
|
90
|
|
91 =end code
|
|
92
|
|
93 =head1
|
|
94
|
|
95 =begin code
|
|
96
|
|
97 {
|
|
98 prop_name => [ entity => 'field' ]
|
|
99 }
|
|
100
|
|
101 =end code
|
|
102
|
|
103 =cut |