--- /dev/null
+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;
--- /dev/null
+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;
--- /dev/null
+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;
--- /dev/null
+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;
--- /dev/null
+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;
--- /dev/null
+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;
--- /dev/null
+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;
--- /dev/null
+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;
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) = @_;
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) = @_;
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;
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) = @_;
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) = @_;
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) = @_;
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) = @_;
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) = @_;