public void save() {

    StakeHolder stkholder = new StakeHolder();
    stkholder.setAddress(getStakeHoldAddr());
    stkholder.setDob(new java.sql.Date(getStakeHoldDob().getTime()));
    stkholder.setEmail(getStakeHoldEmail());
    stkholder.setPanNo(getStakeHoldPan());
    stkholder.setStakeHolderName(getStakeHoldName());
    stkholder.setCompany(getCompany());
    stkholder.setUser(getPrefBean().getUser());
    companyService.create(stkholder);
    stakeHolder.add(stkholder);
    clearValues();
    setGrowlMessage("Save", "Insert Successfull");
    setEditing(false);
  }
 public void edit() {
   setSelstakeHoldName(selectedStakeHolder.getStakeHolderName());
   setSelstakeHoldDob(selectedStakeHolder.getDob());
   setSelstakeHoldPhNo(selectedStakeHolder.getPhNo());
   setSelstakeHoldAddr(selectedStakeHolder.getAddress());
   setSelstakeHoldEmail(selectedStakeHolder.getEmail());
   setSelstakeHoldPan(selectedStakeHolder.getPanNo());
   setEditing(true);
 }
 public void update() {
   selectedStakeHolder.setAddress(getSelstakeHoldAddr());
   selectedStakeHolder.setDob(new java.sql.Date(getSelstakeHoldDob().getTime()));
   selectedStakeHolder.setEmail(getSelstakeHoldEmail());
   selectedStakeHolder.setPanNo(getSelstakeHoldPan());
   selectedStakeHolder.setStakeHolderName(getSelstakeHoldName());
   selectedStakeHolder.setCompany(getCompany());
   companyService.update(selectedStakeHolder);
   setGrowlMessage("Update", "Update Successfull");
 }