input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public string create description you should create the descrption here a super set description this is an example descrption return super get description | the method used to derive the description may vary from revenue source |
public double calc price you should calculate the price here super set price 0 return super get price | the price must be set in the revenue source object |
public void set date date date this date date set dirty true | this method gets the date |
public void set transaction transaction bo transaction this transaction transaction get id set dirty true | this method sets the transaction |
public void set status string newstatus throws data exception this is to make sure that someone an change the status to finished but if the status is already finished no one can change it and therefore teh dao won t let it be updated if status equals finished this status newstatus set dirty true status changed true else throw new data exception you cannot edit a transaction that has a status of finished | this method sets the status |
public double get subtotal throws data exception revenue source bo rev get revenue source conceptual coupon bo c get coupon double amount if there is a coupon it wil get the amount if coupon null amount c get amount else amount 0 set subtotal rev get price rev get quantity amount return subtotal | this method calculates and returns the sub total |
public void set employee employee bo employee this employee employee set dirty true | this method sets the employee in this current opts |
public void set backup size double backup size this backup size backup size | sets the backup size |
public boolean get backup notice return backup notice | gets the backup notice |
public void set backup notice boolean backup notice this backup notice backup notice | sets the backup notice |
public date get backup end date return backup end date | gets the backup end date |
public void set backup end date date backup end date this backup end date backup end date | gets the backup end date |
public void set payment payment bo payment this payment payment set dirty true | this method sets the payement |
public void set transaction list list transaction line bo transaction list this transaction list transaction list set dirty true | this method sets the transaction list |
public current opts bo get current opts throws data exception return current opts dao get instance read current opts | this method gets the current opts object |
public void set current rental rental bo current rental this current rental id current rental get id set dirty true | sets the current rental |
public rental bo get current rental throws data exception return rental bo rental dao get instance read current rental id | gets the current rental |
public void set icon string url this icon url | sets the icon url |
public void set current rental id string current rental id this current rental id current rental id set dirty true | sets the current rental id |
public string get current rental id return current rental id | gets the current rental id |
public void set times rented int times rented this times rented times rented set dirty true | sets the number of times rented |
public void set current opts current opts bo current opts this current opts current opts get id set dirty true | this method sets the current opts object |
public void set subtotal double subtotal this subtotal subtotal set dirty true | this method sets the sub total |
public void set tax double tax this tax tax set dirty true | this method sets the sub tax |
public void set total double total this total total set dirty true | this method sets the total |
public void set tax rate double tax rate this tax rate tax rate set dirty true | this method sets the tax rate |
public transaction bo get original trans throws data exception return transaction dao get instance read original trans | this method gets the original transaction for returns |
public void set product name string product name this product name product name set dirty true | sets the product name |
public void set manufacturer string manufacturer this manufacturer manufacturer set dirty true | sets the manufacturer |
public void set average cost string average cost this average cost average cost set dirty true | this method sets the average cost |
public void set original trans transaction bo original trans throws data exception this original trans original trans get id set dirty true | this method gets the original transaction for returns |
public void set warranty id string warranty id this warranty id warranty id | sets the warranty id |
public void set customer customer bo customer this customer customer get id set dirty true | this method setss the customer |
public customer bo get customer throws data exception return customer dao get instance read customer | this method gets the customer |
private void calculate tax tax subtotal tax rate | this method calculates the tax |
private void calculate total total subtotal tax | this method calculates the total |
public revenue source dao get dao string name return revenue source dao factory get name | gets the dao that correspons with a type |
public string create description set description get backup size gb backup service date get begin date to get end date return get description | the method creates the description of the backup |
public double calc price set price get conceptual backup get price get backup size get months between get begin date get end date return get price | this method calculates the price of the backup |
public double get backup size return backup size | this method gets the size |
public print format read print format string guid throws exception print format p null connection conn connection pool get instance get p read print format guid conn return p | this is the public read statement |
public conceptual backup bo get conceptual backup return conceptual backup | this method sets the conceptual backup |
public void set conceptual backup conceptual backup bo conceptual backup this conceptual backup conceptual backup | this method sets the conceptual backup |
public int get months between date d1 date d2 calendar c1 calendar get instance calendar c2 calendar get instance int month diff 0 c1 set time d1 c2 set time d2 if d2 before d1 c1 set time d2 c2 set time d1 while c1 before c2 c1 add calendar month 1 month diff return month diff | this method calcualtes the date between two dates |
public date add months date d1 double length calendar c1 calendar get instance int month diff 0 c1 set time d1 for int i 0 i length i c1 add calendar month 1 return new date c1 get time in millis | this method adds months to a date |
public void set vendor id string vendor id this vendor id vendor id set dirty true | this method sets the vendor |
public transaction line bo get line return line | this method gets the transaction line |
public void set product id string product id this product id product id set dirty true | this method sets the product |
public void set line transaction line bo line this line line | this method sets the transaction line for the backup |
public void set quantity int quantity this quantity quantity set dirty true | this method sets the quantity |
public void set unit price int unit price this unit price unit price set dirty true | this method sets the unit price |
public void set change double change this change change set dirty true | this method sets the change |
public void set id string id this id id this set dirty true | sets the id |
public void set days late int days late this days late days late set dirty true | sets the days late |
public string create description string desc null try desc fee dao get instance read this get id create description catch data exception e e print stack trace return desc | creates a description |
public double calc price double price 0 try price fee dao get instance read this get id calc price catch data exception e e print stack trace return price | calculates and returns the price |
public int get days late try if days late 0 days late fee bo fee dao get instance read this get id get rental calc days overdue catch data exception e e print stack trace return days late | gets the number of days late |
public void set rental rental bo rental this rental rental set dirty true | sets the rental bo |
public rental bo get rental return rental | gets the rental bo |
public void set date in date date in this date in date in set dirty true | sets the date in |
public void set rental revenue source bo rental this rental rental bo rental | sets the rental bo |
public double calc price int num days 0 double late fee per day 0 try string physical id rental get for rent get id string conceptual id physical bo physical dao get instance read physical id get conceptual get id late fee per day conceptual rental bo conceptual rental dao get instance read conceptual id get late fee per day num days rental calc days overdue catch data exception e e print stack trace this set price double num days late fee per day return double num days late fee per day | calculates and returns the price |
public string create description string full description null try string physical id rental get for rent get id string conc rent id physical bo physical dao get instance read physical id get conceptual get id string description conceptual rental dao get instance read conc rent id get description full description late fee description rental calc days overdue days overdue catch data exception e e print stack trace return full description | creates and returns a description |
public void set sold int sold this sold sold set dirty true | returns teh sold status |
public member bo get member member bo membership null try membership membership dao get instance read member catch data exception ex ex print stack trace return membership | gets the member |
public string get member id return member | gets the customer id |
public void set member member bo member this member member get id this set dirty true | sets the member |
public void set member id string member this member member this set dirty true | sets the member |
public list get all products by store string id list list new linked list connection conn null this might cause problems later try conn connection pool get instance get list get all products by store id conn catch connection pool exception ex ex print stack trace catch data exception dex dex print stack trace catch sqlexception ex try conn rollback catch sqlexception exe system out println really big error cant rollback in store dao ex print stack trace ex print stack trace return list | thie method gets all of the products in a store |
public void set extension string extension this extension extension this set dirty true | sets the extension |
public long get size of file return size of file | gets teh size of the file |
public void set size of file long size of file this size of file size of file this set dirty true | sets the size of the file |
public file item get file info return file info | get the file |
public void set file info file item file info this file info file info this set dirty true | set the file |
public void set input input stream input this input input this set dirty true | sets the input stream |
public conversion discount read conv discount string guid throws exception conversion discount p null connection conn connection pool get instance get p read conv discount guid conn return p | this is the public read statement |
public conversion discount read dicount for tx int quantity throws exception connection conn connection pool get instance get return read discount for tx quantity conn | read discount for tx |
public photo set read photo set string guid throws exception connection conn connection pool get instance get photo set p read photo set guid conn return p | this is the public read statement |
public vendor product bo create throws data exception try string id guid generate vendor product bo object new vendor product bo object set id id cache get instance put object get id object return object catch exception e throw new data exception could not create guid e | creates a bo |
public void set line transaction line bo line this line line set dirty true | sets the tx line bo |
public transaction line bo get line try line transaction line dao get instance read by revenue source id this get id catch data exception e e print stack trace return line | gets the tx line bo |
public string create description string desc null try set for rent id get for rent get id desc physical bo physical dao get instance read get for rent id get conceptual get description catch data exception e e print stack trace set description desc return desc | creates a description |
public conceptual backup bo get latest connection conn throws sqlexception data exception prepared statement pstmt conn prepare statement select from conceptual backup where date made select max date made from conceptual backup pstmt execute result set rs pstmt get result set conceptual backup bo object new conceptual backup bo if rs next object set id rs get string conceptual backup id object set price rs get double price object set date rs get date date made sets already in database object set object already in db true return object | gets the latest information |
public date get date out return date out | gets the date rented |
public void set date out date date out this date out date out set dirty true | sets the date rented |
public void set first name string first name this first name first name set dirty true | sets the customers first name |
public date get date due return date due | gets the date due |
public for rent bo get for rent throws data exception if for rent null return for rent bo for rent dao get instance read for rent id return for rent | gets the for rent bo |
public void set for rent for rent bo for rent this for rent for rent set dirty true | sets the for rent bo |
public void set email string email this email email set dirty true | sets the customers email |
public void set for rent id string for rent id this for rent id for rent id set dirty true | sets the for rent bo id |
public member bo get member return member | returns the customers member object |
public void set member member bo member this member member set dirty true | sets the customers city |
public void set city string city this city city set dirty true | sets the customers member |
public void set state string state this state state set dirty true | sets the customers state |
public void set zip string zip this zip zip set dirty true | sets the customers zip |
public string create description set description return get description | calles the getters to create a description of the service |
public double calc price we set the price in the gui return get price | calculates the price of the service repair |
public void set date started date date started this date started date started | sets the start date |
public void set date completed date date completed this date completed date completed | sets the date completed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.