Class Account
java.lang.Object
org.mybatis.jpetstore.domain.Account
- All Implemented Interfaces:
Serializable
The Class Account.
- Author:
- Eduardo Macarron
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the address1.Gets the address2.Gets the banner name.getCity()Gets the city.Gets the country.getEmail()Gets the email.Gets the favourite category id.Gets the first name.Gets the language preference.Gets the last name.Gets the password.getPhone()Gets the phone.getState()Gets the state.Gets the status.Gets the username.getZip()Gets the zip.booleanChecks if is banner option.booleanChecks if is list option.voidsetAddress1(String address1) Sets the address1.voidsetAddress2(String address2) Sets the address2.voidsetBannerName(String bannerName) Sets the banner name.voidsetBannerOption(boolean bannerOption) Sets the banner option.voidSets the city.voidsetCountry(String country) Sets the country.voidSets the email.voidsetFavouriteCategoryId(String favouriteCategoryId) Sets the favourite category id.voidsetFirstName(String firstName) Sets the first name.voidsetLanguagePreference(String languagePreference) Sets the language preference.voidsetLastName(String lastName) Sets the last name.voidsetListOption(boolean listOption) Sets the list option.voidsetPassword(String password) Sets the password.voidSets the phone.voidSets the state.voidSets the status.voidsetUsername(String username) Sets the username.voidSets the zip.
-
Constructor Details
-
Account
public Account()
-
-
Method Details
-
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getEmail
-
setEmail
-
getFirstName
-
setFirstName
@Validate(required=true, on={"newAccount","editAccount"}) public void setFirstName(String firstName) Sets the first name.- Parameters:
firstName- the first name
-
getLastName
-
setLastName
Sets the last name.- Parameters:
lastName- the last name
-
getStatus
-
setStatus
-
getAddress1
-
setAddress1
-
getAddress2
-
setAddress2
-
getCity
-
setCity
-
getState
-
setState
-
getZip
-
setZip
-
getCountry
-
setCountry
-
getPhone
-
setPhone
-
getFavouriteCategoryId
Gets the favourite category id.- Returns:
- the favourite category id
-
setFavouriteCategoryId
Sets the favourite category id.- Parameters:
favouriteCategoryId- the favourite category id
-
getLanguagePreference
Gets the language preference.- Returns:
- the language preference
-
setLanguagePreference
Sets the language preference.- Parameters:
languagePreference- the language preference
-
isListOption
public boolean isListOption()Checks if is list option.- Returns:
- true, if successful
-
setListOption
public void setListOption(boolean listOption) Sets the list option.- Parameters:
listOption- the list option
-
isBannerOption
public boolean isBannerOption()Checks if is banner option.- Returns:
- true, if successful
-
setBannerOption
public void setBannerOption(boolean bannerOption) Sets the banner option.- Parameters:
bannerOption- the banner option
-
getBannerName
-
setBannerName
Sets the banner name.- Parameters:
bannerName- the banner name
-