db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker ProductGroupWithCollectionProxy.java
Date Wed, 25 Jun 2003 20:19:02 GMT
brj         2003/06/25 13:19:02

  Modified:    src/test/org/apache/ojb/broker
                        ProductGroupWithCollectionProxy.java
  Log:
  extend AbstractProductGroup
  
  Revision  Changes    Path
  1.3       +5 -105    db-ojb/src/test/org/apache/ojb/broker/ProductGroupWithCollectionProxy.java
  
  Index: ProductGroupWithCollectionProxy.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/ProductGroupWithCollectionProxy.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ProductGroupWithCollectionProxy.java	5 Oct 2002 15:20:42 -0000	1.2
  +++ ProductGroupWithCollectionProxy.java	25 Jun 2003 20:19:02 -0000	1.3
  @@ -1,120 +1,20 @@
   package org.apache.ojb.broker;
   
  -import java.util.Collection;
  -
   
   /** represents a product group containing a set of Articles.
    * @see Article
    */
  -public class ProductGroupWithCollectionProxy implements java.io.Serializable
  +public class ProductGroupWithCollectionProxy extends AbstractProductGroup
   {
   
  -    /** collection containing all articles of a given product group*/
  -    private Collection allArticlesInGroup;
  -    /** the unique id of a product group*/
  -    private int groupId;
  -    /** the name of a group*/
  -    private String groupName;
  -
       public ProductGroupWithCollectionProxy()
       {
  +        super();
       }
   
  -    public ProductGroupWithCollectionProxy(int pGroupId, String pGroupName)
  -    {
  -        groupId = pGroupId;
  -        groupName = pGroupName;
  -    }
  -
  -
  -    /** return group id*/
  -    public int getId()
  -    {
  -        return groupId;
  -    }
  -
  -    /**return string representation*/
  -    public String toString()
  -    {
  -        return "----\n"
  -                + "group Id:    "
  -                + groupId
  -                + "\n"
  -                + "name:        "
  -                + groupName
  -                + "\n"
  -                + "articles in group: "
  -                + ((allArticlesInGroup != null) ? allArticlesInGroup.toString() : null);
  -    }
  -
  -    /** return groupname*/
  -    public String getName()
  -    {
  -        return groupName;
  -    }
  -
  -	public void setId(int id)
  -	{
  -		groupId = id;
  -	}
  -
  -    /** return List of all Articles in productgroup*/
  -    public Collection getAllArticles()
  -    {
  -        return allArticlesInGroup;
  -    }
  -    /**
  -     * Gets the allArticlesInGroup.
  -     * @return Returns a Collection
  -     */
  -    public Collection getAllArticlesInGroup()
  -    {
  -        return allArticlesInGroup;
  -    }
  -
  -    /**
  -     * Sets the allArticlesInGroup.
  -     * @param allArticlesInGroup The allArticlesInGroup to set
  -     */
  -    public void setAllArticlesInGroup(Collection allArticlesInGroup)
  -    {
  -        this.allArticlesInGroup = allArticlesInGroup;
  -    }
  -
  -    /**
  -     * Gets the groupId.
  -     * @return Returns a int
  -     */
  -    public int getGroupId()
  -    {
  -        return groupId;
  -    }
  -
  -    /**
  -     * Sets the groupId.
  -     * @param groupId The groupId to set
  -     */
  -    public void setGroupId(int groupId)
  -    {
  -        this.groupId = groupId;
  -    }
  -
  -    /**
  -     * Gets the groupName.
  -     * @return Returns a String
  -     */
  -    public String getGroupName()
  -    {
  -        return groupName;
  -    }
  -
  -    /**
  -     * Sets the groupName.
  -     * @param groupName The groupName to set
  -     */
  -    public void setGroupName(String groupName)
  +    public ProductGroupWithCollectionProxy(int pGroupId, String pGroupName, String pDescription)
       {
  -        this.groupName = groupName;
  +        super (pGroupId, pGroupName, pDescription);
       }
   
  -}
  +}
  \ No newline at end of file
  
  
  

Mime
View raw message