File: Deleted.pm

package info (click to toggle)
libalzabo-perl 0.87-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,124 kB
  • ctags: 771
  • sloc: perl: 14,590; makefile: 46
file content (49 lines) | stat: -rw-r--r-- 733 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package Alzabo::Runtime::RowState::Deleted;

use strict;

use Alzabo::Runtime;

BEGIN
{
    no strict 'refs';
    foreach my $meth ( qw( select select_hash refresh update delete id_as_string ) )
    {
        *{__PACKAGE__ . "::$meth"} =
            sub { $_[1]->_no_such_row_error };
    }
}

sub is_potential { 0 }

sub is_live { 0 }

sub is_deleted { 1 }


1;

__END__

=head1 NAME

Alzabo::Runtime::RowState::Deleted - Row objects that have been deleted

=head1 SYNOPSIS

  $row->delete;

=head1 DESCRIPTION

This state is used for deleted rows, any row upon which the
C<delete()> method has been called.

=head1 METHODS

See L<C<Alzabo::Runtime::Row>|Alzabo::Runtime::Row>.

=head1 AUTHOR

Dave Rolsky, <autarch@urth.org>

=cut