001: package org.apache.ojb.broker;
002:
003: /**
004: * Insert the type's description here.
005: * Creation date: (02.02.2001 15:45:59)
006: * @author Thomas Mahler
007: */
008: public class OrderPosition implements java.io.Serializable {
009: private int id;
010: private int order_id;
011: private int article_id;
012: private InterfaceArticle article;
013:
014: /**
015: * OrderPosition constructor comment.
016: */
017: public OrderPosition() {
018: super ();
019: }
020:
021: public OrderPosition(int pId, int pOrderId, int pArticleId) {
022: id = pId;
023: order_id = pOrderId;
024: article_id = pArticleId;
025: }
026:
027: /**
028: * Insert the method's description here.
029: * Creation date: (02.02.2001 22:25:25)
030: * @return TestThreadsNLocks.org.apache.ojb.broker.InterfaceArticle
031: */
032: public InterfaceArticle getArticle() {
033: return article;
034: }
035:
036: /**
037: * Insert the method's description here.
038: * Creation date: (02.02.2001 22:25:25)
039: * @return int
040: */
041: public int getArticle_id() {
042: return article_id;
043: }
044:
045: /**
046: * Insert the method's description here.
047: * Creation date: (02.02.2001 22:25:25)
048: * @return int
049: */
050: public int getId() {
051: return id;
052: }
053:
054: /**
055: * Insert the method's description here.
056: * Creation date: (02.02.2001 22:25:26)
057: * @return int
058: */
059: public int getOrder_id() {
060: return order_id;
061: }
062:
063: /**
064: * Insert the method's description here.
065: * Creation date: (02.02.2001 22:25:25)
066: * @param newArticle TestThreadsNLocks.org.apache.ojb.broker.InterfaceArticle
067: */
068: public void setArticle(InterfaceArticle newArticle) {
069: article = newArticle;
070: }
071:
072: /**
073: * Insert the method's description here.
074: * Creation date: (02.02.2001 22:25:25)
075: * @param newArticle_id int
076: */
077: public void setArticle_id(int newArticle_id) {
078: article_id = newArticle_id;
079: }
080:
081: /**
082: * Insert the method's description here.
083: * Creation date: (02.02.2001 22:25:26)
084: * @param newId int
085: */
086: public void setId(int newId) {
087: id = newId;
088: }
089:
090: /**
091: * Insert the method's description here.
092: * Creation date: (02.02.2001 22:25:26)
093: * @param newOrder_id int
094: */
095: public void setOrder_id(int newOrder_id) {
096: order_id = newOrder_id;
097: }
098:
099: public String toString() {
100: return "" + id + ", " + article_id + ", "
101: + article.getArticleName();
102: }
103: }
|