KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > legacy > Result


1 package org.hibernate.test.legacy;
2
3
4 public class Result {
5     private String JavaDoc name;
6     private long amount;
7     private int count;
8     /**
9      * Returns the amount.
10      * @return long
11      */

12     public long getAmount() {
13         return amount;
14     }
15
16     /**
17      * Returns the count.
18      * @return int
19      */

20     public int getCount() {
21         return count;
22     }
23
24     /**
25      * Returns the name.
26      * @return String
27      */

28     public String JavaDoc getName() {
29         return name;
30     }
31
32     /**
33      * Sets the amount.
34      * @param amount The amount to set
35      */

36     public void setAmount(long amount) {
37         this.amount = amount;
38     }
39
40     /**
41      * Sets the count.
42      * @param count The count to set
43      */

44     public void setCount(int count) {
45         this.count = count;
46     }
47
48     /**
49      * Sets the name.
50      * @param name The name to set
51      */

52     public void setName(String JavaDoc name) {
53         this.name = name;
54     }
55     
56     public Result(String JavaDoc n, long a, int c) {
57         name = n;
58         amount = a;
59         count = c;
60     }
61 }
62
Popular Tags