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

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

public abstract class Song
extends NullBean

Songs have many Credits and are realised as many Tracks.

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
Song()
          Constructs a Song.
 
Method Summary
 long ejbCreate(long primaryKey)
          Create life-cycle event.
 void ejbPostCreate(long primaryKey)
          Post-create bean life-cycle event.
abstract  List getCredits()
          Returns the credits associated with this bean.
abstract  long getSongIdentifier()
          Returns the song ID attribute of this bean.
abstract  String getTitle()
          Returns the title attribute of this bean.
abstract  void relateCredit(CreditObject aCredit)
          Associates a credit with this bean.
 List retrieveTracks()
          Returns the tracks associated with this bean.
abstract  void setCredits(List credits)
          Sets the credits associated with this bean.
abstract  void setSongIdentifier(long aSongID)
          Sets the song ID attribute of this bean.
abstract  void setTitle(String title)
          Sets the title 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

Song

public Song()
Constructs a Song.

Method Detail

getSongIdentifier

public abstract long getSongIdentifier()
Returns the song ID attribute of this bean.

Returns:
the song ID attribute of this bean.

setSongIdentifier

public abstract void setSongIdentifier(long aSongID)
Sets the song ID attribute of this bean.

Parameters:
aSongID - the song ID attribute to be applied to this bean.

getTitle

public abstract String getTitle()
Returns the title attribute of this bean.

Returns:
the title attribute of this bean.

setTitle

public abstract void setTitle(String title)
Sets the title attribute of this bean.

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

getCredits

public abstract List getCredits()
Returns the credits associated with this bean.

Returns:
the credits associated with this bean.

setCredits

public abstract void setCredits(List credits)
Sets the credits associated with this bean.

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

relateCredit

public abstract void relateCredit(CreditObject aCredit)
Associates a credit with this bean.

Parameters:
aCredit - the credit to be associated with this bean.

retrieveTracks

public List retrieveTracks()
                    throws FinderException
Returns the tracks associated with this bean.

Returns:
the tracks associated with this bean.
Throws:
FinderException - if the tracks cannot be retrieved.

ejbCreate

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

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

ejbPostCreate

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

Parameters:
primaryKey - the primary key.