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


    电子书的常量字段

    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 + "]";
    	}
    
    
    }
    
  • 相关阅读:
    Pig Latin-freecodecamp算法题目
    Search and Replace -freecodecamp算法题目
    Where art thou-freecodecamp算法题目
    Roman Numeral Converter-freecodecamp算法题目
    Diff Two Arrays-freecodecamp算法题目
    Asp.Net前台调用后台变量
    ASP.NET获取前端页面的Html标签的值
    echart 设置图例图标形状
    解决tableexport导出到excel中有关中文乱码的问题
    C# Async与Await用法
  • 原文地址:https://www.cnblogs.com/lw0607/p/6991647.html
Copyright © 2020-2023  润新知