Přepravky a první beana
authorFrantišek Kučera <franta-hg@frantovo.cz>
Wed, 11 Feb 2009 17:52:08 +0100
changeset 308480e8e1199
parent 2 5f97d46ac08d
child 4 e3e2a3a4c36a
Přepravky a první beana
java/HrisniciSpameri/src/java/cz/frantovo/hrisniciSpameri/DenniSouhrn.java
java/HrisniciSpameri/src/java/cz/frantovo/hrisniciSpameri/dto/Cil.java
java/HrisniciSpameri/src/java/cz/frantovo/hrisniciSpameri/dto/Souhrn.java
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/HrisniciSpameri/src/java/cz/frantovo/hrisniciSpameri/DenniSouhrn.java	Wed Feb 11 17:52:08 2009 +0100
     1.3 @@ -0,0 +1,12 @@
     1.4 +package cz.frantovo.hrisniciSpameri;
     1.5 +
     1.6 +import java.io.Serializable;
     1.7 +
     1.8 +/**
     1.9 + * Beana zprostředkovávající denní souhrn hříšníků
    1.10 + * @author fiki
    1.11 + */
    1.12 +public class DenniSouhrn implements Serializable {
    1.13 +
    1.14 +    private static final long serialVersionUID = 7932392366943861342L;
    1.15 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/java/HrisniciSpameri/src/java/cz/frantovo/hrisniciSpameri/dto/Cil.java	Wed Feb 11 17:52:08 2009 +0100
     2.3 @@ -0,0 +1,57 @@
     2.4 +package cz.frantovo.hrisniciSpameri.dto;
     2.5 +
     2.6 +import java.io.Serializable;
     2.7 +
     2.8 +/**
     2.9 + * Definice cíle spamování
    2.10 + * @author fiki
    2.11 + */
    2.12 +public class Cil implements Serializable {
    2.13 +
    2.14 +    private static final long serialVersionUID = 3789654950408517499L;
    2.15 +    private int id;
    2.16 +    private String nazev;
    2.17 +    private String url;
    2.18 +    private String selekt;
    2.19 +    private String databaze;
    2.20 +
    2.21 +    public int getId() {
    2.22 +        return id;
    2.23 +    }
    2.24 +
    2.25 +    public void setId(int id) {
    2.26 +        this.id = id;
    2.27 +    }
    2.28 +
    2.29 +    public String getNazev() {
    2.30 +        return nazev;
    2.31 +    }
    2.32 +
    2.33 +    public void setNazev(String nazev) {
    2.34 +        this.nazev = nazev;
    2.35 +    }
    2.36 +
    2.37 +    public String getUrl() {
    2.38 +        return url;
    2.39 +    }
    2.40 +
    2.41 +    public void setUrl(String url) {
    2.42 +        this.url = url;
    2.43 +    }
    2.44 +
    2.45 +    public String getSelekt() {
    2.46 +        return selekt;
    2.47 +    }
    2.48 +
    2.49 +    public void setSelekt(String selekt) {
    2.50 +        this.selekt = selekt;
    2.51 +    }
    2.52 +
    2.53 +    public String getDatabaze() {
    2.54 +        return databaze;
    2.55 +    }
    2.56 +
    2.57 +    public void setDatabaze(String databaze) {
    2.58 +        this.databaze = databaze;
    2.59 +    }
    2.60 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/java/HrisniciSpameri/src/java/cz/frantovo/hrisniciSpameri/dto/Souhrn.java	Wed Feb 11 17:52:08 2009 +0100
     3.3 @@ -0,0 +1,50 @@
     3.4 +package cz.frantovo.hrisniciSpameri.dto;
     3.5 +
     3.6 +import java.io.Serializable;
     3.7 +import java.net.InetAddress;
     3.8 +import java.sql.Date;
     3.9 +
    3.10 +/**
    3.11 + * Jeden záznam denního souhrnu – jeden hříšník pro daný den.
    3.12 + * @author fiki
    3.13 + */
    3.14 +public class Souhrn implements Serializable {
    3.15 +
    3.16 +    private static final long serialVersionUID = 6502435361626487366L;
    3.17 +    private Date den;
    3.18 +    private InetAddress adresa;
    3.19 +    private int pocet;
    3.20 +    private Cil cil;
    3.21 +
    3.22 +    public Date getDen() {
    3.23 +        return den;
    3.24 +    }
    3.25 +
    3.26 +    public void setDen(Date den) {
    3.27 +        this.den = den;
    3.28 +    }
    3.29 +
    3.30 +    public int getPocet() {
    3.31 +        return pocet;
    3.32 +    }
    3.33 +
    3.34 +    public void setPocet(int pocet) {
    3.35 +        this.pocet = pocet;
    3.36 +    }
    3.37 +
    3.38 +    public Cil getCil() {
    3.39 +        return cil;
    3.40 +    }
    3.41 +
    3.42 +    public void setCil(Cil cil) {
    3.43 +        this.cil = cil;
    3.44 +    }
    3.45 +
    3.46 +    public InetAddress getAdresa() {
    3.47 +        return adresa;
    3.48 +    }
    3.49 +
    3.50 +    public void setAdresa(InetAddress adresa) {
    3.51 +        this.adresa = adresa;
    3.52 +    }
    3.53 +}