package com.test;
|
|
import java.io.Serializable;
|
import java.sql.Timestamp;
|
import java.util.Date;
|
|
public class DataObject implements Serializable{
|
|
|
public DataObject(
|
String name,
|
int age,
|
long l,
|
double doub,
|
Date date,
|
Timestamp timeTemp,
|
float f,
|
char c,
|
boolean flag,
|
short s
|
) {
|
this.name=name;
|
this.age=age;
|
this.l=l;
|
this.doub=doub;
|
this.date=date;
|
this.timeTemp=timeTemp;
|
this.f=f;
|
this.c=c;
|
this.flag=flag;
|
this.s=s;
|
}
|
|
private String name;
|
|
private int age;
|
|
private Long l;
|
|
private Double doub;
|
|
private Date date;
|
|
private Timestamp timeTemp;
|
|
private float f;
|
|
private char c;
|
|
private boolean flag;
|
|
private short s;
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public int getAge() {
|
return age;
|
}
|
|
public void setAge(int age) {
|
this.age = age;
|
}
|
|
public Long getL() {
|
return l;
|
}
|
|
public void setL(Long l) {
|
this.l = l;
|
}
|
|
public Double getDoub() {
|
return doub;
|
}
|
|
public void setDoub(Double doub) {
|
this.doub = doub;
|
}
|
|
public Date getDate() {
|
return date;
|
}
|
|
public void setDate(Date date) {
|
this.date = date;
|
}
|
|
public Timestamp getTimeTemp() {
|
return timeTemp;
|
}
|
|
public void setTimeTemp(Timestamp timeTemp) {
|
this.timeTemp = timeTemp;
|
}
|
|
public float getF() {
|
return f;
|
}
|
|
public void setF(float f) {
|
this.f = f;
|
}
|
|
public char getC() {
|
return c;
|
}
|
|
public void setC(char c) {
|
this.c = c;
|
}
|
|
public boolean isFlag() {
|
return flag;
|
}
|
|
public void setFlag(boolean flag) {
|
this.flag = flag;
|
}
|
|
public short getS() {
|
return s;
|
}
|
|
public void setS(short s) {
|
this.s = s;
|
}
|
|
|
|
}
|