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


import java.sql.Timestamp;

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

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


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class IpDirectoryRecord extends UpdatableRecordImpl<IpDirectoryRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>public.ip_directory.ip_address</code>. Уникальный
     * IP-адрес
     */
    public void setIpAddress(String value) {
        set(0, value);
    }

    /**
     * Getter for <code>public.ip_directory.ip_address</code>. Уникальный
     * IP-адрес
     */
    public String getIpAddress() {
        return (String) get(0);
    }

    /**
     * Setter for <code>public.ip_directory.created</code>. Дата добавления
     * IP-адреса в справочник
     */
    public void setCreated(Timestamp value) {
        set(1, value);
    }

    /**
     * Getter for <code>public.ip_directory.created</code>. Дата добавления
     * IP-адреса в справочник
     */
    public Timestamp getCreated() {
        return (Timestamp) get(1);
    }

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

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

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

    /**
     * Create a detached IpDirectoryRecord
     */
    public IpDirectoryRecord() {
        super(IpDirectory.IP_DIRECTORY);
    }

    /**
     * Create a detached, initialised IpDirectoryRecord
     */
    public IpDirectoryRecord(String ipAddress, Timestamp created) {
        super(IpDirectory.IP_DIRECTORY);

        setIpAddress(ipAddress);
        setCreated(created);
        resetChangedOnNotNull();
    }
}
