au.gov.tas.dpiwe.mr.test.nonaggregation
Class Credit

java.lang.Object
  extended by au.gov.tas.dpiwe.mr.bean.NullBean
      extended by au.gov.tas.dpiwe.mr.test.nonaggregation.Credit
All Implemented Interfaces:
SimpleValidator, WrappedBean, ContainerChangeListener, Serializable, EventListener, EnterpriseBean, EntityBean
Direct Known Subclasses:
MrCredit, ThinCredit

public abstract class Credit
extends NullBean

Credit associates a Song with a contributing Artist.

Since:
Mr Architecture 2.0
Version:
1.0.0.1
Author:
Kade Hanson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class au.gov.tas.dpiwe.mr.bean.NullBean
container, context, wrapper
 
Constructor Summary
Credit()
          Constructs a Credit.
 
Method Summary
 CreditKey ejbCreate(CreditKey primaryKey)
          Create life-cycle event.
 void ejbPostCreate(CreditKey primaryKey)
          Post-create bean life-cycle event.
abstract  String getContribution()
          Returns the contribution attribute of this bean.
abstract  CreditKey getCreditID()
          Returns the credit ID attribute of this bean.
abstract  void relateArtist(ArtistObject artist)
          Sets the artist associated with this bean.
abstract  void relateSong(SongObject song)
          Sets the song associated with this bean.
 ArtistObject retrieveArtist()
          Returns the artist associated with this bean.
 SongObject retrieveSong()
          Returns the song associated with this bean.
abstract  void setContribution(String contribution)
          Sets the contribution attribute of this bean.
abstract  void setCreditID(CreditKey aCreditID)
          Sets the credit ID attribute of this bean.
 
Methods inherited from class au.gov.tas.dpiwe.mr.bean.NullBean
clone, containerChanged, ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore, getBeanObject, setEntityContext, simpleValidate, throwEJBException, unsetEntityContext
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Credit

public Credit()
Constructs a Credit.

Method Detail

getCreditID

public abstract CreditKey getCreditID()
Returns the credit ID attribute of this bean.

Returns:
the credit ID attribute of this bean.

setCreditID

public abstract void setCreditID(CreditKey aCreditID)
Sets the credit ID attribute of this bean.

Parameters:
aCreditID - the credit ID attribute to be applied to this bean.

getContribution

public abstract String getContribution()
Returns the contribution attribute of this bean.

Returns:
the contribution attribute of this bean.

setContribution

public abstract void setContribution(String contribution)
Sets the contribution attribute of this bean.

Parameters:
contribution - the contribution attribute to be applied to this bean.

retrieveArtist

public ArtistObject retrieveArtist()
                            throws FinderException
Returns the artist associated with this bean.

Returns:
the artist associated with this bean.
Throws:
FinderException - if this credit has no related artist.

relateArtist

public abstract void relateArtist(ArtistObject artist)
Sets the artist associated with this bean.

Parameters:
artist - the artist to be associated with this bean.

retrieveSong

public SongObject retrieveSong()
                        throws FinderException
Returns the song associated with this bean.

Returns:
the song associated with this bean.
Throws:
FinderException - if this credit has no related song.

relateSong

public abstract void relateSong(SongObject song)
Sets the song associated with this bean.

Parameters:
song - the song to be associated with this bean.

ejbCreate

public CreditKey ejbCreate(CreditKey primaryKey)
Create life-cycle event.

Parameters:
primaryKey - the primary key input.
Returns:
primaryKey the primary key output (should match input.)

ejbPostCreate

public void ejbPostCreate(CreditKey primaryKey)
Post-create bean life-cycle event.

Parameters:
primaryKey - the primary key.