View Javadoc

1   /*
2    * Copyright 2004 Carlos Sanchez.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package net.sf.oness.order.model.bo;
17  
18  import java.util.Collection;
19  
20  import net.sf.oness.common.model.bo.AbstractBusinessObject;
21  import net.sf.oness.common.model.temporal.Date;
22  
23  /***
24   * @author Carlos Sanchez
25   * @version $Revision: 1.1 $
26   */
27  public abstract class Master extends AbstractBusinessObject {
28  
29      private Long partyId;
30  
31      private Date date;
32  
33      private Collection items;
34  
35      private Integer type;
36  
37      public final static Integer PURCHASE = new Integer(1),
38              SELL = new Integer(2);
39  
40      /***
41       * @param partyId
42       *            The partyId to set.
43       */
44      public void setPartyId(Long partyId) {
45          this.partyId = partyId;
46      }
47  
48      /***
49       * @hibernate.property
50       * 
51       * @return Returns the partyId.
52       */
53      public Long getPartyId() {
54          return partyId;
55      }
56  
57      /***
58       * @param date
59       *            The date to set.
60       */
61      public void setDate(Date date) {
62          this.date = date;
63      }
64  
65      /***
66       * @hibernate.property type="net.sf.oness.common.model.temporal.hibernate.DateType"
67       * 
68       * @return Returns the date.
69       */
70      public Date getDate() {
71          return date;
72      }
73  
74      /***
75       * @param items
76       *            The items to set.
77       */
78      public void setItems(Collection items) {
79          this.items = items;
80      }
81  
82      /***
83       * @return Returns the items.
84       */
85      public Collection getItems() {
86          return items;
87      }
88  
89      /***
90       * @param type
91       *            The type to set.
92       */
93      public void setType(Integer type) {
94          this.type = type;
95      }
96  
97      /***
98       * @hibernate.property
99       * 
100      * @return Returns the type.
101      */
102     public Integer getType() {
103         return type;
104     }
105 
106 }