org.sourceforge.jemm.sample.demo1.model
Class Person

java.lang.Object
  extended by org.sourceforge.jemm.sample.demo1.model.Person
All Implemented Interfaces:
JEMMObject

public class Person
extends java.lang.Object
implements JEMMObject

Author:
Paul Keeble

Field Summary
protected  Account account
           
protected  ShadowUserObject jemmOIF
           
protected  java.lang.String name
           
 
Constructor Summary
Person(ShadowUserObject jemmOIF)
          Generated by the compiler and used internally for creating an object.
Person(java.lang.String name)
          Create a Person instance.
 
Method Summary
 Account getAccount()
          Return the account referred to by the given index.
 java.lang.String getName()
          Return the name of the account holder.
 void setAccount(Account account)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jemmOIF

protected ShadowUserObject jemmOIF

name

protected java.lang.String name

account

protected Account account
Constructor Detail

Person

public Person(java.lang.String name)
Create a Person instance.

Parameters:
name - The name of the person.

Person

public Person(ShadowUserObject jemmOIF)
Generated by the compiler and used internally for creating an object.

Parameters:
jemmOIF - The shadow object this object uses to talk to the store.
Method Detail

getName

public java.lang.String getName()
Return the name of the account holder.

Returns:
The account holders name.

setAccount

public void setAccount(Account account)

getAccount

public Account getAccount()
Return the account referred to by the given index.

Parameters:
index - The index of the target account.
Returns:
The account at the given index.


Copyright © 2009. All Rights Reserved.