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 + "]";
    	}
    
    
    }
    
  • 相关阅读:
    C# 之 FTPserver中文件上传与下载(一)
    net-snmp-5.7.3配置编译安装
    Linux下编译安装Apache Http Server
    linux回收站设计
    String封装——读时共享,写时复制
    4-python学习——数据操作
    3-python学习——变量
    2-python学习——hello world
    1 python学习——python环境配置
    04-树7. Search in a Binary Search Tree (25)
  • 原文地址:https://www.cnblogs.com/lw0607/p/6991647.html
Copyright © 2011-2022 走看看