annotate Lib/IMPL/SQL/Schema/Traits.pm @ 163:6ce1f052b90a

temp commit
author wizard
date Tue, 15 Mar 2011 02:32:42 +0300
parents 16ada169ca75
children eb3e9861a761
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
1 package IMPL::SQL::Traits;
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
2 use strict;
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
3 use IMPL::_core::version;
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
4 use IMPL::Exception();
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
5
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
6 use base qw(IMPL::Object IMPL::Object::Autofill);
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
7
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
8 # this is a base class for all table traits
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
9 package IMPL::SQL::Traits::Table;
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
10
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
11 our @ISA = qw(IMPL::SQL::Traits);
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
12
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
13 use IMPL::Class::Property;
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
14
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
15 BEGIN {
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
16 public property tableName => prop_all;
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
17 }
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
18
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
19 sub verify {
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
20 my ($this, $schema) = @_;
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
21 }
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
22
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
23 package IMPL::SQL::Traits::Table::Create;
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
24
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
25 our @ISA = qw(IMPL::SQL::Traits::Table);
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
26
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
27 package IMPL::SQL::Traits::Table::Drop;
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
28
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
29 our @ISA = qw(IMPL::SQL::Traits::Table);
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
30
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
31 package IMPL::SQL::Traits::Table::AlterAttributes;
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
32
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
33 our @ISA = qw(IMPL::SQL::Traits::Table);
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
34
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
35 package IMPL::SQL::Traits::Table::AlterName;
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
36
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
37 our @ISA = qw(IMPL::SQL::Traits::Table);
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
38
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
39
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
40
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
41 package IMPL::SQL::Traits::Column;
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
42
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
43 our @ISA = qw(SQL::IMPL::Traits);
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
44
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
45 package IMPL::SQL::Traits::Column::Create;
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
46
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
47 our @ISA = qw(IMPL::SQL::Traits::Column);
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
48
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
49 package IMPL::SQL::Traits::Column::Drop;
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
50
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
51 our @ISA = qw(IMPL::SQL::Traits::Column);
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
52
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
53 package IMPL::SQL::Traits::Column::Alter;
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
54
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
55 our @ISA = qw(IMPL::SQL::Traits::Column);
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
56
49
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
57
16ada169ca75 migrating to the Eclipse IDE
wizard@linux-odin.local
parents: 44
diff changeset
58 1;
163
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
59
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
60 __END__
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
61
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
62 =pod
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
63
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
64 =head1 NAME
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
65
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
66 C<IMPL::SQL::Traits> - Операции над объектками SQL схемы.
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
67
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
68 =head1 DESCRIPTION
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
69
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
70 Изменения схемы могу быть представлены в виде последовательности примитивных операций.
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
71
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
72
6ce1f052b90a temp commit
wizard
parents: 49
diff changeset
73 =cut