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


    电子书的常量字段

    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 + "]";
    	}
    
    
    }
    
  • 相关阅读:
    永无乡「HNOI2012」
    ruby基础知识之 class&module
    Linux命令集锦
    Ruby知识总结-一般变量+操作符+if+数组和哈希
    VMware通过VMnet8共享本地网络
    VMware Workstation 不可恢复错误 (vcpu-0)
    WIN10安装时msxml4.0提示2502、2503解决办法
    C# 委托知识总结
    request.servervariables参数
    判断MS SQLSERVER临时表是否存在
  • 原文地址:https://www.cnblogs.com/lw0607/p/6991647.html
Copyright © 2020-2023  润新知