KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > broker > OrderPosition


1 package org.apache.ojb.broker;
2
3 /**
4  * Insert the type's description here.
5  * Creation date: (02.02.2001 15:45:59)
6  * @author Thomas Mahler
7  */

8 public class OrderPosition implements java.io.Serializable JavaDoc
9 {
10     private int id;
11     private int order_id;
12     private int article_id;
13     private InterfaceArticle article;
14
15     /**
16      * OrderPosition constructor comment.
17      */

18     public OrderPosition()
19     {
20         super();
21     }
22
23     public OrderPosition(int pId, int pOrderId, int pArticleId)
24     {
25         id = pId;
26         order_id = pOrderId;
27         article_id = pArticleId;
28     }
29
30     /**
31      * Insert the method's description here.
32      * Creation date: (02.02.2001 22:25:25)
33      * @return TestThreadsNLocks.org.apache.ojb.broker.InterfaceArticle
34      */

35     public InterfaceArticle getArticle()
36     {
37         return article;
38     }
39
40     /**
41      * Insert the method's description here.
42      * Creation date: (02.02.2001 22:25:25)
43      * @return int
44      */

45     public int getArticle_id()
46     {
47         return article_id;
48     }
49
50     /**
51      * Insert the method's description here.
52      * Creation date: (02.02.2001 22:25:25)
53      * @return int
54      */

55     public int getId()
56     {
57         return id;
58     }
59
60     /**
61      * Insert the method's description here.
62      * Creation date: (02.02.2001 22:25:26)
63      * @return int
64      */

65     public int getOrder_id()
66     {
67         return order_id;
68     }
69
70     /**
71      * Insert the method's description here.
72      * Creation date: (02.02.2001 22:25:25)
73      * @param newArticle TestThreadsNLocks.org.apache.ojb.broker.InterfaceArticle
74      */

75     public void setArticle(InterfaceArticle newArticle)
76     {
77         article = newArticle;
78     }
79
80     /**
81      * Insert the method's description here.
82      * Creation date: (02.02.2001 22:25:25)
83      * @param newArticle_id int
84      */

85     public void setArticle_id(int newArticle_id)
86     {
87         article_id = newArticle_id;
88     }
89
90     /**
91      * Insert the method's description here.
92      * Creation date: (02.02.2001 22:25:26)
93      * @param newId int
94      */

95     public void setId(int newId)
96     {
97         id = newId;
98     }
99
100     /**
101      * Insert the method's description here.
102      * Creation date: (02.02.2001 22:25:26)
103      * @param newOrder_id int
104      */

105     public void setOrder_id(int newOrder_id)
106     {
107         order_id = newOrder_id;
108     }
109
110     public String JavaDoc toString()
111     {
112         return "" + id + ", " + article_id + ", " + article.getArticleName();
113     }
114 }
115
Popular Tags