input
stringlengths
10
828
output
stringlengths
5
107
public purchase order bo create throws data exception purchase order bo po try string guid guid generate po new purchase order bo guid po set object already in db false cache get instance put guid po catch exception e throw new data exception exception caught creating a purchase order bo return po end create
creates a new purchase order bo
public print order line bo create throws data exception print order line bo pol try string guid guid generate pol new print order line bo guid pol set object already in db false cache get instance put guid pol catch exception e throw new data exception exception caught creating a print order line return pol end create
create print order line bo object
public double get total labor hours return total labor hours
get total labor hours
public void set total labor hours double total labor hours set price total labor hours repair bo get rate this set dirty true this total labor hours total labor hours
set total labor hours
public jpanel get gui return new repair options this
returns a jpanel that allows the specific
public string get description string description if repair bo null description service ticket no ticket num labor rate repair bo get rate hr total labor hours total labor hours return description
returns the description of this rev source for the tx line
public for rent bo create throws data exception for rent bo bo try string guid guid generate bo new for rent bo guid bo set object already in db false cache get instance put guid bo catch exception e throw new data exception exception caught creating a for rent bo return bo end create
create for rent bo object
public void set for rent for rent bo for rent this for rent for rent
set for rent bo
public int get num days return num days
get number of days
public void set num days int num days this num days num days notify rev source alert
set number of days
public conversion service bo create throws data exception conversion service bo conv try string guid guid generate conv new conversion service bo guid conv set object already in db false cache get instance put guid conv catch exception e throw new data exception exception caught creating a conversion service return conv end create
create conversion service bo object
public coupon bo create throws data exception coupon bo coupon try string guid guid generate coupon new coupon bo guid coupon set object already in db false cache get instance put guid coupon catch exception e throw new data exception exception caught creating a coupon bo return coupon end create
this the coupon create method
public discount bo create throws data exception discount bo disc try string guid guid generate disc new discount bo guid disc set object already in db false cache get instance put guid disc catch exception e throw new data exception exception caught creating a discount return disc end create
create discount bo object
public product dao get dao string key return product dao map get key
gets the dao for the correct subclass
public return rental bo create throws data exception return rental bo rtl try string guid guid generate rtl new return rental bo guid rtl set object already in db false cache get instance put guid rtl rtl set date in calendar get instance catch exception e throw new data exception exception caught creating a return rental bo return rtl end create
create return rental
public void set member member bo member this member member
sets the membership related to this customer
public void set photo set photo set bo photo set this photo set photo set
set photo set
public list get list throws data exception list list rental rlist new array list try conn connection pool get instance get statement stmt conn create statement result set rs stmt execute query select rental return id date in from rentalreturn while rs next list string rental rinfo new array list rental rinfo add rs get string rental return id rental rinfo add rs get string date in rental rlist add rental rinfo connection pool get instance release conn catch exception e throw new data exception exception caught getting rental list e return rental rlist
get list of all return rental bo object
public conceptual bo create throws data exception conceptual bo conceptual try string guid guid generate conceptual new conceptual bo guid conceptual set object already in db false cache get instance put guid conceptual catch exception e throw new data exception exception caught creating a conceptual return conceptual end create
this is the public create method
public void set username string username set dirty true this username username
set user name
public jpanel get gui return new data storage options this
returns a jpanel that allows the specific
public void set city string city this set dirty true this city city
sets the vendors city
public void set price double price this price price system out println set price called in product bo this price
sets the price for this product
public void set state string state this set dirty true this state state
sets the vendors state
public service ticket bo create throws data exception service ticket bo ticket try string guid guid generate ticket new service ticket bo guid ticket set type repair ticket set object already in db false cache get instance put guid ticket catch exception e throw new data exception exception caught creating a service ticket bo return ticket end create
create service ticket bo object
public void set contact string contact this set dirty true this contact contact
sets the vendors contact person
public void delete rev source bo s ticket throws runtime exception throw new runtime exception this method cannot be called
the delete method is not implemented due to restrictions imposed
public void set qto int qto this qto qto
sets the quantity to order
public void set qoo int qoo this qoo qoo
sets the quantity on order
public int get reorder point return reorder point
gets the reorder point
public backup bo create throws data exception backup bo backup try string guid guid generate backup new backup bo guid backup set object already in db false cache get instance put guid backup catch exception e throw new data exception exception caught creating a backup bo return backup end create
create backup bo object
public void set reorder point int reorder point this reorder point reorder point
sets the reorder point
public void set store id string store id this store id store id
sets the store id
public void delete backup bo backup throws runtime exception throw new runtime exception this method cannot be called
the delete method is not implemented due to restrictions imposed
public data storage bo create throws data exception data storage bo storage try string guid guid generate storage new data storage bo guid storage set type backup storage set object already in db false cache get instance put guid storage catch exception e throw new data exception exception caught creating a data storage bo e return storage end create
create data storage bo object
public double get line total return line total
gets the transaction line subtotal
public void delete rev source bo d storage throws runtime exception throw new runtime exception this method cannot be called
the delete method is not implemented due to restrictions imposed
public void set line total double line total this line total line total
sets the transaction line total
public void set tx bo transaction bo tx bo this tx bo tx bo
sets the transaction bo
public rev source bo get rev source bo return rev source bo
gets the revenue source bo
public void set rev source bo rev source bo rev source bo throws data exception this rev source bo rev source bo if rev source bo null description rev source bo get description price rev source bo get price calculate
sets the revenue source bo
public coupon bo get coupon bo return coupon bo
gets the coupon bo
public void set coupon bo coupon bo coupon bo throws data exception this coupon bo coupon bo calculate
sets the coupon bo
public void set interest list list interest bo interest list this interest list interest list editor fold
sets a list of members interests
public int get coupon num return coupon num
gets the coupon number
public void set coupon num int coupon num this coupon num coupon num
sets the coupon number
public string get photo set description return photo set description
get photo set description
public void set photo set description string photo set description this photo set description photo set description
set photo set description
public for rent bo get for rent return for rent
get for rent obect
public transaction bo create session bo session throws data exception transaction bo tx bo try string guid guid generate tx bo new transaction bo guid tx bo set store session get store tx bo set employee session get employee tx bo set object already in db false cache get instance put guid tx bo catch exception e throw new data exception exception caught creating a transaction bo return tx bo end create
creates a new transasction bo with a session bo and unique identifier
public void set order line list list order line bo order line list this order line list order line list
sets the order line list
public member bo create customer bo cust throws data exception member bo mem try string guid guid generate mem new member bo cust guid since the member is being created for the first time it is not found in the db yet mem set object already in db false cache get instance put guid mem catch exception e throw new data exception exception caught creating a member bo return mem end create
creates a member bo
public transaction bo get by tx num int num throws data exception transaction bo tx bo null try statement stmt conn create statement result set rs stmt execute query select from transaction where tx num num if rs next tx bo read rs get string tx id conn catch exception e throw new data exception error caught reading transaction lines e return tx bo end get by tx num
gets the transaction bo by the transaction number
public con rental bo create throws data exception con rental bo crtl try string guid guid generate crtl new con rental bo guid crtl set object already in db false cache get instance put guid crtl catch exception e throw new data exception exception caught creating a con rental bo return crtl end create
create for rent
public category bo create throws data exception category bo bo try string guid guid generate bo new category bo guid bo set object already in db false cache get instance put guid bo catch exception e throw new data exception exception caught creating a category bo return bo end create
create an object of category
public conversion bo create throws data exception conversion bo conv try string guid guid generate conv new conversion bo guid conv set object already in db false cache get instance put guid conv catch exception e throw new data exception exception caught creating a conversion return conv end create
create conversion bo object
public list get list throws data exception list list bo list new array list try conn connection pool get instance get statement stmt conn create statement result set rs stmt execute query select category id category name from category while rs next list string bo info new array list bo info add rs get string category id bo info add rs get string category name bo list add bo info connection pool get instance release conn catch exception e throw new data exception exception caught getting category list e return bo list
this method gets list of all category objects in the database
public jpanel get member search panel return main panel
gets the member search panel
private void init components this set layout new border layout main panel new jpanel main panel set preferred size new dimension 800 600 main panel add new jlabel use menu bar to select a task session panel new session pane this session panel set preferred size new dimension 800 600 this add session panel border layout center this add main panel active panel main panel activate panel session panel set default close operation javax swing window constants exit on close pack
initialize gui components
public string get product description string pdescription product name get description return pdescription
gets the product description
public void set vendor id string vendor id this set dirty true this vendor id vendor id
sets the vendor id
public void set num days int num days this num days num days
set number of days
private void initialize iadaptable element get element if element instanceof iperforce server perforce server iperforce server element else object adapter element get adapter iperforce server class if adapter instanceof iperforce server perforce server iperforce server adapter
called to initialize the property page
private label create label composite parent string text int span label label new label parent swt left label set text text grid data data new grid data data horizontal span span data horizontal alignment grid data fill label set layout data data return label
called to create a label setting the horizontal span to the given value
private label create label composite parent string text return create label parent text 1
called to create a label setting the horizontal span to the given one
private text create text composite parent boolean editable text result new text parent swt border result set editable editable result set font parent get font result set layout data new grid data grid data fill horizontal return result
crates a text control
protected void set diff viewer diff tree viewer the diff viewer diff viewer the diff viewer
sets the diff viewer
private label create label composite parent string text int span label result new label parent swt left result set text text result set font parent get font grid data data new grid data data horizontal span span data horizontal alignment grid data fill result set layout data data return result
creates a new label control
public image descriptor get image descriptor string id return image descriptors get id
call this method to retrieve the cache image descriptor for the given id
private void set file format example map string string bindings string example p4 decorator configuration bind file text pair get format control get text bindings file text pair get example control set text example
called to set the example for file format
public iworkspace root get workspace root return resources plugin get workspace get root
called to retrieve the workspace root
private void set folder format example map string string bindings string example p4 decorator configuration bind folder text pair get format control get text bindings folder text pair get example control set text example
called to set the example for folder format
private void set project format example map string string bindings string example p4 decorator configuration bind project text pair get format control get text bindings project text pair get example control set text example
called to set the example for project format
private string get label ityped element element return element get name
returns the label for the given input element
private string guess resource name if left null return left get name else if right null return right get name else if ancestor null return ancestor get name return
returns a guess of the resource name being compared for display in the
public text get format control return format control
returns the format control
private string get version label ityped element element if element instanceof resource node return policy bind perforce compare editor input workspace label else if element instanceof perforce resource edition node remote resource edition perforce resource edition node element get remote resource if edition instanceof remote folder return remote folder edition get revision else return edition get sync info null get head rev return element get name
returns the label for the given input element
public text get example control return example control
returns the exmaple control
private void post label events final label provider changed event events now post the change events to the ui thread if events length 0 display get default async exec new runnable public void run for int i 0 i events length i fire label provider changed events i
called to fire label events to notify the views about changed decorations
private void create image descriptor string id url base url url url null try url new url base url icon path full id catch malformed urlexception e ignored image descriptor desc image descriptor create from url url image descriptors put id desc
called to cache the image descriptor for th given id and base url
private void initialize core preferences ipreference store store get preference store perforce core plugin core plugin perforce core plugin get plugin core plugin set show tasks on add store get boolean pref show tasks on add core plugin set delete affects changelist store get boolean delete affects changelist core plugin set background update interval store get int pref background update interval core plugin set should monitor changelists store get boolean pref should monitor changelists core plugin set should monitor opened files store get boolean pref should monitor opened files
propagates the preferences to the core plugin
public iperforce server get server return server
call this method to get the server reference
public resolve type enum get resolve type return current resolve type
called to retrieve the resolve type that was selectd
public change spec get change spec return new change spec spec format spec data get files
retrieves the complete change spec that represents the dialogs input
public boolean should re resolve return enable re resolve current re resolve false
called to check whether the user wants to re resolve previously resolved
public boolean should attempt binary merge return current attempt binary merge
indicates whether the user wants to perform a textual merge of binary
public ifile type get file type return file type
returns a file type that matches the selection of the dialog
private void load selection from file type load selection for base file type load selection for modifiers
loads the selection of the buttons from the file type
protected image get image return jface resources get image registry get dlg img question
called to retrieve the dialogs image
protected list create drop down list composite parent create the list list new list parent swt border swt h scroll swt v scroll fill the list populate list list grid data data new grid data grid data horizontal align fill grid data grab horizontal grid data vertical align fill grid data grab vertical data height hint list get item height list item count list set layout data data list created true return list
called to create the detail area
private void load selection for base file type base file type enum base file type enum file type get base file type base file type buttons base file type enum get id set selection true
loads the selection for the file types base file type
private void populate list list list if files null for int i 0 length files length i length i ifile file files i resource sync info resource sync info local resource create from resource file get sync info list add resource sync info get depot file name else for int i 0 length strings length i length i list add strings i
called to populate the given list
private void toggle details area point window size get shell get size point old size get contents compute size swt default swt default if list created list dispose list created false details button set text idialog constants show details label else list create drop down list composite get contents details button set text idialog constants hide details label point new size get contents compute size swt default swt default get shell set size new point window size x window size y new size y old size y
called to toggle visibility of the detail area
private idialog settings get dialog settings idialog settings plugin settings perforce uiplugin get plugin get dialog settings idialog settings dialog settings plugin settings get section get class get name if dialog settings null dialog settings plugin settings add new section get class get name return dialog settings
retrieves the associated idialog settings
private void set table button layout data button button grid data data new grid data grid data horizontal align fill data height hint convert vertical dlus to pixels idialog constants button height int width hint convert horizontal dlus to pixels idialog constants button width data width hint math max width hint button compute size swt default swt default true x button set layout data data
sets the layout data for the given table button
private void read settings idialog settings settings get dialog settings try current resolve type resolve type enum from id settings get int resolve type non nls 1 catch number format exception e current resolve type resolve type enum accept theirs finally resolve type combo select current resolve type get id current re resolve settings get boolean re resolve non nls 1 re resolve button set selection current re resolve current attempt binary merge settings get boolean attempt binary merge non nls 1 attempt binary merge button set selection current attempt binary merge
reads the dialogs settings
private void change table selection table viewer viewer boolean selection table item items viewer get table get items for int i 0 length items length i length i items i set checked selection
changes the selection state of all files to the given value
private void write settings idialog settings settings get dialog settings settings put resolve type current resolve type get id non nls 1 settings put re resolve current re resolve non nls 1 settings put attempt binary merge current attempt binary merge non nls 1
writes the dialogs settings
public void set overlays list image descriptor overlays this overlays overlays
call this method to set the list of overlays
public void set locations int locations this locations locations
call this method to set the locations