Package com.jdbc.model
Class DB2024TEAM07_Restaurant
java.lang.Object
com.jdbc.model.DB2024TEAM07_Restaurant
DB 2024 team 07 restaurant.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) StringThe Address.(package private) StringThe Break time.(package private) StringThe Cuisine type.(package private) StringThe Location.(package private) StringThe Operating hours.(package private) StringThe Phone num.(package private) floatThe Rating.(package private) intThe Res id.(package private) StringThe Res name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets address.Gets break time.Gets cuisine type.Gets location.Gets operating hours.Gets phone num.floatGets rating.intGets res id.Gets res name.voidsetAddress(String address) Sets address.voidsetBreak_time(String break_time) Sets break time.voidsetCuisine_type(String cuisine_type) Sets cuisine type.voidsetLocation(String location) Sets location.voidsetOperating_hours(String operating_hours) Sets operating hours.voidsetPhone_num(String phone_num) Sets phone num.voidsetRating(float rating) Sets rating.voidsetRes_id(int res_id) Sets res id.voidsetRes_name(String res_name) Sets res name.toString()Overrides the `toString` method to provide a formatted representation of the DB2024TEAM07_Restaurant object.
-
Field Details
-
res_name
String res_nameThe Res name. -
res_id
int res_idThe Res id. -
phone_num
String phone_numThe Phone num. -
address
String addressThe Address. -
operating_hours
String operating_hoursThe Operating hours. -
break_time
String break_timeThe Break time. -
rating
float ratingThe Rating. -
cuisine_type
String cuisine_typeThe Cuisine type. -
location
String locationThe Location.
-
-
Constructor Details
-
DB2024TEAM07_Restaurant
public DB2024TEAM07_Restaurant(String res_name, int res_id, String phone_num, String address, String operating_hours, String break_time, float rating, String cuisine_type, String location) Instantiates a new Db 2024 team 07 restaurant.- Parameters:
res_name- the res nameres_id- the res idphone_num- the phone numaddress- the addressoperating_hours- the operating hoursbreak_time- the break timerating- the ratingcuisine_type- the cuisine typelocation- the location
-
-
Method Details
-
getRes_name
Gets res name.- Returns:
- the res name
-
setRes_name
Sets res name.- Parameters:
res_name- the res 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
-
getPhone_num
Gets phone num.- Returns:
- the phone num
-
setPhone_num
Sets phone num.- Parameters:
phone_num- the phone num
-
getAddress
Gets address.- Returns:
- the address
-
setAddress
Sets address.- Parameters:
address- the address
-
getOperating_hours
Gets operating hours.- Returns:
- the operating hours
-
setOperating_hours
Sets operating hours.- Parameters:
operating_hours- the operating hours
-
getBreak_time
Gets break time.- Returns:
- the break time
-
setBreak_time
Sets break time.- Parameters:
break_time- the break time
-
getRating
public float getRating()Gets rating.- Returns:
- the rating
-
setRating
public void setRating(float rating) Sets rating.- Parameters:
rating- the rating
-
getCuisine_type
Gets cuisine type.- Returns:
- the cuisine type
-
setCuisine_type
Sets cuisine type.- Parameters:
cuisine_type- the cuisine type
-
getLocation
Gets location.- Returns:
- the location
-
setLocation
Sets location.- Parameters:
location- the location
-
toString
Overrides the `toString` method to provide a formatted representation of the DB2024TEAM07_Restaurant object.
-