author | František Kučera <franta-hg@frantovo.cz> |
Sun, 01 Mar 2009 13:04:10 +0100 | |
changeset 40 | fd29fd5a8e29 |
parent 4 | e3e2a3a4c36a |
permissions | -rw-r--r-- |
franta-hg@3 | 1 |
package cz.frantovo.hrisniciSpameri.dto; |
franta-hg@3 | 2 |
|
franta-hg@3 | 3 |
import java.io.Serializable; |
franta-hg@3 | 4 |
|
franta-hg@3 | 5 |
/** |
franta-hg@3 | 6 |
* Definice cíle spamování |
franta-hg@3 | 7 |
* @author fiki |
franta-hg@3 | 8 |
*/ |
franta-hg@3 | 9 |
public class Cil implements Serializable { |
franta-hg@3 | 10 |
|
franta-hg@3 | 11 |
private static final long serialVersionUID = 3789654950408517499L; |
franta-hg@3 | 12 |
private int id; |
franta-hg@3 | 13 |
private String nazev; |
franta-hg@3 | 14 |
private String url; |
franta-hg@3 | 15 |
private String selekt; |
franta-hg@3 | 16 |
private String databaze; |
franta-hg@3 | 17 |
|
franta-hg@3 | 18 |
public int getId() { |
franta-hg@3 | 19 |
return id; |
franta-hg@3 | 20 |
} |
franta-hg@3 | 21 |
|
franta-hg@3 | 22 |
public void setId(int id) { |
franta-hg@3 | 23 |
this.id = id; |
franta-hg@3 | 24 |
} |
franta-hg@3 | 25 |
|
franta-hg@3 | 26 |
public String getNazev() { |
franta-hg@3 | 27 |
return nazev; |
franta-hg@3 | 28 |
} |
franta-hg@3 | 29 |
|
franta-hg@3 | 30 |
public void setNazev(String nazev) { |
franta-hg@3 | 31 |
this.nazev = nazev; |
franta-hg@3 | 32 |
} |
franta-hg@3 | 33 |
|
franta-hg@3 | 34 |
public String getUrl() { |
franta-hg@3 | 35 |
return url; |
franta-hg@3 | 36 |
} |
franta-hg@3 | 37 |
|
franta-hg@3 | 38 |
public void setUrl(String url) { |
franta-hg@3 | 39 |
this.url = url; |
franta-hg@3 | 40 |
} |
franta-hg@3 | 41 |
|
franta-hg@3 | 42 |
public String getSelekt() { |
franta-hg@3 | 43 |
return selekt; |
franta-hg@3 | 44 |
} |
franta-hg@3 | 45 |
|
franta-hg@3 | 46 |
public void setSelekt(String selekt) { |
franta-hg@3 | 47 |
this.selekt = selekt; |
franta-hg@3 | 48 |
} |
franta-hg@3 | 49 |
|
franta-hg@3 | 50 |
public String getDatabaze() { |
franta-hg@3 | 51 |
return databaze; |
franta-hg@3 | 52 |
} |
franta-hg@3 | 53 |
|
franta-hg@3 | 54 |
public void setDatabaze(String databaze) { |
franta-hg@3 | 55 |
this.databaze = databaze; |
franta-hg@3 | 56 |
} |
franta-hg@4 | 57 |
|
franta-hg@4 | 58 |
public Cil(int id, String nazev, String url, String selekt, String databaze) { |
franta-hg@4 | 59 |
this.id = id; |
franta-hg@4 | 60 |
this.nazev = nazev; |
franta-hg@4 | 61 |
this.url = url; |
franta-hg@4 | 62 |
this.selekt = selekt; |
franta-hg@4 | 63 |
this.databaze = databaze; |
franta-hg@4 | 64 |
} |
franta-hg@4 | 65 |
|
franta-hg@4 | 66 |
public Cil() { |
franta-hg@4 | 67 |
} |
franta-hg@40 | 68 |
|
franta-hg@40 | 69 |
@Override |
franta-hg@40 | 70 |
public boolean equals(Object obj) { |
franta-hg@40 | 71 |
if (obj instanceof Cil) { |
franta-hg@40 | 72 |
Cil c = (Cil) obj; |
franta-hg@40 | 73 |
return c.getId() == getId(); |
franta-hg@40 | 74 |
} else { |
franta-hg@40 | 75 |
return false; |
franta-hg@40 | 76 |
} |
franta-hg@40 | 77 |
} |
franta-hg@40 | 78 |
|
franta-hg@40 | 79 |
@Override |
franta-hg@40 | 80 |
public int hashCode() { |
franta-hg@40 | 81 |
int hash = 5; |
franta-hg@40 | 82 |
hash = 67 * hash + this.id; |
franta-hg@40 | 83 |
hash = 67 * hash + (this.nazev != null ? this.nazev.hashCode() : 0); |
franta-hg@40 | 84 |
hash = 67 * hash + (this.url != null ? this.url.hashCode() : 0); |
franta-hg@40 | 85 |
hash = 67 * hash + (this.selekt != null ? this.selekt.hashCode() : 0); |
franta-hg@40 | 86 |
hash = 67 * hash + (this.databaze != null ? this.databaze.hashCode() : 0); |
franta-hg@40 | 87 |
return hash; |
franta-hg@40 | 88 |
} |
franta-hg@3 | 89 |
} |