« Database/Model/Super/AuthoritiesFunctionPermissions.pm
↑ Summary
Database/Model/Super/AuthoritiesFunctionPluginRolePermission.pm »
| 1 | package Daje::Database::Model::Super::AuthoritiesFunctionPluginRole; | ||
| 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::AuthoritiesFunctionPluginRole - Daje db model | ||
| 9 | # | ||
| 10 | # SYNOPSIS | ||
| 11 | # ======== | ||
| 12 | # | ||
| 13 | # | ||
| 14 | # use Daje::Database::Model::Super::AuthoritiesFunctionPluginRole; | ||
| 15 | # | ||
| 16 | # my $table = Daje::Database::Model::Super::AuthoritiesFunctionPluginRole->new(db => $db); | ||
| 17 | # | ||
| 18 | # my $result = $table->load_authorities_function_plugin_role_pkey($self, $authorities_function_plugin_role_pkey); | ||
| 19 | # | ||
| 20 | # my $result = $table->load_authorities_role_fkey($self, $authorities_role_fkey); | ||
| 21 | # | ||
| 22 | # my $result = $table->load_authorities_function_fkey($self, $authorities_function_fkey); | ||
| 23 | # | ||
| 24 | # my $result = $table->load_authorities_plugin_fkey($self, $authorities_plugin_fkey); | ||
| 25 | ## | ||
| 26 | # my $result = $table->insert($self, $data); | ||
| 27 | # | ||
| 28 | # $table->update($self, $data) ; | ||
| 29 | # | ||
| 30 | # | ||
| 31 | # DESCRIPTION | ||
| 32 | # =========== | ||
| 33 | # | ||
| 34 | # Daje::Database::Model::Super::AuthoritiesFunctionPluginRole is a Model super class | ||
| 35 | # | ||
| 36 | # METHODS | ||
| 37 | # ======= | ||
| 38 | # | ||
| 39 | # | ||
| 40 | # LICENSE | ||
| 41 | # ======= | ||
| 42 | # | ||
| 43 | # Copyright (C) janeskil1525. | ||
| 44 | # | ||
| 45 | # This library is free software; you can redistribute it and/or modify | ||
| 46 | # it under the same terms as Perl itself. | ||
| 47 | # | ||
| 48 | # AUTHOR | ||
| 49 | # ====== | ||
| 50 | # | ||
| 51 | # janeskil1525 E<lt>janeskil1525@gmail.com | ||
| 52 | # | ||
| 53 | |||
| 54 | # This file is generated automatically by Daje Tools 2026-03-01 05:33:53. | ||
| 55 | # It will be re-created by Daje Tools again and any changes | ||
| 56 | # will be over written. | ||
| 57 | # | ||
| 58 | # <!-- Autogenerated file 2026-03-01 05:33:53 --> | ||
| 59 | |||
| 60 | our $VERSION = '0.01'; | ||
| 61 | |||
| 62 | has 'fields' => '"authorities_function_plugin_role_pkey", "editnum", "insby", "insdatetime", "modby", "moddatetime", | ||
| 63 | "authorities_role_fkey", | ||
| 64 | "authorities_function_fkey","description", | ||
| 65 | "authorities_plugin_fkey"'; | ||
| 66 | has 'primary_key_name' => "authorities_function_plugin_role_pkey"; | ||
| 67 | has 'table_name' => "authorities_function_plugin_role"; # | ||
| 68 | has 'mandatory' => 'authorities_role_fkey,authorities_function_fkey,authorities_plugin_fkey,'; | ||
| 69 | has 'workflow' => ''; | ||
| 70 | |||
| 71 | async sub load_authorities_role_fkey_p($self, $authorities_role_fkey) { | ||
| 72 | return $self->load_authorities_role_fkey($authorities_role_fkey); | ||
| 73 | } | ||
| 74 | |||
| 75 | sub load_authorities_role_fkey($self, $authorities_role_fkey) { | ||
| 76 | return $self->load_fkey( | ||
| 77 | $self->table_name, $self->fields(), "authorities_role_fkey", $authorities_role_fkey | ||
| 78 | ); | ||
| 79 | } | ||
| 80 | async sub load_authorities_function_fkey_p($self, $authorities_function_fkey) { | ||
| 81 | return $self->load_authorities_function_fkey($authorities_function_fkey); | ||
| 82 | } | ||
| 83 | |||
| 84 | sub load_authorities_function_fkey($self, $authorities_function_fkey) { | ||
| 85 | return $self->load_fkey( | ||
| 86 | $self->table_name, $self->fields(), "authorities_function_fkey", $authorities_function_fkey | ||
| 87 | ); | ||
| 88 | } | ||
| 89 | async sub load_authorities_plugin_fkey_p($self, $authorities_plugin_fkey) { | ||
| 90 | return $self->load_authorities_plugin_fkey($authorities_plugin_fkey); | ||
| 91 | } | ||
| 92 | |||
| 93 | sub load_authorities_plugin_fkey($self, $authorities_plugin_fkey) { | ||
| 94 | return $self->load_fkey( | ||
| 95 | $self->table_name, $self->fields(), "authorities_plugin_fkey", $authorities_plugin_fkey | ||
| 96 | ); | ||
| 97 | } | ||
| 98 | async sub load_authorities_function_plugin_role_pkey_p($self, $authorities_function_plugin_role_pkey) { | ||
| 99 | return $self->load_authorities_function_plugin_role_pkey($authorities_function_plugin_role_pkey); | ||
| 100 | } | ||
| 101 | |||
| 102 | sub load_authorities_function_plugin_role_pkey($self, $authorities_function_plugin_role_pkey) { | ||
| 103 | return $self->load_pk( | ||
| 104 | $self->table_name, $self->fields(), $self->primary_key_name(), $authorities_function_plugin_role_pkey | ||
| 105 | ); | ||
| 106 | } | ||
| 107 | |||
| 108 | sub insert($self, $data) { | ||
| 109 | my $result = $self->SUPER::insert( | ||
| 110 | $self->table_name, $data, $self->primary_key_name | ||
| 111 | ); | ||
| 112 | return $result; | ||
| 113 | } | ||
| 114 | |||
| 115 | sub update($self, $data) { | ||
| 116 | return $self->SUPER::update | ||
| 117 | ( | ||
| 118 | $self->table_name, $data, | ||
| 119 | { | ||
| 120 | $self->primary_key_name() => $data->{$self->primary_key_name()} | ||
| 121 | } | ||
| 122 | ); | ||
| 123 | } | ||
| 124 | |||
| 125 | sub delete($self, $primary_key) { | ||
| 126 | return $self->SUPER::delete($self->table_name, { $self->primary_key_name() => $primary_key}); | ||
| 127 | } | ||
| 128 | 1; | ||
| 129 |