Package scheduler.model
Class Country
- java.lang.Object
-
- scheduler.model.Country
-
public class Country extends java.lang.ObjectClass to manage a Country Object
-
-
Field Summary
Fields Modifier and Type Field Description private intCountry_idprivate java.lang.Stringname
-
Constructor Summary
Constructors Constructor Description Country(int country_id, java.lang.String name)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCountry_id()Return the Country IDjava.lang.StringgetName()Get the country namevoidsetCountry_id(int country_id)Set the Country IDvoidsetName(java.lang.String name)Set the country namejava.lang.StringtoString()Overrides the .toString() function, so that a human readable name of the country is returned to the user
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Overrides the .toString() function, so that a human readable name of the country is returned to the user- Overrides:
toStringin classjava.lang.Object- Returns:
- String, Country name
-
getCountry_id
public int getCountry_id()
Return the Country ID- Returns:
- Integer, Country id
-
setCountry_id
public void setCountry_id(int country_id)
Set the Country ID- Parameters:
country_id- Integer, country id
-
getName
public java.lang.String getName()
Get the country name- Returns:
- String, name
-
setName
public void setName(java.lang.String name)
Set the country name- Parameters:
name- String, name
-
-