com.objectwave.persist.bcel.examples
Class Person

java.lang.Object
  |
  +--com.objectwave.persist.bcel.examples.Person

public class Person
extends java.lang.Object


Field Summary
protected  short age
           
protected  Employee employee
           
protected  java.lang.String name
           
 
Constructor Summary
Person()
           
 
Method Summary
 void generateAge()
           
 short getAge()
           
 Employee getEmployee()
           
 java.lang.String getName()
           
 Person newInstance()
          While not required, adding a method like this to your class can help simplify the coding.
 void setAge(short value)
           
 void setEmployee(Employee emp)
           
 void setName(java.lang.String per)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

age

protected short age

employee

protected Employee employee
Constructor Detail

Person

public Person()
Method Detail

setEmployee

public void setEmployee(Employee emp)

getEmployee

public Employee getEmployee()

setName

public void setName(java.lang.String per)

getName

public java.lang.String getName()

getAge

public short getAge()

setAge

public void setAge(short value)

generateAge

public void generateAge()

newInstance

public Person newInstance()
While not required, adding a method like this to your class can help simplify the coding. This will allow you to create type specific factories when creating new instances.

See Also:
BcelTest