test.ojb.broker
Class ProductGroup

java.lang.Object
  |
  +--test.ojb.broker.ProductGroup
All Implemented Interfaces:
InterfaceProductGroup, java.io.Serializable

public class ProductGroup
extends java.lang.Object
implements InterfaceProductGroup

represents a product group containing a set of Articles.

See Also:
Article, Serialized Form

Constructor Summary
ProductGroup()
           
ProductGroup(int pGroupId, java.lang.String pGroupName, java.lang.String pDescription)
           
 
Method Summary
 void add(InterfaceArticle article)
          add article to group
 java.util.List getAllArticles()
          return List of all Articles in productgroup
 int getId()
          return group id
 java.lang.String getName()
          return groupname
 void setId(int newValue)
          set group id
 void setName(java.lang.String groupName)
           
 java.lang.String toString()
          return string representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProductGroup

public ProductGroup()

ProductGroup

public ProductGroup(int pGroupId,
                    java.lang.String pGroupName,
                    java.lang.String pDescription)
Method Detail

add

public void add(InterfaceArticle article)
add article to group

Specified by:
add in interface InterfaceProductGroup

getId

public int getId()
return group id

Specified by:
getId in interface InterfaceProductGroup

toString

public java.lang.String toString()
return string representation

Specified by:
toString in interface InterfaceProductGroup
Overrides:
toString in class java.lang.Object
Returns:
java.lang.String

getName

public java.lang.String getName()
return groupname

Specified by:
getName in interface InterfaceProductGroup

setName

public void setName(java.lang.String groupName)

getAllArticles

public java.util.List getAllArticles()
return List of all Articles in productgroup

Specified by:
getAllArticles in interface InterfaceProductGroup

setId

public void setId(int newValue)
set group id



Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04