KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.apache.ojb.broker;
2
3 import java.io.Serializable JavaDoc;
4
5 /**
6  * defines the behaviour of Articles. implemented by real 'Articles' and their ArticleProxies
7  */

8 public interface InterfaceArticle extends Serializable JavaDoc
9 {
10     public void addToStock(int diff);
11
12     public Integer JavaDoc getArticleId();
13
14     public String JavaDoc getArticleName();
15
16     public InterfaceProductGroup getProductGroup();
17
18     public void setProductGroup(InterfaceProductGroup pg);
19
20     public double getStockValue();
21
22     public void setArticleId(Integer JavaDoc newArticleId);
23
24     public void setArticleName(String JavaDoc newArticleName);
25     
26     public void setStock(int stock);
27
28     public int getStock();
29
30     public String JavaDoc toString();
31 }
32
Popular Tags