Daje-Plugin-Authorities

 view release on metacpan or  search on metacpan

lib/Daje/Database/Model/Super/AuthoritiesRoleFunction.pm  view on Meta::CPAN

# This library is free software; you can redistribute it and/or modify
# it under the same terms as Perl itself.
#
# AUTHOR
# ======
#
# janeskil1525 E<lt>janeskil1525@gmail.com
#

# This file is generated automatically by Daje Tools 2026-02-12 15:52:34.
# It will be re-created by Daje Tools again and any changes
# will be over written.
#
# <!-- Autogenerated file 2026-02-12 15:52:34 -->

our $VERSION = '0.01';

has 'fields' => '"authorities_role_function_pkey", "editnum", "insby", "insdatetime", "modby", "moddatetime",
"authorities_function_fkey",
"authorities_role_fkey"';
has 'primary_key_name' => "authorities_role_function_pkey";
has 'table_name' => "authorities_role_function";
has 'mandatory' => 'authorities_function_fkey,authorities_role_fkey,';
has 'workflow' => '';

async sub load_authorities_function_fkey_p($self, $authorities_function_fkey) {
    return $self->load_authorities_function_fkey($authorities_function_fkey);
}

sub load_authorities_function_fkey($self, $authorities_function_fkey) {
    return $self->load_fkey(
        $self->table_name, $self->fields(), "authorities_function_fkey", $authorities_function_fkey
    );
}
async sub load_authorities_role_fkey_p($self, $authorities_role_fkey) {
    return $self->load_authorities_role_fkey($authorities_role_fkey);
}

sub load_authorities_role_fkey($self, $authorities_role_fkey) {
    return $self->load_fkey(
        $self->table_name, $self->fields(), "authorities_role_fkey", $authorities_role_fkey
    );
}
async sub load_authorities_role_function_pkey_p($self, $authorities_role_function_pkey) {
    return $self->load_authorities_role_function_pkey($authorities_role_function_pkey);
}

sub load_authorities_role_function_pkey($self, $authorities_role_function_pkey) {
    return $self->load_pk(
        $self->table_name, $self->fields(), $self->primary_key_name(), $authorities_role_function_pkey
    );
}

sub insert($self, $data) {
    my $result = $self->SUPER::insert(
        $self->table_name, $data, $self->primary_key_name
    );
    return $result;
}

sub update($self, $data) {
    return $self->SUPER::update
    (
        $self->table_name, $data,
            {
                $self->primary_key_name() => $data->{$self->primary_key_name()}
            }
    );
}

sub delete($self, $primary_key) {
    return $self->SUPER::delete($self->table_name, { $self->primary_key_name() => $primary_key});
}
1;



( run in 0.673 second using v1.01-cache-2.11-cpan-39bf76dae61 )