1 | public class Job {↵ | | 1 | public class Single implements Serializable {↵
|
2 | private Long id;↵ | | 2 | private String id;↵
|
3 | private JobBatch batch;↵ | | 3 | private String prop;↵
|
4 | private String processingInstructions;↵ | | 4 | private String ↵
|
5 | private int status;↵ | | |
|
|
6 | /** GCLIB constructor */↵ | | |
|
7 | Job↵ | | 5 | string;↵
|
| | | 6 | private Collection several = new HashSet();↵
|
| | | 7 | /**↵
|
| | | 8 | * Returns the id.↵
|
| | | 9 | * @return String↵
|
| | | 10 | */↵
|
8 | () {}↵ | | 11 | public String getId() {↵
|
|
9 | protected Job(JobBatch batch) {↵ | | |
|
10 | this.batch = batch;↵ | | |
|
11 | }↵ | | |
|
|
| | | 12 | return id;↵
|
| | | 13 | }↵
|
| | | 14 | ↵
|
| | | 15 | /**↵
|
| | | 16 | * Returns the prop.↵
|
| | | 17 | * @return String↵
|
| | | 18 | */↵
|
12 | public Long getId() {↵ | | 19 | public String getProp() {↵
|
13 | return id;↵ | | 20 | return prop;↵
|
14 | }↵ | | 21 | }↵
|
| | | 22 | ↵
|
15 | /*package*/ void setId(Long id) {↵ | | 23 | /*↵
|
16 | this.id = id;↵ | | |
|
17 | }↵ | | |
|
|
18 | public JobBatch getBatch↵ | | 24 | *↵
|
| | | 25 | * Returns the several.↵
|
| | | 26 | * @return Set↵
|
| | | 27 | */↵
|
19 | () {↵ | | 28 | public Collection getSeveral() {↵
|
20 | return batch;↵ | | 29 | return several;↵
|
21 | }↵ | | 30 | }↵
|
| | | 31 | ↵
|
22 | /*package*/ void setBatch(JobBatch batch) {↵ | | 32 | /*↵
|
23 | this.batch = batch;↵ | | |
|
24 | }↵ | | |
|
|
25 | public String getProcessingInstructions() {↵ | | |
|
26 | return processingInstructions;↵ | | |
|
27 | }↵ | | |
|
|
28 | public void setProcessingInstructions(String processingInstructions) {↵ | | |
|
29 | this.processingInstructions = processingInstructions;↵ | | |
|
30 | }↵ | | |
|
| | | 33 | *↵
|
| | | 34 | * Sets the id.↵
|
| | | 35 | * @param id The id to set↵
|
| | | 36 | */↵
|
| | | 37 | public void setId(String id) {↵
|
| | | 38 | this.id = id;↵
|
| | | 39 | }↵
|
| | | 40 | ↵
|
| | | 41 | /**↵
|
| | | 42 | * Sets the prop.↵
|
| | | 43 | * @param prop The prop to set↵
|
| | | 44 | */↵
|
| | | 45 | public void setProp(String prop) {↵
|
| | | 46 | this.prop = prop;↵
|
| | | 47 | }↵
|
| | | 48 | ↵
|
| | | 49 | /**↵
|
| | | 50 | * Sets the several.↵
|
| | | 51 | * @param several The several to set↵
|
| | | 52 | */↵
|
| | | 53 | public void setSeveral(Collection several) {↵
|
| | | 54 | this.several = several;↵
|
| | | 55 | }↵
|
| | | 56 | ↵
|
| | | 57 | /**↵
|
| | | 58 | * Returns the string.↵
|
| | | 59 | * @return String↵
|
| | | 60 | */↵
|
31 | public int getStatus() {↵ | | 61 | public String getString() {↵
|
32 | return status;↵ | | 62 | return st↵
|
33 | }↵ | | |
|
| | | 63 | ring;↵
|
| | | 64 | }↵
|
| | | 65 | ↵
|
| | | 66 | /**↵
|
| | | 67 | * Sets the string.↵
|
| | | 68 | * @param string The string to set↵
|
| | | 69 | */↵
|
34 | public void setStatus(int status) {↵ | | 70 | public void setString(String string) {↵
|
35 | this.status = status | | 71 | this.string = string
|