class CollectionSetting::SaveOperation

Direct Known Subclasses

Defined in:

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}] of Nil
OPERATION_NEEDS = [] of Nil

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

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) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.new(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) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


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) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.new(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) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


Class Method Detail

def self.create(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, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.create(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, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.create(params : Hash, **named_args, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.create!(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) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.create!(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) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.create!(params : Hash, **named_args) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update(record : T, with 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, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update(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, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


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

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update!(record : T, with 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) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update!(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) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


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

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


Macro Detail

macro param_key(key) #

Instance Method Detail

def attributes #

def collection_name #

def collection_name=(_value) #

def created_at #

def created_at=(_value) #

def id #

def id=(_value) #

def institution_code #

def institution_code=(_value) #

def latest_collection_code #

def latest_collection_code=(_value) #

def note #

def note=(_value) #

def permitted_params : Hash(String, Array(String) | String) #

def required_attributes #

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) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def set_collection_name_from_param(_value) #

def set_created_at_from_param(_value) #

def set_id_from_param(_value) #

def set_institution_code_from_param(_value) #

def set_latest_collection_code_from_param(_value) #

def set_note_from_param(_value) #

def set_user_id_from_param(_value) #

def user_id #

def user_id=(_value) #