plage.java

来自「用xml+swing+jdbc(hsqldb)写的电视广告管理软件 客户定义好」· Java 代码 · 共 94 行

JAVA
94
字号
package dao.model;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.List;

public class Plage {

	@Override
	public String toString() {
		SimpleDateFormat sf=new SimpleDateFormat("hh:mm:ss a");
		String strDebut=sf.format(getDebut());
		return strDebut+" "+getCategorie();
	}


	public int getId() {
		return id;
	}


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


	public int getDuree() {
		return duree;
	}


	public void setDuree(int duree) {
		this.duree = duree;
	}


	public String getCategorie() {
		return categorie;
	}


	public void setCategorie(String categorie) {
		this.categorie = categorie;
	}


	public Timestamp getDebut() {
		return debut;
	}


	public void setDebut(Timestamp debut) {
		this.debut = debut;
	}

	private int id;
	private int duree;
	private String categorie;
	private Timestamp debut;
	private int temprest;



	public int getTemprest() {
		return temprest;
	}


	public void setTemprest(int temprest) {
		this.temprest = temprest;
	}


	public List<Spot> getLesSpots() {
		return lesSpots;
	}


	public void setLesSpots(List<Spot> lesSpots) {
		this.lesSpots = lesSpots;
	}

	List<Spot> lesSpots;

	
//	public void setSpot(Spot s){
//		lesSpots.add(s);
//	}
//	
//	public List<Spot> getSpots(){
//		return lesSpots;
//	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?