zoukankan      html  css  js  c++  java
  • 结对项目——电子书的字段

    电子书的常量字段

    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 + "]";
    	}
    
    
    }
    
  • 相关阅读:
    关于DOS的常用操作
    <leetcode 第188场周赛>
    大挑战!状压dp!
    41. 缺失的第一个正数
    1095. 山脉数组中查找目标值 (二分查找)
    “人活着就是为了贪心”——贪心算法日
    二分查找
    2020.4.25 leetcode 编程战队赛
    <leetcode c++>221. 最大正方形
    <leetcode c++>面试题51. 数组中的逆序对
  • 原文地址:https://www.cnblogs.com/lw0607/p/6991647.html
Copyright © 2011-2022 走看看