au.gov.tas.dpiwe.mr.test.aggregation
Class Deck

java.lang.Object
  extended by au.gov.tas.dpiwe.mr.bean.NullBean
      extended by au.gov.tas.dpiwe.mr.test.aggregation.Deck
All Implemented Interfaces:
SimpleValidator, WrappedBean, ContainerChangeListener, Serializable, EventListener, EnterpriseBean, EntityBean
Direct Known Subclasses:
MrDeck, ThinDeck

public abstract class Deck
extends NullBean

Deck contains an example of an aggregate one to many relationship to an object with a composite key, Card.

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
Deck()
          Constructs a Deck.
 
Method Summary
 DeckKey ejbCreate(DeckKey primaryKey)
          Create life-cycle event.
 void ejbPostCreate(DeckKey primaryKey)
          Post-create bean life-cycle event.
abstract  List getCards()
          Returns the cards associated with this bean.
abstract  DeckKey getDeckID()
          Returns the deck ID attribute of this bean.
abstract  void relateCard(CardObject aCard)
          Associates a card with this bean.
abstract  void replaceCard(CardObject aCard)
          Replaces an associated card to this bean.
abstract  void setCards(List cards)
          Sets the cards associated with this bean.
abstract  void setDeckID(DeckKey deckID)
          Sets the deck ID attribute of this bean.
abstract  void unrelateCard(CardObject aCard)
          Disassociates a card from 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

Deck

public Deck()
Constructs a Deck.

Method Detail

getDeckID

public abstract DeckKey getDeckID()
Returns the deck ID attribute of this bean.

Returns:
the deck ID attribute of this bean.

setDeckID

public abstract void setDeckID(DeckKey deckID)
Sets the deck ID attribute of this bean.

Parameters:
deckID - the deck ID attribute to be applied to this bean.

getCards

public abstract List getCards()
Returns the cards associated with this bean.

Returns:
the cards associated with this bean.

setCards

public abstract void setCards(List cards)
Sets the cards associated with this bean.

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

relateCard

public abstract void relateCard(CardObject aCard)
Associates a card with this bean.

Parameters:
aCard - the card to be associated with this bean.

unrelateCard

public abstract void unrelateCard(CardObject aCard)
Disassociates a card from this bean.

Parameters:
aCard - the card to be disassociated from this bean.

replaceCard

public abstract void replaceCard(CardObject aCard)
Replaces an associated card to this bean.

Parameters:
aCard - the card to be associated with this bean.

ejbCreate

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

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

ejbPostCreate

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

Parameters:
primaryKey - the primary key.