java - How to generate A template function for all my variables in my class? -
i using eclipse rcp , rap developers
version: kepler service release 2(32 bit)
i have class looking this:
public class builder { double booking_id; date beg_dt_tm; date end_dt_tm; boolean status_flag; string status_meaning; double encntr_id; double appt_type_cd; string appt_type_disp; string appt_type_display; double location_cd; string location_display; double sch_role_cd; string role_meaning; double primary_resource_cd; string primary_resource_display; long order_qual_cnt; list<order_qualsdo>order_qual = new arraylist<order_qualsdo>(); double sch_event_id; double schedule_id; long schedule_seq; }
for want generate function this:
public builder booking_id(double booking_id) { this.booking_id = booking_id; return this; }
for variables in builder class
. know how generate getters , setters, don't know if can generate custom made function definitions in eclipse these. if yes how?
if no. better started, because next class has 110 variables. :( appreciated.
Comments
Post a Comment