Pflichtenheftmodels: Manager für alle sortierbaren angelegt
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 30 Jan 2013 10:46:00 +0000 (11:46 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 1 Apr 2014 11:02:23 +0000 (13:02 +0200)
16 files changed:
SL/DB/Manager/RequirementSpecAcceptanceStatus.pm [new file with mode: 0644]
SL/DB/Manager/RequirementSpecComplexity.pm [new file with mode: 0644]
SL/DB/Manager/RequirementSpecItem.pm [new file with mode: 0644]
SL/DB/Manager/RequirementSpecPredefinedText.pm [new file with mode: 0644]
SL/DB/Manager/RequirementSpecRisk.pm [new file with mode: 0644]
SL/DB/Manager/RequirementSpecStatus.pm [new file with mode: 0644]
SL/DB/Manager/RequirementSpecTextBlock.pm [new file with mode: 0644]
SL/DB/Manager/RequirementSpecType.pm [new file with mode: 0644]
SL/DB/RequirementSpecAcceptanceStatus.pm
SL/DB/RequirementSpecComplexity.pm
SL/DB/RequirementSpecItem.pm
SL/DB/RequirementSpecPredefinedText.pm
SL/DB/RequirementSpecRisk.pm
SL/DB/RequirementSpecStatus.pm
SL/DB/RequirementSpecTextBlock.pm
SL/DB/RequirementSpecType.pm

diff --git a/SL/DB/Manager/RequirementSpecAcceptanceStatus.pm b/SL/DB/Manager/RequirementSpecAcceptanceStatus.pm
new file mode 100644 (file)
index 0000000..d3211d8
--- /dev/null
@@ -0,0 +1,23 @@
+package SL::DB::Manager::RequirementSpecAcceptanceStatus;
+
+use strict;
+
+use SL::DB::Helper::Manager;
+use base qw(SL::DB::Helper::Manager);
+
+use SL::DB::Helper::Sorted;
+
+sub object_class { 'SL::DB::RequirementSpecAcceptanceStatus' }
+
+__PACKAGE__->make_manager_methods;
+
+sub _sort_spec {
+  return (
+    default => [ 'position', 1 ],
+    columns => {
+      SIMPLE => 'ALL',
+      map { ( $_ => "lower(requirement_spec_acceptance_statuses.${_})" ) } qw(name description),
+    });
+}
+
+1;
diff --git a/SL/DB/Manager/RequirementSpecComplexity.pm b/SL/DB/Manager/RequirementSpecComplexity.pm
new file mode 100644 (file)
index 0000000..7ad8f41
--- /dev/null
@@ -0,0 +1,23 @@
+package SL::DB::Manager::RequirementSpecComplexity;
+
+use strict;
+
+use SL::DB::Helper::Manager;
+use base qw(SL::DB::Helper::Manager);
+
+use SL::DB::Helper::Sorted;
+
+sub object_class { 'SL::DB::RequirementSpecComplexity' }
+
+__PACKAGE__->make_manager_methods;
+
+sub _sort_spec {
+  return (
+    default => [ 'position', 1 ],
+    columns => {
+      SIMPLE => 'ALL',
+      map { ( $_ => "lower(requirement_spec_complexities.${_})" ) } qw(description),
+    });
+}
+
+1;
diff --git a/SL/DB/Manager/RequirementSpecItem.pm b/SL/DB/Manager/RequirementSpecItem.pm
new file mode 100644 (file)
index 0000000..e515ee4
--- /dev/null
@@ -0,0 +1,23 @@
+package SL::DB::Manager::RequirementSpecItem;
+
+use strict;
+
+use SL::DB::Helper::Manager;
+use base qw(SL::DB::Helper::Manager);
+
+use SL::DB::Helper::Sorted;
+
+sub object_class { 'SL::DB::RequirementSpecItem' }
+
+__PACKAGE__->make_manager_methods;
+
+sub _sort_spec {
+  return (
+    default => [ 'position', 1 ],
+    columns => {
+      SIMPLE => 'ALL',
+      map { ( $_ => "lower(requirement_spec_items.${_})" ) } qw(fb_number title description acceptance_text),
+    });
+}
+
+1;
diff --git a/SL/DB/Manager/RequirementSpecPredefinedText.pm b/SL/DB/Manager/RequirementSpecPredefinedText.pm
new file mode 100644 (file)
index 0000000..65b0e14
--- /dev/null
@@ -0,0 +1,23 @@
+package SL::DB::Manager::RequirementSpecPredefinedText;
+
+use strict;
+
+use SL::DB::Helper::Manager;
+use base qw(SL::DB::Helper::Manager);
+
+use SL::DB::Helper::Sorted;
+
+sub object_class { 'SL::DB::RequirementSpecPredefinedText' }
+
+__PACKAGE__->make_manager_methods;
+
+sub _sort_spec {
+  return (
+    default => [ 'position', 1 ],
+    columns => {
+      SIMPLE => 'ALL',
+      map { ( $_ => "lower(requirement_spec_predefined_texts.${_})" ) } qw(description title),
+    });
+}
+
+1;
diff --git a/SL/DB/Manager/RequirementSpecRisk.pm b/SL/DB/Manager/RequirementSpecRisk.pm
new file mode 100644 (file)
index 0000000..340c6e3
--- /dev/null
@@ -0,0 +1,23 @@
+package SL::DB::Manager::RequirementSpecRisk;
+
+use strict;
+
+use SL::DB::Helper::Manager;
+use base qw(SL::DB::Helper::Manager);
+
+use SL::DB::Helper::Sorted;
+
+sub object_class { 'SL::DB::RequirementSpecRisk' }
+
+__PACKAGE__->make_manager_methods;
+
+sub _sort_spec {
+  return (
+    default => [ 'position', 1 ],
+    columns => {
+      SIMPLE => 'ALL',
+      map { ( $_ => "lower(requirement_spec_risks.${_})" ) } qw(description),
+    });
+}
+
+1;
diff --git a/SL/DB/Manager/RequirementSpecStatus.pm b/SL/DB/Manager/RequirementSpecStatus.pm
new file mode 100644 (file)
index 0000000..c59de05
--- /dev/null
@@ -0,0 +1,23 @@
+package SL::DB::Manager::RequirementSpecStatus;
+
+use strict;
+
+use SL::DB::Helper::Manager;
+use base qw(SL::DB::Helper::Manager);
+
+use SL::DB::Helper::Sorted;
+
+sub object_class { 'SL::DB::RequirementSpecStatus' }
+
+__PACKAGE__->make_manager_methods;
+
+sub _sort_spec {
+  return (
+    default => [ 'position', 1 ],
+    columns => {
+      SIMPLE => 'ALL',
+      map { ( $_ => "lower(requirement_spec_statuses.${_})" ) } qw(name description),
+    });
+}
+
+1;
diff --git a/SL/DB/Manager/RequirementSpecTextBlock.pm b/SL/DB/Manager/RequirementSpecTextBlock.pm
new file mode 100644 (file)
index 0000000..cc192b3
--- /dev/null
@@ -0,0 +1,23 @@
+package SL::DB::Manager::RequirementSpecTextBlock;
+
+use strict;
+
+use SL::DB::Helper::Manager;
+use base qw(SL::DB::Helper::Manager);
+
+use SL::DB::Helper::Sorted;
+
+sub object_class { 'SL::DB::RequirementSpecTextBlock' }
+
+__PACKAGE__->make_manager_methods;
+
+sub _sort_spec {
+  return (
+    default => [ 'position', 1 ],
+    columns => {
+      SIMPLE => 'ALL',
+      map { ( $_ => "lower(requirement_spec_text_blocks.${_})" ) } qw(title text),
+    });
+}
+
+1;
diff --git a/SL/DB/Manager/RequirementSpecType.pm b/SL/DB/Manager/RequirementSpecType.pm
new file mode 100644 (file)
index 0000000..623e59d
--- /dev/null
@@ -0,0 +1,23 @@
+package SL::DB::Manager::RequirementSpecType;
+
+use strict;
+
+use SL::DB::Helper::Manager;
+use base qw(SL::DB::Helper::Manager);
+
+use SL::DB::Helper::Sorted;
+
+sub object_class { 'SL::DB::RequirementSpecType' }
+
+__PACKAGE__->make_manager_methods;
+
+sub _sort_spec {
+  return (
+    default => [ 'position', 1 ],
+    columns => {
+      SIMPLE => 'ALL',
+      map { ( $_ => "lower(requirement_spec_types.${_})" ) } qw(description),
+    });
+}
+
+1;
index c932e47..ad50af8 100644 (file)
@@ -3,12 +3,10 @@ package SL::DB::RequirementSpecAcceptanceStatus;
 use strict;
 
 use SL::DB::MetaSetup::RequirementSpecAcceptanceStatus;
+use SL::DB::Manager::RequirementSpecAcceptanceStatus;
 use SL::DB::Helper::ActsAsList;
 use SL::Locale::String;
 
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
-__PACKAGE__->meta->make_manager_class;
-
 sub validate {
   my ($self) = @_;
 
index eaf7406..279a9c9 100644 (file)
@@ -3,12 +3,10 @@ package SL::DB::RequirementSpecComplexity;
 use strict;
 
 use SL::DB::MetaSetup::RequirementSpecComplexity;
+use SL::DB::Manager::RequirementSpecComplexity;
 use SL::DB::Helper::ActsAsList;
 use SL::Locale::String;
 
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
-__PACKAGE__->meta->make_manager_class;
-
 sub validate {
   my ($self) = @_;
 
index ee71d7c..19f36a9 100644 (file)
@@ -3,8 +3,6 @@ package SL::DB::RequirementSpecItem;
 use strict;
 
 use SL::DB::MetaSetup::RequirementSpecItem;
-
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
-__PACKAGE__->meta->make_manager_class;
+use SL::DB::Manager::RequirementSpecItem;
 
 1;
index 9faddcd..a63a903 100644 (file)
@@ -3,12 +3,10 @@ package SL::DB::RequirementSpecPredefinedText;
 use strict;
 
 use SL::DB::MetaSetup::RequirementSpecPredefinedText;
+use SL::DB::Manager::RequirementSpecPredefinedText;
 use SL::DB::Helper::ActsAsList;
 use SL::Locale::String;
 
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
-__PACKAGE__->meta->make_manager_class;
-
 sub validate {
   my ($self) = @_;
 
index 60409ba..065b9ad 100644 (file)
@@ -3,12 +3,10 @@ package SL::DB::RequirementSpecRisk;
 use strict;
 
 use SL::DB::MetaSetup::RequirementSpecRisk;
+use SL::DB::Manager::RequirementSpecRisk;
 use SL::DB::Helper::ActsAsList;
 use SL::Locale::String;
 
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
-__PACKAGE__->meta->make_manager_class;
-
 sub validate {
   my ($self) = @_;
 
index 1fc6f99..fb808c6 100644 (file)
@@ -3,12 +3,10 @@ package SL::DB::RequirementSpecStatus;
 use strict;
 
 use SL::DB::MetaSetup::RequirementSpecStatus;
+use SL::DB::Manager::RequirementSpecStatus;
 use SL::DB::Helper::ActsAsList;
 use SL::Locale::String;
 
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
-__PACKAGE__->meta->make_manager_class;
-
 sub validate {
   my ($self) = @_;
 
index e417be7..b87166d 100644 (file)
@@ -3,15 +3,13 @@ package SL::DB::RequirementSpecTextBlock;
 use strict;
 
 use SL::DB::MetaSetup::RequirementSpecTextBlock;
+use SL::DB::Manager::RequirementSpecTextBlock;
 # ActsAsList does not support position arguments grouped by other
 # columns, e.g. by the requirement_spec_id in this case. So we cannot
 # use it yet.
 # use SL::DB::Helper::ActsAsList;
 use SL::Locale::String;
 
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
-__PACKAGE__->meta->make_manager_class;
-
 sub validate {
   my ($self) = @_;
 
index 7ff6b32..cf48954 100644 (file)
@@ -3,12 +3,10 @@ package SL::DB::RequirementSpecType;
 use strict;
 
 use SL::DB::MetaSetup::RequirementSpecType;
+use SL::DB::Manager::RequirementSpecType;
 use SL::DB::Helper::ActsAsList;
 use SL::Locale::String;
 
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
-__PACKAGE__->meta->make_manager_class;
-
 sub validate {
   my ($self) = @_;