Commit | Line | Data |
b8faba69 |
1 | package Reaction::InterfaceModel::Action::DBIC::ResultSet::DeleteAll; |
2 | |
e739c9a2 |
3 | use Reaction::Types::DBIC 'ResultSet'; |
b8faba69 |
4 | use Reaction::Class; |
5 | use Reaction::InterfaceModel::Action; |
6 | |
81393881 |
7 | use namespace::clean -except => [ qw(meta) ]; |
1c601a76 |
8 | extends 'Reaction::InterfaceModel::Action::DBIC::ResultSet'; |
9 | with 'Reaction::InterfaceModel::Action::Role::SimpleMethodCall'; |
b8faba69 |
10 | |
1c601a76 |
11 | sub _target_model_method { 'delete_all' } |
b8faba69 |
12 | |
81393881 |
13 | __PACKAGE__->meta->make_immutable; |
14 | |
b8faba69 |
15 | 1; |
16 | |
1c601a76 |
17 | __END__; |
b8faba69 |
18 | |
19 | =head1 NAME |
20 | |
21 | Reaction::InterfaceModel::Action::DBIC::ResultSet::DeleteAll |
22 | |
23 | =head1 DESCRIPTION |
24 | |
1c601a76 |
25 | C<DeleteAll> is a subclass of |
26 | L<Action::DBIC::ResultSet|Reaction::InterfaceModel::Action::DBIC::ResultSet> using |
27 | L<Role::SimpleMethodCall|'Reaction::InterfaceModel::Action::Role::SimpleMethodCall> |
28 | to call the C<target_model>'s C<delete_all> method, deleting every item in the |
29 | resultset. |
30 | |
31 | =head1 METHODS |
32 | |
33 | =head2 _target_model_method |
b8faba69 |
34 | |
1c601a76 |
35 | Returns 'delete_all' |
b8faba69 |
36 | |
1c601a76 |
37 | =head1 SEE ALSO |
b8faba69 |
38 | |
1c601a76 |
39 | L<Create|Reaction::InterfaceModel::Action::DBIC::ResultSet::Create>, |
40 | L<Update|Reaction::InterfaceModel::Action::DBIC::Result::Update>, |
41 | L<Delete|Reaction::InterfaceModel::Action::DBIC::Result::Delete>, |
b8faba69 |
42 | |
43 | =head1 AUTHORS |
44 | |
45 | See L<Reaction::Class> for authors. |
46 | |
47 | =head1 LICENSE |
48 | |
49 | See L<Reaction::Class> for the license. |
50 | |
51 | =cut |