java/nekurak.net-lib/src/cz/frantovo/nekurak/dto/Komentar.java
author František Kučera <franta-hg@frantovo.cz>
Tue, 08 Jun 2010 12:56:46 +0200
changeset 132 1ca0d7fdbe51
parent 130 1bbff3f5181f
child 145 0efefbf5f8b6
permissions -rw-r--r--
Testy komentářů, XML.
franta-hg@127
     1
package cz.frantovo.nekurak.dto;
franta-hg@127
     2
franta-hg@127
     3
import java.util.Date;
franta-hg@127
     4
franta-hg@127
     5
/**
franta-hg@127
     6
 * Komentář k podniku
franta-hg@127
     7
 * @author fiki
franta-hg@127
     8
 */
franta-hg@127
     9
public class Komentar {
franta-hg@127
    10
franta-hg@127
    11
    private int id;
franta-hg@127
    12
    private int podnik;
franta-hg@127
    13
    private String uzivatel;
franta-hg@127
    14
    private Date datum;
franta-hg@127
    15
    private String nadpis;
franta-hg@127
    16
    private String komentar;
franta-hg@130
    17
    private TYP typ;
franta-hg@130
    18
franta-hg@130
    19
    public TYP getTyp() {
franta-hg@130
    20
	return typ;
franta-hg@130
    21
    }
franta-hg@130
    22
franta-hg@130
    23
    public void setTyp(TYP typ) {
franta-hg@130
    24
	this.typ = typ;
franta-hg@130
    25
    }
franta-hg@130
    26
franta-hg@130
    27
    public enum TYP {
franta-hg@130
    28
	PROSTY_TEXT,
franta-hg@130
    29
	XHTML,
franta-hg@130
    30
	TEXY
franta-hg@130
    31
    }
franta-hg@127
    32
franta-hg@127
    33
    public int getId() {
franta-hg@127
    34
	return id;
franta-hg@127
    35
    }
franta-hg@127
    36
franta-hg@127
    37
    public void setId(int id) {
franta-hg@127
    38
	this.id = id;
franta-hg@127
    39
    }
franta-hg@127
    40
franta-hg@127
    41
    public int getPodnik() {
franta-hg@127
    42
	return podnik;
franta-hg@127
    43
    }
franta-hg@127
    44
franta-hg@127
    45
    public void setPodnik(int podnik) {
franta-hg@127
    46
	this.podnik = podnik;
franta-hg@127
    47
    }
franta-hg@127
    48
franta-hg@127
    49
    public String getUzivatel() {
franta-hg@127
    50
	return uzivatel;
franta-hg@127
    51
    }
franta-hg@127
    52
franta-hg@127
    53
    public void setUzivatel(String uzivatel) {
franta-hg@127
    54
	this.uzivatel = uzivatel;
franta-hg@127
    55
    }
franta-hg@127
    56
franta-hg@127
    57
    public Date getDatum() {
franta-hg@127
    58
	return datum;
franta-hg@127
    59
    }
franta-hg@127
    60
franta-hg@127
    61
    public void setDatum(Date datum) {
franta-hg@127
    62
	this.datum = datum;
franta-hg@127
    63
    }
franta-hg@127
    64
franta-hg@127
    65
    public String getNadpis() {
franta-hg@127
    66
	return nadpis;
franta-hg@127
    67
    }
franta-hg@127
    68
franta-hg@127
    69
    public void setNadpis(String nadpis) {
franta-hg@127
    70
	this.nadpis = nadpis;
franta-hg@127
    71
    }
franta-hg@127
    72
franta-hg@127
    73
    public String getKomentar() {
franta-hg@127
    74
	return komentar;
franta-hg@127
    75
    }
franta-hg@127
    76
franta-hg@127
    77
    public void setKomentar(String komentar) {
franta-hg@127
    78
	this.komentar = komentar;
franta-hg@127
    79
    }
franta-hg@127
    80
}