All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mycomm.dao.dao4comm.bean.AnnoTest Maven / Gradle / Ivy

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycomm.dao.dao4comm.bean;

import com.mycomm.IProtocol.sql.annotation.MyColumn;
import com.mycomm.IProtocol.sql.annotation.MyId;
import com.mycomm.IProtocol.sql.annotation.MyTable;
import com.mycomm.IProtocol.sql.annotation.UniversalDBColumType;
import java.util.Date;

/**
 *
 * @author jw362j
 */
@MyTable
public class AnnoTest {

    /**
     *
     * JShort(""), JFloat(""), JDouble(""), JBoolen(""),
     *
     * @param field
     * @return
     */
    @MyId
    private long id;
    @MyColumn(ColumnType = UniversalDBColumType.DBColumVarChar128)
    private String theName;

    @MyColumn
    private int age;

    @MyColumn
    private boolean sex;
    @MyColumn
    private byte b;
    @MyColumn
    private short s;
    @MyColumn
    private float f;
    @MyColumn
    private double d;

    @MyColumn
    private Date de;   
   

    public AnnoTest() {
    }

    public AnnoTest(String theName, int age, boolean sex, byte b, short s, float f, double d, Date de) {
        this.theName = theName;
        this.age = age;
        this.sex = sex;
        this.b = b;
        this.s = s;
        this.f = f;
        this.d = d;
        this.de = de;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTheName() {
        return theName;
    }

    public void setTheName(String theName) {
        this.theName = theName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public byte getB() {
        return b;
    }

    public void setB(byte b) {
        this.b = b;
    }

    public short getS() {
        return s;
    }

    public void setS(short s) {
        this.s = s;
    }

    public float getF() {
        return f;
    }

    public void setF(float f) {
        this.f = f;
    }

    public double getD() {
        return d;
    }

    public void setD(double d) {
        this.d = d;
    }

    public Date getDe() {
        return de;
    }

    public void setDe(Date de) {
        this.de = de;
    }

    @Override
    public String toString() {
        return "AnnoTest{" + "id=" + id + ", theName=" + theName + ", age=" + age + ", sex=" + sex + ", b=" + b + ", s=" + s + ", f=" + f + ", d=" + d + ", de=" + de + '}';
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy