input
stringlengths
10
828
output
stringlengths
5
107
public string get system name return aolsystemmsg
fake system account
public void set away boolean away if connection null connection is connected presence presence new presence presence type available if away change default values to presence set mode presence mode away presence set status get properties get iam away message connection send packet presence else shouldn t be calling us for this unless smth broke inside smack lib again notify connection failed connection unavailable super set away away
sets the away flag
protected void process message message message throws ioexception chat chat connection get chat manager create chat message get contact get name null try chat send message message get text catch xmppexception e log log level severe e throw new ioexception e get message
override this message with code that sends the message out
public void add contact group group group connection get ssi service get buddy list add group group get name
tells the protocol to add a group
public void clear picture icon connection send snac request new delete items cmd new ssi item new icon item 0 null to ssi item connection get my buddy icon manager request clear icon
will remove the picture
public void set columns int p columns if m location field null m location field set columns p columns
sets the default column size
public void set directory only boolean p dir only if p dir only m file chooser null m file chooser set file selection mode jfile chooser directories only
sets the default file selection mode
public void clear tree top remove all children default tree model dtm default tree model tree get model dtm reload
remove all nodes except the root node
public jpanel get customer search panel return main panel
gets the customer search panel
public void set cust info list list list cust info list this cust info list cust info list
sets the list of customer information
public jlist get cust list return cust list
gets a list of customers
public void set name label jlabel label cust name label
sets the name label
public void set phone label jlabel label cust phone label
sets the phone label
public jpanel get create customer panel return create customer panel
gets the customer panel
public void set select button jbutton button select button button select button add action listener new button listener
sets the select button
public void populate list throws data exception try list model clear cust info list customer dao get instance get list collections sort cust info list new alphabetical order sort list for int i 0 i get cust info list size i string fname get cust info list get i get 2 to string string lname get cust info list get i get 1 to string list model add element lname fname catch exception e e print stack trace throw new data exception exception caught creating customer list e end populate list
displays the list of customers and their information
public object get value at int irow int col return row get irow get col
gets the value at this cell
public void populate list throws data exception try list model clear cust info list member dao get instance get list collections sort cust info list new alphabetical order sort list for int i 0 i get cust info list size i string fname cust info list get i get 3 to string string lname cust info list get i get 2 to string list model add element lname fname catch exception e e print stack trace throw new data exception exception caught creating customer list e end populate list
populates the panel that shows the list of membership information
private void set problem if ticket bo get problem description null problem field set text ticket bo get problem description
sets the text of the problem description text field
public void action performed action event event if event get source button ticket bo set problem description problem field get text end action performed
repair options action performed
public void action performed action event event jcombo box cb jcombo box event get source ticket bo set repair bo service repair bo cb get selected item system out println combo box listener action performed called end action performed method
repair options action performed
public session bo get session return session
gets this session
public void set tx line transaction line bo tx line this tx line tx line
creates a new instance of transaction line bo
public void action performed action event event jcombo box cb jcombo box event get source storage bo set backup backup bo cb get selected item system out println combo box listener action performed called end action performed method
action performer for backup storage
public void activate panel jpanel panel active panel set visible false active panel panel active panel set visible true active panel set opaque true this set content pane active panel end activate panel
makes the inputed panel active and visible
public component get table cell renderer component jtable table java lang object value boolean is selected boolean has focus int row int column if is selected color c table get background if row 2 0 c get red 20 c get green 20 c get blue 20 set background new color c get red 20 c get green 20 c get blue 20 else set background c return super get table cell renderer component table value is selected has focus row column
override this method from the parent class
public void set value object value decimal format decimal fmt new decimal format 0 00 if value instanceof double double value2 double value double dbl value value2 double value value new special double dbl value set horizontal alignment jlabel right system out println set value called decimal fmt format dbl value set text decimal fmt format dbl value else set horizontal alignment jlabel left set text value to string set foreground color black super set value value
override this method to handle the special date col class
public int get row count return row size get row count
gets the row count
public int get column count return headings size get column count
gets the column count
public object get value at int row int col return this row get row get col get value at
gets the value in this cell
public boolean is cell editable int row int col return false is cell editable
prevents the cell from being edited
public string get column name int col return headings get col get column name
gets the column name
public void set value at object value int row int col this row get row set col value fire table structure changed set value at
sets the value in this cell
public void add row transaction line bo tx line list object new row new array list object for int i 0 i headings size i new row new array list object new row add integer to string tx line get line num new row add tx line get rev source bo new row add tx line get description new row add integer to string tx line get qty new row add new double tx line get line total new row add for row add new row fire table data changed add row
adds a row to the transaction
public rev source bo get rev source int row num return rev source bo row get row num get 1
gets the revenue source
public void delete int index this row remove index fire table rows deleted index index delete
deletes the row
public void set session session bo session this session session
sets the session
public list row again return row row again
returns a list of rows
public void close row clear fire table structure changed close
closes the transaction table
public session bo get session return this session
gets the session
public int get time rented return time rented
get time rented
public void set hire date date hire date this hire date hire date editor fold
sets the hire date for this employee
public order line bo create throws data exception order line bo order line try string guid guid generate order line new order line bo guid order line set object already in db false cache get instance put guid order line catch exception e throw new data exception exception caught creating a order line bo return order line end create
creates a new order line object
public rev source dao get dao string key return rev source dao map get key
gets the proper revenue source dao
public void set shelf location string shelf location this set dirty true this shelf location shelf location
set shelf location
public void set date purchased date date purchased this set dirty true this date purchased date purchased
set date purchase
public customer bo create throws data exception customer bo cust try string guid guid generate cust new customer bo guid cust set object already in db false cache get instance put guid cust catch exception e throw new data exception exception caught creating a customer bo return cust end create
this is the customer create method
public void set conceptual id string conceptual id this set dirty true this conceptual id conceptual id
set conceptual id
public void set store id string store id this set dirty true this store id store id
set store id
public void set store store bo store this set dirty true this store store
set store object
public category bo get category return category
gets the category
public void set description string desc description desc end set description method
set the file description
public void set category category bo category this category category
sets the category
public con rental bo get concept rental return concept rental
gets the conceptual rental
public void set concept rental con rental bo concept rental this concept rental concept rental
sets the conceptual rental
public void set username string username this set dirty true this username username
sets the username
public void set password string password this set dirty true this password password
sets this password
public void set memb id string guid this set dirty true this memb id guid
sets the member id
public member bo get membership return membership
gets the memberhsip
public void set membership member bo membership this set dirty true this membership membership
sets the membership associated with this account
public int get store num return store num
this is an external identifier in the form of a store number
public void set store num int store num this store num store num
sets the store number
public void set manager employee bo manager this manager manager
sets the manager information
public print format bo create throws data exception print format bo format try string guid guid generate format new print format bo guid format set object already in db false cache get instance put guid format catch exception e throw new data exception exception caught creating a print format return format end create
create print format bo object
public session bo create throws data exception session bo session try string guid guid generate session new session bo guid session set object already in db false cache get instance put guid session catch exception e throw new data exception exception caught creating a session bo return session end create
creates a new session with a unique identifier store and employee
public late fee bo create throws data exception late fee bo bo try string guid guid generate bo new late fee 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 late fee bo return bo end create
create late fee bo object
public string to string number format fmt number format get currency instance return size mb fmt format price
convert to string
public file bo create throws data exception file bo file try string guid guid generate file new file bo guid file set object already in db false cache get instance put guid file catch exception e throw new data exception exception caught creating a file bo return file end create
create a new file bo
public store product bo create throws data exception store product bo sp try string guid guid generate sp new store product bo guid sp set object already in db false cache get instance put guid sp catch exception e throw new data exception exception caught creating a store product bo return sp end create
creates a new store product bo with just a unique identifier
public physical bo create throws data exception physical bo item try string guid guid generate item new physical bo guid item set object already in db false cache get instance put guid item catch exception e throw new data exception exception caught creating a physical bo return item end create
create an object of physical bo
public service repair bo create throws data exception service repair bo repair try string guid guid generate repair new service repair bo guid repair set object already in db false cache get instance put guid repair catch exception e throw new data exception exception caught creating a service repair bo return repair end create
create service repair bo object
public employee bo get employee return emp
gets the employee object
public void set emp employee bo emp this set dirty true this emp emp
sets the employee object
public void delete service repair bo repair throws runtime exception throw new runtime exception this method cannot be called
the delete method is not implemented due to restrictions imposed
public date get date started return date started
gets the time this session is started
public void set date started date start date this set dirty true this date started start date
sets the time and date the session started
public date get date ended return date ended
gets the time and date this session ends
public void set date ended date end date this set dirty true this date ended end date
sets the time and date this session ends
public void set quantity boolean test int quantity this quantity quantity if test this quantity 1 if product null set price product get price quantity notify rev source alert
sets the quantity for this sale
public physical bo get by sku string serial number throws data exception physical bo physical try conn connection pool get instance get physical get by sku serial number conn connection pool get instance release conn catch exception e throw new data exception exception caught reading physical e return physical
this is the public get by sku method
public void set product id string product id this product id product id set price product get price quantity notify rev source alert
sets the product id
public store bo create throws data exception store bo store try string guid guid generate store new store bo guid store set object already in db false cache get instance put guid store catch exception e throw new data exception exception caught creating a store bo return store end create
creates a store business object with just a unique identifier
public void set product product bo product this product product set price product get price quantity notify rev source alert
sets the product
public sale dao get dao return sale dao get instance
gets the correct dao
public jpanel get gui return new sale options this
gets the proper graphical user interface
public string get description string description if product null description product get product description description description qty quantity return description
gets the description for the revenue source
public sale bo create throws data exception sale bo sale try string guid guid generate sale new sale bo guid sale set type sale sale set object already in db false cache get instance put guid sale catch exception e throw new data exception exception caught creating a sale bo return sale
this create method creates a new sale object with a unique identifier
public photo set bo create throws data exception photo set bo photo try string guid guid generate photo new photo set bo guid photo set object already in db false cache get instance put guid photo catch exception e throw new data exception exception caught creating a photo set return photo end create
create photo set bo object
public string get conceptual id return conceptual id
gets the conceptual id
public string get po id return po id
gets the purchase order
public void set po id string po id this set dirty true this po id po id
sets the po id
public void set quantity int quantity this set dirty true this quantity quantity
sets the quantity to be ordered
public vendor bo create throws data exception vendor bo vendor try string guid guid generate vendor new vendor bo guid vendor set object already in db false cache get instance put guid vendor catch exception e throw new data exception exception caught creating a vendor bo return vendor end create
creates a new vendor bo with a unique identifier
public service repair bo get repair bo return repair bo
get repair bo object
public void set conceptual conceptual bo conceptual this set dirty true this conceptual conceptual
sets the conceptual bo
public void set repair bo service repair bo repair bo this repair bo repair bo notify rev source alert
set repair bo object
public void set cost double cost this set dirty true this cost cost
sets the cost
public conversion service bo get conv service return conv service
get conversion service bo object
public void set conv service conversion service bo conv service this conv service conv service
conversion service bo object
public void set cust customer bo cust this cust cust put data in labels name set text cust get fname cust get mname cust get lname address set text cust get street n cust get city cust get state cust get zip phone set text cust get phone
sets the customer bo