public static void updatePerson(PersonBean person){
		PreparedStatement pst = null;  
		Connection conn=null;
		boolean result = false;
		try {  
			conn=ConnectionPool.getConnectionFromPool();
			pst = conn  
					.prepareStatement("UPDATE PERSON SET FNAME=?, LNAME=?, ADDRESS=?, TYPE=? "
							+ " WHERE ID=?");  
			pst.setString(1, person.getFname());  
			pst.setString(2, person.getLname());
			pst.setString(3, person.getAddress());
			pst.setString(4, person.getType());
			pst.setInt(5, person.getId());

			result = pst.execute();  
		}catch (Exception e) {  
			System.out.println(e);  
		} finally {  
			if(conn!=null){
				ConnectionPool.addConnectionBackToPool(conn);
			}
			if (pst != null) {  
				try {  
					pst.close();  
				} catch (SQLException e) {  
					e.printStackTrace();  
				}  
			}  
		}
	}