Package com.jdbc.model
Class DB2024TEAM07_Menu
java.lang.Object
com.jdbc.model.DB2024TEAM07_Menu
DB 2024 team 07 menu.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDB2024TEAM07_Menu(int menu_id, String menu_name, int res_id, int price) Instantiates a new Db 2024 team 07 menu. -
Method Summary
Modifier and TypeMethodDescriptionintGets menu id.Gets menu name.intgetPrice()Gets price.intGets res id.voidsetMenu_id(int menu_id) Sets menu id.voidsetMenu_name(String menu_name) Sets menu name.voidsetPrice(int price) Sets price.voidsetRes_id(int res_id) Sets res id.toString()Overrides the `toString` method to provide a formatted representation of the DB2024TEAM07_Menu object.
-
Field Details
-
res_id
int res_idThe Res id. -
price
int priceThe Price.
-
Constructor Details
-
DB2024TEAM07_Menu
Instantiates a new Db 2024 team 07 menu.- Parameters:
menu_id- the menu idmenu_name- the menu nameres_id- the res idprice- the price
-
-
Method Details
-
getMenu_id
public int getMenu_id()Gets menu id.- Returns:
- the menu id
-
setMenu_id
public void setMenu_id(int menu_id) Sets menu id.- Parameters:
menu_id- the menu id
-
getMenu_name
Gets menu name.- Returns:
- the menu name
-
setMenu_name
Sets menu name.- Parameters:
menu_name- the menu name
-
getRes_id
public int getRes_id()Gets res id.- Returns:
- the res id
-
setRes_id
public void setRes_id(int res_id) Sets res id.- Parameters:
res_id- the res id
-
getPrice
public int getPrice()Gets price.- Returns:
- the price
-
setPrice
public void setPrice(int price) Sets price.- Parameters:
price- the price
-
toString
Overrides the `toString` method to provide a formatted representation of the DB2024TEAM07_Menu object.
-