class DeleteCollectionSetting

Overview

コレクション設定の削除オペレーション

Defined in:

operations/delete_collection_setting.cr

Constant Summary

ATTRIBUTES = [] of Nil
COLUMN_ATTRIBUTES = [{name: id, type: UUID, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: created_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: user_id, type: Int32, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: collection_name, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: institution_code, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: latest_collection_code, type: Int32, nilable: false, autogenerated: false, value: 0, serialized: false, allow_blank: false}, {name: note, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: id, type: UUID, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: created_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: user_id, type: Int32, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: collection_name, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: institution_code, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: latest_collection_code, type: Int32, nilable: false, autogenerated: false, value: 0, serialized: false, allow_blank: false}, {name: note, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}] of Nil
OPERATION_NEEDS = [] of Nil

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Instance methods inherited from class CollectionSetting::DeleteOperation

attributes attributes, collection_name collection_name, collection_name=(_value) collection_name=, created_at created_at, created_at=(_value) created_at=, delete_status : OperationStatus delete_status, delete_status=(delete_status : OperationStatus) delete_status=, id id, id=(_value) id=, institution_code institution_code, institution_code=(_value) institution_code=, latest_collection_code latest_collection_code, latest_collection_code=(_value) latest_collection_code=, note note, note=(_value) note=, params : Avram::Paramable params, permitted_params : Hash(String, Array(String) | String) permitted_params, record : CollectionSetting record, required_attributes required_attributes, set_attributes(id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, collection_name : String | Avram::Nothing = IGNORE, institution_code : String | Avram::Nothing = IGNORE, latest_collection_code : Int32 | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE) set_attributes, set_collection_name_from_param(_value) set_collection_name_from_param, set_created_at_from_param(_value) set_created_at_from_param, set_id_from_param(_value) set_id_from_param, set_institution_code_from_param(_value) set_institution_code_from_param, set_latest_collection_code_from_param(_value) set_latest_collection_code_from_param, set_note_from_param(_value) set_note_from_param, set_user_id_from_param(_value) set_user_id_from_param, user_id user_id, user_id=(_value) user_id=

Constructor methods inherited from class CollectionSetting::DeleteOperation

new(record : T, params : Avram::Paramable, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, collection_name : String | Avram::Nothing = IGNORE, institution_code : String | Avram::Nothing = IGNORE, latest_collection_code : Int32 | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE)
new(record : T, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, collection_name : String | Avram::Nothing = IGNORE, institution_code : String | Avram::Nothing = IGNORE, latest_collection_code : Int32 | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE)
new

Class methods inherited from class CollectionSetting::DeleteOperation

delete(record : T, params, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, collection_name : String | Avram::Nothing = IGNORE, institution_code : String | Avram::Nothing = IGNORE, latest_collection_code : Int32 | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, &)
delete(record : T, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, collection_name : String | Avram::Nothing = IGNORE, institution_code : String | Avram::Nothing = IGNORE, latest_collection_code : Int32 | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, &)
delete(record : T, params : Hash, **named_args, &)
delete
, delete!(record : T, params, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, collection_name : String | Avram::Nothing = IGNORE, institution_code : String | Avram::Nothing = IGNORE, latest_collection_code : Int32 | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE)
delete!(record : T, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, collection_name : String | Avram::Nothing = IGNORE, institution_code : String | Avram::Nothing = IGNORE, latest_collection_code : Int32 | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE)
delete!(record : T, params : Hash, **named_args)
delete!

Macros inherited from class CollectionSetting::DeleteOperation

param_key(key) param_key

Constructor Detail

def self.new(record : T, params : Avram::Paramable, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, collection_name : String | Avram::Nothing = IGNORE, institution_code : String | Avram::Nothing = IGNORE, latest_collection_code : Int32 | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


def self.new(record : T, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, collection_name : String | Avram::Nothing = IGNORE, institution_code : String | Avram::Nothing = IGNORE, latest_collection_code : Int32 | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


Class Method Detail

def self.delete(record : T, params, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, collection_name : String | Avram::Nothing = IGNORE, institution_code : String | Avram::Nothing = IGNORE, latest_collection_code : Int32 | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, &) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


def self.delete(record : T, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, collection_name : String | Avram::Nothing = IGNORE, institution_code : String | Avram::Nothing = IGNORE, latest_collection_code : Int32 | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, &) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


def self.delete(record : T, params : Hash, **named_args, &) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


def self.delete!(record : T, params, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, collection_name : String | Avram::Nothing = IGNORE, institution_code : String | Avram::Nothing = IGNORE, latest_collection_code : Int32 | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


def self.delete!(record : T, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, collection_name : String | Avram::Nothing = IGNORE, institution_code : String | Avram::Nothing = IGNORE, latest_collection_code : Int32 | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


def self.delete!(record : T, params : Hash, **named_args) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


Macro Detail

macro param_key(key) #

コレクション設定の削除オペレーション


Instance Method Detail

def delete_status : OperationStatus #

コレクション設定の削除オペレーション


def delete_status=(delete_status : OperationStatus) #

コレクション設定の削除オペレーション


def params : Avram::Paramable #

コレクション設定の削除オペレーション


def record : CollectionSetting #

コレクション設定の削除オペレーション


def set_attributes(id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, collection_name : String | Avram::Nothing = IGNORE, institution_code : String | Avram::Nothing = IGNORE, latest_collection_code : Int32 | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.