KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > speedo > pobjects > inheritance > filterOutOfPK > rdbsequence > Article


1 /**
2  * Copyright (C) 2001-2004 France Telecom R&D
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18 package org.objectweb.speedo.pobjects.inheritance.filterOutOfPK.rdbsequence;
19
20 import java.util.ArrayList JavaDoc;
21 import java.util.Collection JavaDoc;
22
23 /**
24  *
25  * @author S.Chassande-Barrioz
26  */

27 public abstract class Article {
28
29     private long id;
30     private int type;
31     private Catalogue catalogue;
32     private Collection JavaDoc marches;
33
34     public Article(long id, int type) {
35         this.id = id;
36         this.type = type;
37         marches = new ArrayList JavaDoc();
38     }
39
40     public Catalogue getCatalogue() {
41         return catalogue;
42     }
43
44     public void setCatalogue(Catalogue catalogue) {
45         this.catalogue = catalogue;
46     }
47
48     public Collection JavaDoc getMarches() {
49         return marches;
50     }
51
52     public void setMarches(Collection JavaDoc marches) {
53         this.marches = marches;
54     }
55
56     public long getId() {
57         return id;
58     }
59     
60     public int getType() {
61         return type;
62     }
63     public void setType(int type) {
64         this.type = type;
65     }
66 }
67
Popular Tags