class

SpecimenLabelLabelSpecimen::SaveOperation

Inherits Avram::SaveOperation < Avram::AddColumnAttributes < Avram::Upsert < Avram::InheritColumnAttributes < Avram::MarkAsFailed < Avram::NestedSaveOperation < Avram::DatabaseValidations < Avram::Callbacks < Avram::NeedyInitializerAndSaveMethods < Avram::ParamKeyOverride < Avram::OperationErrors < Avram::Validations < Avram::DefineAttribute < Reference < Object

Constants

ATTRIBUTES = [] of Nil
COLUMN_ATTRIBUTES = [{name: id, type: Int32, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: specimen_id, type: Specimen::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: specimenlabel_id, type: SpecimenLabel::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}] of Nil
OPERATION_NEEDS = [] of Nil

Constructors

new(record : T, params : Avram::Paramable, id : Int32 | Avram::Nothing = IGNORE, specimen_id : Specimen::PrimaryKeyType | Avram::Nothing = IGNORE, specimenlabel_id : SpecimenLabel::PrimaryKeyType | 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

new(params : Avram::Paramable, id : Int32 | Avram::Nothing = IGNORE, specimen_id : Specimen::PrimaryKeyType | Avram::Nothing = IGNORE, specimenlabel_id : SpecimenLabel::PrimaryKeyType | 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

new(record : T, id : Int32 | Avram::Nothing = IGNORE, specimen_id : Specimen::PrimaryKeyType | Avram::Nothing = IGNORE, specimenlabel_id : SpecimenLabel::PrimaryKeyType | 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

new(id : Int32 | Avram::Nothing = IGNORE, specimen_id : Specimen::PrimaryKeyType | Avram::Nothing = IGNORE, specimenlabel_id : SpecimenLabel::PrimaryKeyType | 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 methods

create(params, id : Int32 | Avram::Nothing = IGNORE, specimen_id : Specimen::PrimaryKeyType | Avram::Nothing = IGNORE, specimenlabel_id : SpecimenLabel::PrimaryKeyType | 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

create(id : Int32 | Avram::Nothing = IGNORE, specimen_id : Specimen::PrimaryKeyType | Avram::Nothing = IGNORE, specimenlabel_id : SpecimenLabel::PrimaryKeyType | 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

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

create!(params, id : Int32 | Avram::Nothing = IGNORE, specimen_id : Specimen::PrimaryKeyType | Avram::Nothing = IGNORE, specimenlabel_id : SpecimenLabel::PrimaryKeyType | 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

create!(id : Int32 | Avram::Nothing = IGNORE, specimen_id : Specimen::PrimaryKeyType | Avram::Nothing = IGNORE, specimenlabel_id : SpecimenLabel::PrimaryKeyType | 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

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

update(record : T, with params, id : Int32 | Avram::Nothing = IGNORE, specimen_id : Specimen::PrimaryKeyType | Avram::Nothing = IGNORE, specimenlabel_id : SpecimenLabel::PrimaryKeyType | 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

update(record : T, id : Int32 | Avram::Nothing = IGNORE, specimen_id : Specimen::PrimaryKeyType | Avram::Nothing = IGNORE, specimenlabel_id : SpecimenLabel::PrimaryKeyType | 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

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

update!(record : T, with params, id : Int32 | Avram::Nothing = IGNORE, specimen_id : Specimen::PrimaryKeyType | Avram::Nothing = IGNORE, specimenlabel_id : SpecimenLabel::PrimaryKeyType | 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

update!(record : T, id : Int32 | Avram::Nothing = IGNORE, specimen_id : Specimen::PrimaryKeyType | Avram::Nothing = IGNORE, specimenlabel_id : SpecimenLabel::PrimaryKeyType | 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

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

Instance methods

attributes
id
id=(_value)
permitted_params
required_attributes
set_attributes(id : Int32 | Avram::Nothing = IGNORE, specimen_id : Specimen::PrimaryKeyType | Avram::Nothing = IGNORE, specimenlabel_id : SpecimenLabel::PrimaryKeyType | 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

set_id_from_param(_value)
set_specimen_id_from_param(_value)
set_specimenlabel_id_from_param(_value)
specimen_id
specimen_id=(_value)
specimenlabel_id
specimenlabel_id=(_value)

Macros

param_key(key)