/*
 * This file is generated by jOOQ.
 */
package jj.tech.paolu.repository.jooq.tables.records;


import java.time.LocalDateTime;

import jj.tech.paolu.repository.jooq.tables.CurrentG24;

import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record8;
import org.jooq.Row8;
import org.jooq.impl.UpdatableRecordImpl;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class CurrentG24Record extends UpdatableRecordImpl<CurrentG24Record> implements Record8<String, String, String, String, Integer, Integer, LocalDateTime, String> {

    private static final long serialVersionUID = 1L;

    /**
     * Setter for <code>yx.current_g24.id</code>.
     */
    public void setId(String value) {
        set(0, value);
    }

    /**
     * Getter for <code>yx.current_g24.id</code>.
     */
    public String getId() {
        return (String) get(0);
    }

    /**
     * Setter for <code>yx.current_g24.newIssue</code>. 当前期号
     */
    public void setNewissue(String value) {
        set(1, value);
    }

    /**
     * Getter for <code>yx.current_g24.newIssue</code>. 当前期号
     */
    public String getNewissue() {
        return (String) get(1);
    }

    /**
     * Setter for <code>yx.current_g24.issue</code>. 下一期号
     */
    public void setIssue(String value) {
        set(2, value);
    }

    /**
     * Getter for <code>yx.current_g24.issue</code>. 下一期号
     */
    public String getIssue() {
        return (String) get(2);
    }

    /**
     * Setter for <code>yx.current_g24.ball</code>. 开奖号码
     */
    public void setBall(String value) {
        set(3, value);
    }

    /**
     * Getter for <code>yx.current_g24.ball</code>. 开奖号码
     */
    public String getBall() {
        return (String) get(3);
    }

    /**
     * Setter for <code>yx.current_g24.closeTime</code>. 关闭时间
     */
    public void setClosetime(Integer value) {
        set(4, value);
    }

    /**
     * Getter for <code>yx.current_g24.closeTime</code>. 关闭时间
     */
    public Integer getClosetime() {
        return (Integer) get(4);
    }

    /**
     * Setter for <code>yx.current_g24.openTime</code>. 开奖时间
     */
    public void setOpentime(Integer value) {
        set(5, value);
    }

    /**
     * Getter for <code>yx.current_g24.openTime</code>. 开奖时间
     */
    public Integer getOpentime() {
        return (Integer) get(5);
    }

    /**
     * Setter for <code>yx.current_g24.addTime</code>. 提交时间
     */
    public void setAddtime(LocalDateTime value) {
        set(6, value);
    }

    /**
     * Getter for <code>yx.current_g24.addTime</code>. 提交时间
     */
    public LocalDateTime getAddtime() {
        return (LocalDateTime) get(6);
    }

    /**
     * Setter for <code>yx.current_g24.gameID</code>. 游戏ID
     */
    public void setGameid(String value) {
        set(7, value);
    }

    /**
     * Getter for <code>yx.current_g24.gameID</code>. 游戏ID
     */
    public String getGameid() {
        return (String) get(7);
    }

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

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

    // -------------------------------------------------------------------------
    // Record8 type implementation
    // -------------------------------------------------------------------------

    @Override
    public Row8<String, String, String, String, Integer, Integer, LocalDateTime, String> fieldsRow() {
        return (Row8) super.fieldsRow();
    }

    @Override
    public Row8<String, String, String, String, Integer, Integer, LocalDateTime, String> valuesRow() {
        return (Row8) super.valuesRow();
    }

    @Override
    public Field<String> field1() {
        return CurrentG24.CURRENT_G24.ID;
    }

    @Override
    public Field<String> field2() {
        return CurrentG24.CURRENT_G24.NEWISSUE;
    }

    @Override
    public Field<String> field3() {
        return CurrentG24.CURRENT_G24.ISSUE;
    }

    @Override
    public Field<String> field4() {
        return CurrentG24.CURRENT_G24.BALL;
    }

    @Override
    public Field<Integer> field5() {
        return CurrentG24.CURRENT_G24.CLOSETIME;
    }

    @Override
    public Field<Integer> field6() {
        return CurrentG24.CURRENT_G24.OPENTIME;
    }

    @Override
    public Field<LocalDateTime> field7() {
        return CurrentG24.CURRENT_G24.ADDTIME;
    }

    @Override
    public Field<String> field8() {
        return CurrentG24.CURRENT_G24.GAMEID;
    }

    @Override
    public String component1() {
        return getId();
    }

    @Override
    public String component2() {
        return getNewissue();
    }

    @Override
    public String component3() {
        return getIssue();
    }

    @Override
    public String component4() {
        return getBall();
    }

    @Override
    public Integer component5() {
        return getClosetime();
    }

    @Override
    public Integer component6() {
        return getOpentime();
    }

    @Override
    public LocalDateTime component7() {
        return getAddtime();
    }

    @Override
    public String component8() {
        return getGameid();
    }

    @Override
    public String value1() {
        return getId();
    }

    @Override
    public String value2() {
        return getNewissue();
    }

    @Override
    public String value3() {
        return getIssue();
    }

    @Override
    public String value4() {
        return getBall();
    }

    @Override
    public Integer value5() {
        return getClosetime();
    }

    @Override
    public Integer value6() {
        return getOpentime();
    }

    @Override
    public LocalDateTime value7() {
        return getAddtime();
    }

    @Override
    public String value8() {
        return getGameid();
    }

    @Override
    public CurrentG24Record value1(String value) {
        setId(value);
        return this;
    }

    @Override
    public CurrentG24Record value2(String value) {
        setNewissue(value);
        return this;
    }

    @Override
    public CurrentG24Record value3(String value) {
        setIssue(value);
        return this;
    }

    @Override
    public CurrentG24Record value4(String value) {
        setBall(value);
        return this;
    }

    @Override
    public CurrentG24Record value5(Integer value) {
        setClosetime(value);
        return this;
    }

    @Override
    public CurrentG24Record value6(Integer value) {
        setOpentime(value);
        return this;
    }

    @Override
    public CurrentG24Record value7(LocalDateTime value) {
        setAddtime(value);
        return this;
    }

    @Override
    public CurrentG24Record value8(String value) {
        setGameid(value);
        return this;
    }

    @Override
    public CurrentG24Record values(String value1, String value2, String value3, String value4, Integer value5, Integer value6, LocalDateTime value7, String value8) {
        value1(value1);
        value2(value2);
        value3(value3);
        value4(value4);
        value5(value5);
        value6(value6);
        value7(value7);
        value8(value8);
        return this;
    }

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

    /**
     * Create a detached CurrentG24Record
     */
    public CurrentG24Record() {
        super(CurrentG24.CURRENT_G24);
    }

    /**
     * Create a detached, initialised CurrentG24Record
     */
    public CurrentG24Record(String id, String newissue, String issue, String ball, Integer closetime, Integer opentime, LocalDateTime addtime, String gameid) {
        super(CurrentG24.CURRENT_G24);

        setId(id);
        setNewissue(newissue);
        setIssue(issue);
        setBall(ball);
        setClosetime(closetime);
        setOpentime(opentime);
        setAddtime(addtime);
        setGameid(gameid);
        resetChangedOnNotNull();
    }

    /**
     * Create a detached, initialised CurrentG24Record
     */
    public CurrentG24Record(jj.tech.paolu.repository.jooq.tables.pojos.CurrentG24 value) {
        super(CurrentG24.CURRENT_G24);

        if (value != null) {
            setId(value.getId());
            setNewissue(value.getNewissue());
            setIssue(value.getIssue());
            setBall(value.getBall());
            setClosetime(value.getClosetime());
            setOpentime(value.getOpentime());
            setAddtime(value.getAddtime());
            setGameid(value.getGameid());
            resetChangedOnNotNull();
        }
    }
}
