FileDocCategorySizeDatePackage
AddressBean.javaAPI DocExample1332Mon Aug 06 13:57:06 BST 2001com.titan.address

AddressBean.java

package com.titan.address;

import javax.ejb.EntityContext;

public abstract class AddressBean implements javax.ejb.EntityBean {	
    
    public Integer ejbCreateAddress
                         (String street, String city, 
                          String state,  String zip )
    {
		 setStreet(street);
         setCity(city);
         setState(state);
         setZip(zip);
         return null;
    }

    public void ejbPostCreateAddress
                     (String street, String city,
                      String state,  String zip) {
    }

    // persistent fields
	public abstract Integer getId();
	public abstract void setId(Integer id);
    public abstract String getStreet();
    public abstract void setStreet(String street);
    public abstract String getCity();
    public abstract void setCity(String city);
    public abstract String getState();
    public abstract void setState(String state);
    public abstract String getZip();
    public abstract void setZip(String zip);

    // standard call back methods
    
    public void setEntityContext(EntityContext ec){}
    public void unsetEntityContext(){}
    public void ejbLoad(){}
    public void ejbStore(){}
    public void ejbActivate(){}
    public void ejbPassivate(){}
    public void ejbRemove(){}

}