/*
 * This file is generated by jOOQ.
 */
package ru.micord.ervu.account_applications.db_beans.public_.tables.records;


import org.jooq.Record1;
import org.jooq.impl.UpdatableRecordImpl;

import ru.micord.ervu.account_applications.db_beans.public_.tables.LinkUserApplicationIpAddress;


/**
 * Таблица связи заявок и ip адрессов пользователя
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class LinkUserApplicationIpAddressRecord extends UpdatableRecordImpl<LinkUserApplicationIpAddressRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for
     * <code>public.link_user_application_ip_address.link_user_application_ip_address_id</code>.
     */
    public void setLinkUserApplicationIpAddressId(Long value) {
        set(0, value);
    }

    /**
     * Getter for
     * <code>public.link_user_application_ip_address.link_user_application_ip_address_id</code>.
     */
    public Long getLinkUserApplicationIpAddressId() {
        return (Long) get(0);
    }

    /**
     * Setter for
     * <code>public.link_user_application_ip_address.user_application_list_id</code>.
     * Идентификатор списка заявок пользователя
     */
    public void setUserApplicationListId(Long value) {
        set(1, value);
    }

    /**
     * Getter for
     * <code>public.link_user_application_ip_address.user_application_list_id</code>.
     * Идентификатор списка заявок пользователя
     */
    public Long getUserApplicationListId() {
        return (Long) get(1);
    }

    /**
     * Setter for
     * <code>public.link_user_application_ip_address.ip_address</code>. ip
     * адресс
     */
    public void setIpAddress(String value) {
        set(2, value);
    }

    /**
     * Getter for
     * <code>public.link_user_application_ip_address.ip_address</code>. ip
     * адресс
     */
    public String getIpAddress() {
        return (String) get(2);
    }

    // -------------------------------------------------------------------------
    // Primary key information
    // -------------------------------------------------------------------------

    @Override
    public Record1<Long> key() {
        return (Record1) super.key();
    }

    // -------------------------------------------------------------------------
    // Constructors
    // -------------------------------------------------------------------------

    /**
     * Create a detached LinkUserApplicationIpAddressRecord
     */
    public LinkUserApplicationIpAddressRecord() {
        super(LinkUserApplicationIpAddress.LINK_USER_APPLICATION_IP_ADDRESS);
    }

    /**
     * Create a detached, initialised LinkUserApplicationIpAddressRecord
     */
    public LinkUserApplicationIpAddressRecord(Long linkUserApplicationIpAddressId, Long userApplicationListId, String ipAddress) {
        super(LinkUserApplicationIpAddress.LINK_USER_APPLICATION_IP_ADDRESS);

        setLinkUserApplicationIpAddressId(linkUserApplicationIpAddressId);
        setUserApplicationListId(userApplicationListId);
        setIpAddress(ipAddress);
        resetChangedOnNotNull();
    }
}
