class SaveCollectPointsTour

Defined in:

operations/save_collect_points_tour.cr

Constant Summary

ATTRIBUTES = [] of Nil
COLUMN_ATTRIBUTES = [{name: id, type: Int32, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: collectpoint_id, type: CollectPoint::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: tour_id, type: Tour::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: id, type: Int32, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: collectpoint_id, type: CollectPoint::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: tour_id, type: Tour::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}] of Nil
FOREIGN_KEY = "collect_points_tour_id"
OPERATION_NEEDS = [] of Nil

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Instance methods inherited from class CollectPointsTour::SaveOperation

attributes attributes, collectpoint_id collectpoint_id, collectpoint_id=(_value) collectpoint_id=, id id, id=(_value) id=, permitted_params : Hash(String, Array(String) | String) permitted_params, required_attributes required_attributes, set_attributes(id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::PrimaryKeyType | Avram::Nothing = IGNORE) set_attributes, set_collectpoint_id_from_param(_value) set_collectpoint_id_from_param, set_id_from_param(_value) set_id_from_param, set_tour_id_from_param(_value) set_tour_id_from_param, tour_id tour_id, tour_id=(_value) tour_id=

Constructor methods inherited from class CollectPointsTour::SaveOperation

new(record : T, params : Avram::Paramable, id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::PrimaryKeyType | Avram::Nothing = IGNORE)
new(params : Avram::Paramable, id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::PrimaryKeyType | Avram::Nothing = IGNORE)
new(record : T, id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::PrimaryKeyType | Avram::Nothing = IGNORE)
new(id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::PrimaryKeyType | Avram::Nothing = IGNORE)
new

Class methods inherited from class CollectPointsTour::SaveOperation

create(params, id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::PrimaryKeyType | Avram::Nothing = IGNORE, &)
create(id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::PrimaryKeyType | Avram::Nothing = IGNORE, &)
create(params : Hash, **named_args, &)
create
, create!(params, id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::PrimaryKeyType | Avram::Nothing = IGNORE)
create!(id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::PrimaryKeyType | Avram::Nothing = IGNORE)
create!(params : Hash, **named_args)
create!
, update(record : T, with params, id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::PrimaryKeyType | Avram::Nothing = IGNORE, &)
update(record : T, id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::PrimaryKeyType | Avram::Nothing = IGNORE, &)
update(record : T, params : Hash, **named_args, &)
update
, update!(record : T, with params, id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::PrimaryKeyType | Avram::Nothing = IGNORE)
update!(record : T, id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::PrimaryKeyType | Avram::Nothing = IGNORE)
update!(record : T, params : Hash, **named_args)
update!

Macros inherited from class CollectPointsTour::SaveOperation

param_key(key) param_key

Constructor Detail

def self.new(record : T, params : Avram::Paramable, id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::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


def self.new(params : Avram::Paramable, id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::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


def self.new(record : T, id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::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


def self.new(id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::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 Method Detail

def self.create(params, id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::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


def self.create(id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::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


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 : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::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


def self.create!(id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::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


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 : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::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


def self.update(record : T, id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::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


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 : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::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


def self.update!(record : T, id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::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


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

[View source]
def set_attributes(id : Int32 | Avram::Nothing = IGNORE, collectpoint_id : CollectPoint::PrimaryKeyType | Avram::Nothing = IGNORE, tour_id : Tour::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


def tour_id #

[View source]