package org.linlinjava.jz.db.domain;

import java.util.ArrayList;
import java.util.Arrays;

public class JzCalllogConsult {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog_consult.id
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog_consult.call_id
     *
     * @mbg.generated
     */
    private Integer callId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog_consult.consult_id
     *
     * @mbg.generated
     */
    private Integer consultId;

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog_consult.call_id
     *
     * @return the value of jz_calllog_consult.call_id
     *
     * @mbg.generated
     */
    public Integer getCallId() {
        return callId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog_consult.call_id
     *
     * @param callId the value for jz_calllog_consult.call_id
     *
     * @mbg.generated
     */
    public void setCallId(Integer callId) {
        this.callId = callId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog_consult.consult_id
     *
     * @return the value of jz_calllog_consult.consult_id
     *
     * @mbg.generated
     */
    public Integer getConsultId() {
        return consultId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog_consult.consult_id
     *
     * @param consultId the value for jz_calllog_consult.consult_id
     *
     * @mbg.generated
     */
    public void setConsultId(Integer consultId) {
        this.consultId = consultId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_calllog_consult
     *
     * @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(", callId=").append(callId);
        sb.append(", consultId=").append(consultId);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_calllog_consult
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JzCalllogConsult other = (JzCalllogConsult) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCallId() == null ? other.getCallId() == null : this.getCallId().equals(other.getCallId()))
            && (this.getConsultId() == null ? other.getConsultId() == null : this.getConsultId().equals(other.getConsultId()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_calllog_consult
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCallId() == null) ? 0 : getCallId().hashCode());
        result = prime * result + ((getConsultId() == null) ? 0 : getConsultId().hashCode());
        return result;
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table jz_calllog_consult
     *
     * @mbg.generated
     */
    public enum Column {
        id("id", "id", "INTEGER", false),
        callId("call_id", "callId", "INTEGER", false),
        consultId("consult_id", "consultId", "INTEGER", false);

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

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

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

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

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

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

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

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

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

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

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_calllog_consult
         *
         * @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 jz_calllog_consult
         *
         * @mbg.generated
         */
        public String desc() {
            return this.getEscapedColumnName() + " DESC";
        }

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

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_calllog_consult
         *
         * @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 jz_calllog_consult
         *
         * @mbg.generated
         */
        public static Column[] all() {
            return Column.values();
        }

        /**
         * This method was generated by MyBatis Generator.
         * This method corresponds to the database table jz_calllog_consult
         *
         * @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 jz_calllog_consult
         *
         * @mbg.generated
         */
        public String getAliasedEscapedColumnName() {
            return this.getEscapedColumnName();
        }
    }
}