KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > cascade > Job


1 // $Id: Job.java,v 1.1 2005/05/03 20:55:31 steveebersole Exp $
2
package org.hibernate.test.cascade;
3
4 /**
5  * Implementation of Job.
6  *
7  * @author Steve Ebersole
8  */

9 public class Job {
10     private Long JavaDoc id;
11     private JobBatch batch;
12     private String JavaDoc processingInstructions;
13     private int status;
14
15     /** GCLIB constructor */
16     Job() {}
17
18     protected Job(JobBatch batch) {
19         this.batch = batch;
20     }
21
22     public Long JavaDoc getId() {
23         return id;
24     }
25
26     /*package*/ void setId(Long JavaDoc id) {
27         this.id = id;
28     }
29
30     public JobBatch getBatch() {
31         return batch;
32     }
33
34     /*package*/ void setBatch(JobBatch batch) {
35         this.batch = batch;
36     }
37
38     public String JavaDoc getProcessingInstructions() {
39         return processingInstructions;
40     }
41
42     public void setProcessingInstructions(String JavaDoc processingInstructions) {
43         this.processingInstructions = processingInstructions;
44     }
45
46     public int getStatus() {
47         return status;
48     }
49
50     public void setStatus(int status) {
51         this.status = status;
52     }
53 }
54
Popular Tags