au.gov.tas.dpiwe.mr.test.aggregation
Interface DeckObject

All Superinterfaces:
EJBLocalObject
All Known Implementing Classes:
MrDeck

public interface DeckObject
extends EJBLocalObject

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

Method Summary
 List getCards()
          Returns the cards associated with this bean.
 DeckKey getDeckID()
          Returns the deck ID attribute of this bean.
 void relateCard(CardObject aCard)
          Associates a card with this bean.
 void replaceCard(CardObject aCard)
          Replaces an associated card to this bean.
 void setCards(List cards)
          Sets the cards associated with this bean.
 void setDeckID(DeckKey deckID)
          Sets the deck ID attribute of this bean.
 void unrelateCard(CardObject aCard)
          Disassociates a card from this bean.
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

getDeckID

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

Returns:
the deck ID attribute of this bean.

setDeckID

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

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

Returns:
the cards associated with this bean.

setCards

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

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

relateCard

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

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

unrelateCard

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

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

replaceCard

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

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