test.ojb.odmg
Class ProductGroup

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

public class ProductGroup
extends java.lang.Object
implements TransactionAware

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 afterAbort()
          afterAbort will be called after a transaction has been aborted.
 void afterCommit()
          afterCommit is called only after a successful commit has taken place.
 void beforeAbort()
          beforeAbort is called before a transaction is aborted.
 void beforeCommit()
          beforeCommit will give an object a chance to kill a transaction before it is committed.
 java.util.Vector getAllArticlesInGroup()
          Gets the allArticlesInGroup.
 java.lang.String getDescription()
           
 int getId()
          return group id
 java.lang.String getName()
          return groupname
 void setAllArticlesInGroup(java.util.Vector allArticlesInGroup)
          Sets the allArticlesInGroup.
 void setDescription(java.lang.String newDescription)
          Insert the method's description here.
 void setName(java.lang.String newName)
          set 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(int pGroupId,
                    java.lang.String pGroupName,
                    java.lang.String pDescription)

ProductGroup

public ProductGroup()
Method Detail

getId

public int getId()
return group id


toString

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

Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
return groupname


getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String newDescription)
Insert the method's description here. Creation date: (02.11.2000 22:29:28)

Parameters:
newDescription - java.lang.String

afterAbort

public void afterAbort()
afterAbort will be called after a transaction has been aborted. The values of fields which get persisted will have changed to what they were at the begining of the transaction. This method should be overridden to reset any transient or non-persistent fields.

Specified by:
afterAbort in interface TransactionAware

afterCommit

public void afterCommit()
afterCommit is called only after a successful commit has taken place.

Specified by:
afterCommit in interface TransactionAware

beforeAbort

public void beforeAbort()
beforeAbort is called before a transaction is aborted.

Specified by:
beforeAbort in interface TransactionAware

beforeCommit

public void beforeCommit()
                  throws TransactionAbortedException
beforeCommit will give an object a chance to kill a transaction before it is committed. To kill a transaction, throw a new TransactionAbortedException.

Specified by:
beforeCommit in interface TransactionAware
TransactionAbortedException

setName

public void setName(java.lang.String newName)
set groupname


getAllArticlesInGroup

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

Returns:
Returns a Vector

setAllArticlesInGroup

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

Parameters:
allArticlesInGroup - The allArticlesInGroup to set


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