MySql数据对应Java数据类型

废话不多说,直接上货,亲试!通过mybatis自动生成java类!
public class DataToData {
private Byte tinyint;

private Short smallint;

private Integer mediumint;

private Integer int;

private Integer integer;

private Long bigint;

private Boolean bit;

private Double real;

private Double double;

private Float float;

private Long decimal;

private Long numeric;

private String char;

private String varchar;

private Date date;

private Date time;

private Date year;

private Date timestamp;

private Date datetime;

private String tinytext;

private String enum;

private String set;

private Object point;

private Object linestring;

private Object polygon;

private Object multipoint;

private Object multilinestring;

private Object multipolygon;

private Object geometrycollection;

public Byte getTinyint() {
    return tinyint;
}

public void setTinyint(Byte tinyint) {
    this.tinyint = tinyint;
}

public Short getSmallint() {
    return smallint;
}

public void setSmallint(Short smallint) {
    this.smallint = smallint;
}

public Integer getMediumint() {
    return mediumint;
}

public void setMediumint(Integer mediumint) {
    this.mediumint = mediumint;
}

public Integer getInt() {
    return int;
}

public void setInt(Integer int) {
    this.int = int;
}

public Integer getInteger() {
    return integer;
}

public void setInteger(Integer integer) {
    this.integer = integer;
}

public Long getBigint() {
    return bigint;
}

public void setBigint(Long bigint) {
    this.bigint = bigint;
}

public Boolean getBit() {
    return bit;
}

public void setBit(Boolean bit) {
    this.bit = bit;
}

public Double getReal() {
    return real;
}

public void setReal(Double real) {
    this.real = real;
}

public Double getDouble() {
    return double;
}

public void setDouble(Double double) {
    this.double = double;
}

public Float getFloat() {
    return float;
}

public void setFloat(Float float) {
    this.float = float;
}

public Long getDecimal() {
    return decimal;
}

public void setDecimal(Long decimal) {
    this.decimal = decimal;
}

public Long getNumeric() {
    return numeric;
}

public void setNumeric(Long numeric) {
    this.numeric = numeric;
}

public String getChar() {
    return char;
}

public void setChar(String char) {
    this.char = char == null ? null : char.trim();
}

public String getVarchar() {
    return varchar;
}

public void setVarchar(String varchar) {
    this.varchar = varchar == null ? null : varchar.trim();
}

public Date getDate() {
    return date;
}

public void setDate(Date date) {
    this.date = date;
}

public Date getTime() {
    return time;
}

public void setTime(Date time) {
    this.time = time;
}

public Date getYear() {
    return year;
}

public void setYear(Date year) {
    this.year = year;
}

public Date getTimestamp() {
    return timestamp;
}

public void setTimestamp(Date timestamp) {
    this.timestamp = timestamp;
}

public Date getDatetime() {
    return datetime;
}

public void setDatetime(Date datetime) {
    this.datetime = datetime;
}

public String getTinytext() {
    return tinytext;
}

public void setTinytext(String tinytext) {
    this.tinytext = tinytext == null ? null : tinytext.trim();
}

public String getEnum() {
    return enum;
}

public void setEnum(String enum) {
    this.enum = enum == null ? null : enum.trim();
}

public String getSet() {
    return set;
}

public void setSet(String set) {
    this.set = set == null ? null : set.trim();
}

public Object getPoint() {
    return point;
}

public void setPoint(Object point) {
    this.point = point;
}

public Object getLinestring() {
    return linestring;
}

public void setLinestring(Object linestring) {
    this.linestring = linestring;
}

public Object getPolygon() {
    return polygon;
}

public void setPolygon(Object polygon) {
    this.polygon = polygon;
}

public Object getMultipoint() {
    return multipoint;
}

public void setMultipoint(Object multipoint) {
    this.multipoint = multipoint;
}

public Object getMultilinestring() {
    return multilinestring;
}

public void setMultilinestring(Object multilinestring) {
    this.multilinestring = multilinestring;
}

public Object getMultipolygon() {
    return multipolygon;
}

public void setMultipolygon(Object multipolygon) {
    this.multipolygon = multipolygon;
}

public Object getGeometrycollection() {
    return geometrycollection;
}

public void setGeometrycollection(Object geometrycollection) {
    this.geometrycollection = geometrycollection;
}

}

你可能感兴趣的:(mysql)