Database/Model/Super/AuthoritiesFunctionPluginRolePermission.pm untested

filter: Statementstmt 0.0% 0 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 31 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Daje::Database::Model::Super::AuthoritiesFunctionPluginRolePermission;
2 use Mojo::Base 'Daje::Database::Model::Super::Common::Base', -base, -signatures, -async_await;
3 use v5.42;
4  
5 # NAME
6 # ====
7 #
8 # Daje::Database::Model::Super::AuthoritiesFunctionPluginRolePermission - Daje db model
9 #
10 # SYNOPSIS
11 # ========
12 #
13 #
14 # use Daje::Database::Model::Super::AuthoritiesFunctionPluginRolePermission;
15 #
16 # my $table = Daje::Database::Model::Super::AuthoritiesFunctionPluginRolePermission->new(db => $db);
17 #
18 # my $result = $table->load_authorities_function_plugin_role_permission_pkey($self, $authorities_function_plugin_role_permission_pkey);
19 #
20 # my $result = $table->load_authorities_plugin_fkey($self, $authorities_plugin_fkey);
21 #
22 # my $result = $table->load_authorities_permissions_fkey($self, $authorities_permissions_fkey);
23 #
24 # my $result = $table->load_authorities_function_fkey($self, $authorities_function_fkey);
25 #
26 # my $result = $table->load_authorities_role_fkey($self, $authorities_role_fkey);
27 ##
28 # my $result = $table->insert($self, $data);
29 #
30 # $table->update($self, $data) ;
31 #
32 #
33 # DESCRIPTION
34 # ===========
35 #
36 # Daje::Database::Model::Super::AuthoritiesFunctionPluginRolePermission is a Model super class
37 #
38 # METHODS
39 # =======
40 #
41 #
42 # LICENSE
43 # =======
44 #
45 # Copyright (C) janeskil1525.
46 #
47 # This library is free software; you can redistribute it and/or modify
48 # it under the same terms as Perl itself.
49 #
50 # AUTHOR
51 # ======
52 #
53 # janeskil1525 E<lt>janeskil1525@gmail.com
54 #
55  
56 # This file is generated automatically by Daje Tools 2026-03-01 05:33:51.
57 # It will be re-created by Daje Tools again and any changes
58 # will be over written.
59 #
60 # <!-- Autogenerated file 2026-03-01 05:33:51 -->
61  
62 our $VERSION = '0.01';
63  
64 has 'fields' => '"authorities_function_plugin_role_permission_pkey", "editnum", "insby", "insdatetime", "modby", "moddatetime",
65 "authorities_plugin_fkey",
66 "authorities_permissions_fkey","description",
67 "authorities_function_fkey",
68 "authorities_role_fkey"';
69 has 'primary_key_name' => "authorities_function_plugin_role_permission_pkey";
70 has 'table_name' => "authorities_function_plugin_role_permission"; #
71 has 'mandatory' => 'authorities_plugin_fkey,authorities_permissions_fkey,authorities_function_fkey,authorities_role_fkey,';
72 has 'workflow' => '';
73  
74 async sub load_authorities_plugin_fkey_p($self, $authorities_plugin_fkey) {
75 return $self->load_authorities_plugin_fkey($authorities_plugin_fkey);
76 }
77  
78 sub load_authorities_plugin_fkey($self, $authorities_plugin_fkey) {
79 return $self->load_fkey(
80 $self->table_name, $self->fields(), "authorities_plugin_fkey", $authorities_plugin_fkey
81 );
82 }
83 async sub load_authorities_permissions_fkey_p($self, $authorities_permissions_fkey) {
84 return $self->load_authorities_permissions_fkey($authorities_permissions_fkey);
85 }
86  
87 sub load_authorities_permissions_fkey($self, $authorities_permissions_fkey) {
88 return $self->load_fkey(
89 $self->table_name, $self->fields(), "authorities_permissions_fkey", $authorities_permissions_fkey
90 );
91 }
92 async sub load_authorities_function_fkey_p($self, $authorities_function_fkey) {
93 return $self->load_authorities_function_fkey($authorities_function_fkey);
94 }
95  
96 sub load_authorities_function_fkey($self, $authorities_function_fkey) {
97 return $self->load_fkey(
98 $self->table_name, $self->fields(), "authorities_function_fkey", $authorities_function_fkey
99 );
100 }
101 async sub load_authorities_role_fkey_p($self, $authorities_role_fkey) {
102 return $self->load_authorities_role_fkey($authorities_role_fkey);
103 }
104  
105 sub load_authorities_role_fkey($self, $authorities_role_fkey) {
106 return $self->load_fkey(
107 $self->table_name, $self->fields(), "authorities_role_fkey", $authorities_role_fkey
108 );
109 }
110 async sub load_authorities_function_plugin_role_permission_pkey_p($self, $authorities_function_plugin_role_permission_pkey) {
111 return $self->load_authorities_function_plugin_role_permission_pkey($authorities_function_plugin_role_permission_pkey);
112 }
113  
114 sub load_authorities_function_plugin_role_permission_pkey($self, $authorities_function_plugin_role_permission_pkey) {
115 return $self->load_pk(
116 $self->table_name, $self->fields(), $self->primary_key_name(), $authorities_function_plugin_role_permission_pkey
117 );
118 }
119  
120 sub insert($self, $data) {
121 my $result = $self->SUPER::insert(
122 $self->table_name, $data, $self->primary_key_name
123 );
124 return $result;
125 }
126  
127 sub update($self, $data) {
128 return $self->SUPER::update
129 (
130 $self->table_name, $data,
131 {
132 $self->primary_key_name() => $data->{$self->primary_key_name()}
133 }
134 );
135 }
136  
137 sub delete($self, $primary_key) {
138 return $self->SUPER::delete($self->table_name, { $self->primary_key_name() => $primary_key});
139 }
140 1;
141