org.apache.ojb.broker
Class AbstractProductGroup

java.lang.Object
  extended byorg.apache.ojb.broker.AbstractProductGroup
All Implemented Interfaces:
InterfaceProductGroup, java.io.Serializable
Direct Known Subclasses:
ProductGroup, ProductGroupWithCollectionProxy

public abstract class AbstractProductGroup
extends java.lang.Object
implements InterfaceProductGroup

represents a product group containing a set of Articles.

See Also:
Article, Serialized Form

Constructor Summary
AbstractProductGroup()
           
AbstractProductGroup(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
 java.util.List getAllArticlesInGroup()
          Gets the allArticlesInGroup.
 java.lang.String getDescription()
          Gets the description.
 int getGroupId()
          Gets the groupId.
 java.lang.String getGroupName()
          Gets the groupName.
 int getId()
          return group id
 java.lang.String getName()
          return groupname
 void setAllArticlesInGroup(java.util.List allArticlesInGroup)
          Sets the allArticlesInGroup.
 void setDescription(java.lang.String description)
          Sets the description.
 void setGroupId(int groupId)
          Sets the groupId.
 void setGroupName(java.lang.String groupName)
          Sets the 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

AbstractProductGroup

public AbstractProductGroup()

AbstractProductGroup

public AbstractProductGroup(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

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


getGroupId

public int getGroupId()
Gets the groupId.

Returns:
Returns a int

setGroupId

public void setGroupId(int groupId)
Sets the groupId.

Parameters:
groupId - The groupId to set

getDescription

public java.lang.String getDescription()
Gets the description.

Returns:
Returns a String

setDescription

public void setDescription(java.lang.String description)
Sets the description.

Parameters:
description - The description to set

getGroupName

public java.lang.String getGroupName()
Gets the groupName.

Returns:
Returns a String

setGroupName

public void setGroupName(java.lang.String groupName)
Sets the groupName.

Parameters:
groupName - The groupName to set

getAllArticlesInGroup

public java.util.List getAllArticlesInGroup()
Gets the allArticlesInGroup.

Returns:
Returns a List

setAllArticlesInGroup

public void setAllArticlesInGroup(java.util.List allArticlesInGroup)
Sets the allArticlesInGroup.

Parameters:
allArticlesInGroup - The allArticlesInGroup to set


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14