THRIFT-139. java: Expose field ids in more useful ways - Define constants in each structure class that provide access to the field ids by name (at compile time). Use them for (de)serialization. - For beans-mode code, generate a generic getter and setter for accessing fields by field id.