结对项目——电子书的字段

电子书的常量字段

String TABLE_NAME = "books";
	String NAME = "name";// 书名
	String PASSWORD = "password";// 密码
	String FILE_PATH = "filePath";// 文件路径
	String LAST_READ_TIME = "lastReadTime";// 最后阅读时间
	String PROGRESS = "progress";// 进度比例
	String BEGIN = "begin";// 当前页码

图书类

private Long id;
	private String name;// 书名
	private String password;// 密码
	private String filePath;// 文件路径
	private Date lastReadTime;// 最后阅读时间
	private int begin = 0;// 从那里开始看书
	private String progress;// 进度比例

	public Book() {

	}
	
	public Book(String name, String filePath, Date lastReadTime, int begin, String progress) {
		this.name = name;
		this.filePath = filePath;
		this.lastReadTime = lastReadTime;
		this.begin = begin;
		this.progress = progress;
	}

	public Long getId() {
		return id;
	}

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

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public Date getLastReadTime() {
		return lastReadTime;
	}

	public void setLastReadTime(Date lastReadTime) {
		this.lastReadTime = lastReadTime;
	}

	public int getBegin() {
		return begin;
	}

	public void setBegin(int begin) {
		this.begin = begin;
	}

	public String getProgress() {
		return progress;
	}

	public void setProgress(String progress) {
		this.progress = progress;
	}

	@Override
	public String toString() {
		return "Book [id=" + id + ", name=" + name + ", password=" + password + ", filePath=" + filePath + ", lastReadTime=" + lastReadTime + ", begin=" + begin + ", progress="
				+ progress + "]";
	}


}
posted @ 2017-06-13 21:16  夜深人静时  阅读(156)  评论(0)    收藏  举报