package com.jzdsh.auto.model.base;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.IBean;

/**
 * Generated by JFinal, do not modify this file.
 */
@SuppressWarnings({"serial", "unchecked"})
public abstract class BaseCarSedan<M extends BaseCarSedan<M>> extends Model<M> implements IBean {

	/**
	 * 表名
	 */
	public static final String TableName = "car_sedan";

	/**
	 * select fields from tablename 根据查询字段自动构建select 语句
	 */
	public static String SelectFrom(String fields){
		return String.format("select %s from %s ",fields,TableName);
	}



	/**
	 * 轿车
	 */
	public M setId(java.lang.Integer id) {
		set("id", id);
		return (M)this;
	}
	
	/**
	 * 轿车
	 */
	public java.lang.Integer getId() {
		return getInt("id");
	}

	/**
	 * 国别
	 */
	public M setCountry(java.lang.String country) {
		set("country", country);
		return (M)this;
	}
	
	/**
	 * 国别
	 */
	public java.lang.String getCountry() {
		return getStr("country");
	}

	/**
	 * 厂家
	 */
	public M setFactory(java.lang.String factory) {
		set("factory", factory);
		return (M)this;
	}
	
	/**
	 * 厂家
	 */
	public java.lang.String getFactory() {
		return getStr("factory");
	}

	/**
	 * 品牌
	 */
	public M setBrand(java.lang.String brand) {
		set("brand", brand);
		return (M)this;
	}
	
	/**
	 * 品牌
	 */
	public java.lang.String getBrand() {
		return getStr("brand");
	}

	/**
	 * 车型
	 */
	public M setSeries(java.lang.String series) {
		set("series", series);
		return (M)this;
	}
	
	/**
	 * 车型
	 */
	public java.lang.String getSeries() {
		return getStr("series");
	}

	/**
	 * 首字母
	 */
	public M setInitials(java.lang.String initials) {
		set("initials", initials);
		return (M)this;
	}
	
	/**
	 * 首字母
	 */
	public java.lang.String getInitials() {
		return getStr("initials");
	}

	/**
	 * 添加时间
	 */
	public M setAddtime(java.util.Date addtime) {
		set("addtime", addtime);
		return (M)this;
	}
	
	/**
	 * 添加时间
	 */
	public java.util.Date getAddtime() {
		return get("addtime");
	}

	/**
	 * 年款
	 */
	public M setYears(java.lang.String years) {
		set("years", years);
		return (M)this;
	}
	
	/**
	 * 年款
	 */
	public java.lang.String getYears() {
		return getStr("years");
	}

	/**
	 * 力洋ID
	 */
	public M setMiKey(java.lang.String miKey) {
		set("mi_key", miKey);
		return (M)this;
	}
	
	/**
	 * 力洋ID
	 */
	public java.lang.String getMiKey() {
		return getStr("mi_key");
	}

	/**
	 * 销售名称
	 */
	public M setSalename(java.lang.String salename) {
		set("salename", salename);
		return (M)this;
	}
	
	/**
	 * 销售名称
	 */
	public java.lang.String getSalename() {
		return getStr("salename");
	}

}
