01: package org.apache.ojb.broker;
02:
03: import java.io.Serializable;
04:
05: /**
06: * defines the behaviour of Articles. implemented by real 'Articles' and their ArticleProxies
07: */
08: public interface InterfaceArticle extends Serializable {
09: public void addToStock(int diff);
10:
11: public Integer getArticleId();
12:
13: public String getArticleName();
14:
15: public InterfaceProductGroup getProductGroup();
16:
17: public void setProductGroup(InterfaceProductGroup pg);
18:
19: public double getStockValue();
20:
21: public void setArticleId(Integer newArticleId);
22:
23: public void setArticleName(String newArticleName);
24:
25: public void setStock(int stock);
26:
27: public int getStock();
28:
29: public String toString();
30: }
|