Decaffeinated Coffee Beans

At our last Bibliobites meeting someone mentioned buying decaffeinated coffee beans.

How do they decafinate the whole bean? How does this effect the flavor of the coffee?