package org.linlinjava.jz.db.domain;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;

public class HmButlerTaskDict {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_butler_task_dict.id
     *
     * @mbg.generated
     */
    private Long id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_butler_task_dict.task_name
     *
     * @mbg.generated
     */
    private String taskName;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_butler_task_dict.page_path
     *
     * @mbg.generated
     */
    private String pagePath;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_butler_task_dict.is_first
     *
     * @mbg.generated
     */
    private Integer isFirst;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_butler_task_dict.is_week
     *
     * @mbg.generated
     */
    private Integer isWeek;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_butler_task_dict.is_month
     *
     * @mbg.generated
     */
    private Integer isMonth;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_butler_task_dict.is_effective
     *
     * @mbg.generated
     */
    private Integer isEffective;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column hm_butler_task_dict.create_time
     *
     * @mbg.generated
     */
    private LocalDateTime createTime;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_butler_task_dict.id
     *
     * @return the value of hm_butler_task_dict.id
     *
     * @mbg.generated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_butler_task_dict.id
     *
     * @param id the value for hm_butler_task_dict.id
     *
     * @mbg.generated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_butler_task_dict.task_name
     *
     * @return the value of hm_butler_task_dict.task_name
     *
     * @mbg.generated
     */
    public String getTaskName() {
        return taskName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_butler_task_dict.task_name
     *
     * @param taskName the value for hm_butler_task_dict.task_name
     *
     * @mbg.generated
     */
    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_butler_task_dict.page_path
     *
     * @return the value of hm_butler_task_dict.page_path
     *
     * @mbg.generated
     */
    public String getPagePath() {
        return pagePath;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_butler_task_dict.page_path
     *
     * @param pagePath the value for hm_butler_task_dict.page_path
     *
     * @mbg.generated
     */
    public void setPagePath(String pagePath) {
        this.pagePath = pagePath;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_butler_task_dict.is_first
     *
     * @return the value of hm_butler_task_dict.is_first
     *
     * @mbg.generated
     */
    public Integer getIsFirst() {
        return isFirst;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_butler_task_dict.is_first
     *
     * @param isFirst the value for hm_butler_task_dict.is_first
     *
     * @mbg.generated
     */
    public void setIsFirst(Integer isFirst) {
        this.isFirst = isFirst;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_butler_task_dict.is_week
     *
     * @return the value of hm_butler_task_dict.is_week
     *
     * @mbg.generated
     */
    public Integer getIsWeek() {
        return isWeek;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_butler_task_dict.is_week
     *
     * @param isWeek the value for hm_butler_task_dict.is_week
     *
     * @mbg.generated
     */
    public void setIsWeek(Integer isWeek) {
        this.isWeek = isWeek;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_butler_task_dict.is_month
     *
     * @return the value of hm_butler_task_dict.is_month
     *
     * @mbg.generated
     */
    public Integer getIsMonth() {
        return isMonth;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_butler_task_dict.is_month
     *
     * @param isMonth the value for hm_butler_task_dict.is_month
     *
     * @mbg.generated
     */
    public void setIsMonth(Integer isMonth) {
        this.isMonth = isMonth;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_butler_task_dict.is_effective
     *
     * @return the value of hm_butler_task_dict.is_effective
     *
     * @mbg.generated
     */
    public Integer getIsEffective() {
        return isEffective;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_butler_task_dict.is_effective
     *
     * @param isEffective the value for hm_butler_task_dict.is_effective
     *
     * @mbg.generated
     */
    public void setIsEffective(Integer isEffective) {
        this.isEffective = isEffective;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column hm_butler_task_dict.create_time
     *
     * @return the value of hm_butler_task_dict.create_time
     *
     * @mbg.generated
     */
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column hm_butler_task_dict.create_time
     *
     * @param createTime the value for hm_butler_task_dict.create_time
     *
     * @mbg.generated
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_butler_task_dict
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", taskName=").append(taskName);
        sb.append(", pagePath=").append(pagePath);
        sb.append(", isFirst=").append(isFirst);
        sb.append(", isWeek=").append(isWeek);
        sb.append(", isMonth=").append(isMonth);
        sb.append(", isEffective=").append(isEffective);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_butler_task_dict
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HmButlerTaskDict other = (HmButlerTaskDict) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTaskName() == null ? other.getTaskName() == null : this.getTaskName().equals(other.getTaskName()))
            && (this.getPagePath() == null ? other.getPagePath() == null : this.getPagePath().equals(other.getPagePath()))
            && (this.getIsFirst() == null ? other.getIsFirst() == null : this.getIsFirst().equals(other.getIsFirst()))
            && (this.getIsWeek() == null ? other.getIsWeek() == null : this.getIsWeek().equals(other.getIsWeek()))
            && (this.getIsMonth() == null ? other.getIsMonth() == null : this.getIsMonth().equals(other.getIsMonth()))
            && (this.getIsEffective() == null ? other.getIsEffective() == null : this.getIsEffective().equals(other.getIsEffective()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table hm_butler_task_dict
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTaskName() == null) ? 0 : getTaskName().hashCode());
        result = prime * result + ((getPagePath() == null) ? 0 : getPagePath().hashCode());
        result = prime * result + ((getIsFirst() == null) ? 0 : getIsFirst().hashCode());
        result = prime * result + ((getIsWeek() == null) ? 0 : getIsWeek().hashCode());
        result = prime * result + ((getIsMonth() == null) ? 0 : getIsMonth().hashCode());
        result = prime * result + ((getIsEffective() == null) ? 0 : getIsEffective().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table hm_butler_task_dict
     *
     * @mbg.generated
     */
    public enum Column {
        id("id", "id", "BIGINT", false),
        taskName("task_name", "taskName", "VARCHAR", false),
        pagePath("page_path", "pagePath", "VARCHAR", false),
        isFirst("is_first", "isFirst", "INTEGER", false),
        isWeek("is_week", "isWeek", "INTEGER", false),
        isMonth("is_month", "isMonth", "INTEGER", false),
        isEffective("is_effective", "isEffective", "INTEGER", false),
        createTime("create_time", "createTime", "TIMESTAMP", false);

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        private static final String BEGINNING_DELIMITER = "`";

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        private static final String ENDING_DELIMITER = "`";

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        private final String column;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        private final boolean isColumnNameDelimited;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        private final String javaProperty;

        /**
         * This field was generated by MyBatis Generator.
         * This field corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        private final String jdbcType;

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        public String value() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        public String getValue() {
            return this.column;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        public String getJavaProperty() {
            return this.javaProperty;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        public String getJdbcType() {
            return this.jdbcType;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
            this.column = column;
            this.javaProperty = javaProperty;
            this.jdbcType = jdbcType;
            this.isColumnNameDelimited = isColumnNameDelimited;
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        public String desc() {
            return this.getEscapedColumnName() + " DESC";
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        public String asc() {
            return this.getEscapedColumnName() + " ASC";
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        public static Column[] excludes(Column ... excludes) {
            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
            if (excludes != null && excludes.length > 0) {
                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
            }
            return columns.toArray(new Column[]{});
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        public static Column[] all() {
            return Column.values();
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        public String getEscapedColumnName() {
            if (this.isColumnNameDelimited) {
                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
            } else {
                return this.column;
            }
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table hm_butler_task_dict
         *
         * @mbg.generated
         */
        public String getAliasedEscapedColumnName() {
            return this.getEscapedColumnName();
        }
    }
}