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

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

public abstract class Square
extends NullBean

Square contains an example of an aggregate one to one relationship to an object which shares its primary key, Deed.

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
Square()
          Constructs a Square.
 
Method Summary
 SquareKey ejbCreate(SquareKey primaryKey)
          Create life-cycle event.
 void ejbPostCreate(SquareKey primaryKey)
          Post-create bean life-cycle event.
abstract  DeedObject getDeed()
          Returns the deed associated with this bean.
abstract  SquareKey getSquareID()
          Returns the square ID attribute of this bean.
abstract  String getText()
          Returns the text attribute of this bean.
abstract  void relateDeed(DeedObject aDeed)
          Associates a deed with this bean.
abstract  void setDeed(DeedObject aDeed)
          Sets the deed associated with this bean.
abstract  void setSquareID(SquareKey aSquareID)
          Sets the square ID attribute of this bean.
abstract  void setText(String text)
          Sets the text 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

Square

public Square()
Constructs a Square.

Method Detail

getSquareID

public abstract SquareKey getSquareID()
Returns the square ID attribute of this bean.

Returns:
the square ID attribute of this bean.

setSquareID

public abstract void setSquareID(SquareKey aSquareID)
Sets the square ID attribute of this bean.

Parameters:
aSquareID - the square ID attribute to be applied to this bean.

getText

public abstract String getText()
Returns the text attribute of this bean.

Returns:
the text attribute of this bean.

setText

public abstract void setText(String text)
Sets the text attribute of this bean.

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

getDeed

public abstract DeedObject getDeed()
Returns the deed associated with this bean.

Returns:
the deed associated with this bean.

setDeed

public abstract void setDeed(DeedObject aDeed)
Sets the deed associated with this bean.

Parameters:
aDeed - the deed to be associated with this bean.

relateDeed

public abstract void relateDeed(DeedObject aDeed)
Associates a deed with this bean.

Parameters:
aDeed - the deed to be associated with this bean, or null to disassociate the current deed.

ejbCreate

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

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

ejbPostCreate

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

Parameters:
primaryKey - the primary key.