package org.linlinjava.jz.db.domain;

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

public class JzCalllogRecord {

    private  CustomerClient customer;

    public void setCustomer(CustomerClient customer) {
        this.customer = customer;
    }

    public CustomerClient getCustomer() {
        return customer;
    }

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog_record.customer_id
     *
     * @mbg.generated
     */
    private Integer customerId;

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog_record.connected
     *
     * @mbg.generated
     */
    private Boolean connected;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog_record.call_type
     *
     * @mbg.generated
     */
    private String callType;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog_record.call_source
     *
     * @mbg.generated
     */
    private String callSource;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog_record.record_url
     *
     * @mbg.generated
     */
    private String recordUrl;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog_record.record_id
     *
     * @mbg.generated
     */
    private String recordId;

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column jz_calllog_record.create_user
     *
     * @mbg.generated
     */
    private Integer createUser;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog_record.id
     *
     * @return the value of jz_calllog_record.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_record.id
     *
     * @param id the value for jz_calllog_record.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_record.call_id
     *
     * @return the value of jz_calllog_record.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_record.call_id
     *
     * @param callId the value for jz_calllog_record.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_record.customer_id
     *
     * @return the value of jz_calllog_record.customer_id
     *
     * @mbg.generated
     */
    public Integer getCustomerId() {
        return customerId;
    }

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog_record.connected
     *
     * @return the value of jz_calllog_record.connected
     *
     * @mbg.generated
     */
    public Boolean getConnected() {
        return connected;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog_record.connected
     *
     * @param connected the value for jz_calllog_record.connected
     *
     * @mbg.generated
     */
    public void setConnected(Boolean connected) {
        this.connected = connected;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog_record.call_type
     *
     * @return the value of jz_calllog_record.call_type
     *
     * @mbg.generated
     */
    public String getCallType() {
        return callType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog_record.call_type
     *
     * @param callType the value for jz_calllog_record.call_type
     *
     * @mbg.generated
     */
    public void setCallType(String callType) {
        this.callType = callType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog_record.call_source
     *
     * @return the value of jz_calllog_record.call_source
     *
     * @mbg.generated
     */
    public String getCallSource() {
        return callSource;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog_record.call_source
     *
     * @param callSource the value for jz_calllog_record.call_source
     *
     * @mbg.generated
     */
    public void setCallSource(String callSource) {
        this.callSource = callSource;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog_record.record_url
     *
     * @return the value of jz_calllog_record.record_url
     *
     * @mbg.generated
     */
    public String getRecordUrl() {
        return recordUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog_record.record_url
     *
     * @param recordUrl the value for jz_calllog_record.record_url
     *
     * @mbg.generated
     */
    public void setRecordUrl(String recordUrl) {
        this.recordUrl = recordUrl;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog_record.record_id
     *
     * @return the value of jz_calllog_record.record_id
     *
     * @mbg.generated
     */
    public String getRecordId() {
        return recordId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column jz_calllog_record.record_id
     *
     * @param recordId the value for jz_calllog_record.record_id
     *
     * @mbg.generated
     */
    public void setRecordId(String recordId) {
        this.recordId = recordId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog_record.mobile
     *
     * @return the value of jz_calllog_record.mobile
     *
     * @mbg.generated
     */
    public String getMobile() {
        return mobile;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog_record.create_time
     *
     * @return the value of jz_calllog_record.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 jz_calllog_record.create_time
     *
     * @param createTime the value for jz_calllog_record.create_time
     *
     * @mbg.generated
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column jz_calllog_record.create_user
     *
     * @return the value of jz_calllog_record.create_user
     *
     * @mbg.generated
     */
    public Integer getCreateUser() {
        return createUser;
    }

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_calllog_record
     *
     * @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(", customerId=").append(customerId);
        sb.append(", ringingtime=").append(ringingtime);
        sb.append(", talktime=").append(talktime);
        sb.append(", connected=").append(connected);
        sb.append(", callType=").append(callType);
        sb.append(", callSource=").append(callSource);
        sb.append(", recordUrl=").append(recordUrl);
        sb.append(", recordId=").append(recordId);
        sb.append(", mobile=").append(mobile);
        sb.append(", createTime=").append(createTime);
        sb.append(", createUser=").append(createUser);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_calllog_record
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JzCalllogRecord other = (JzCalllogRecord) 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.getCustomerId() == null ? other.getCustomerId() == null : this.getCustomerId().equals(other.getCustomerId()))
            && (this.getRingingtime() == null ? other.getRingingtime() == null : this.getRingingtime().equals(other.getRingingtime()))
            && (this.getTalktime() == null ? other.getTalktime() == null : this.getTalktime().equals(other.getTalktime()))
            && (this.getConnected() == null ? other.getConnected() == null : this.getConnected().equals(other.getConnected()))
            && (this.getCallType() == null ? other.getCallType() == null : this.getCallType().equals(other.getCallType()))
            && (this.getCallSource() == null ? other.getCallSource() == null : this.getCallSource().equals(other.getCallSource()))
            && (this.getRecordUrl() == null ? other.getRecordUrl() == null : this.getRecordUrl().equals(other.getRecordUrl()))
            && (this.getRecordId() == null ? other.getRecordId() == null : this.getRecordId().equals(other.getRecordId()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jz_calllog_record
     *
     * @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 + ((getCustomerId() == null) ? 0 : getCustomerId().hashCode());
        result = prime * result + ((getRingingtime() == null) ? 0 : getRingingtime().hashCode());
        result = prime * result + ((getTalktime() == null) ? 0 : getTalktime().hashCode());
        result = prime * result + ((getConnected() == null) ? 0 : getConnected().hashCode());
        result = prime * result + ((getCallType() == null) ? 0 : getCallType().hashCode());
        result = prime * result + ((getCallSource() == null) ? 0 : getCallSource().hashCode());
        result = prime * result + ((getRecordUrl() == null) ? 0 : getRecordUrl().hashCode());
        result = prime * result + ((getRecordId() == null) ? 0 : getRecordId().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        return result;
    }

    /**
     * This enum was generated by MyBatis Generator.
     * This enum corresponds to the database table jz_calllog_record
     *
     * @mbg.generated
     */
    public enum Column {
        id("id", "id", "INTEGER", false),
        callId("call_id", "callId", "INTEGER", false),
        customerId("customer_id", "customerId", "INTEGER", false),
        ringingtime("ringingtime", "ringingtime", "INTEGER", false),
        talktime("talktime", "talktime", "INTEGER", false),
        connected("connected", "connected", "BIT", false),
        callType("call_type", "callType", "VARCHAR", false),
        callSource("call_source", "callSource", "VARCHAR", false),
        recordUrl("record_url", "recordUrl", "VARCHAR", false),
        recordId("record_id", "recordId", "VARCHAR", false),
        mobile("mobile", "mobile", "VARCHAR", false),
        createTime("create_time", "createTime", "TIMESTAMP", false),
        createUser("create_user", "createUser", "INTEGER", false);

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

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

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

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

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

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

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

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

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

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

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