@Entity public class HeadQuarter extends Object
| Constructor and Description |
|---|
HeadQuarter()
Creates a new empty instance of
HeadQuarter. |
HeadQuarter(long headQuarterId,
String headquarterName,
String headquarterDescription,
String headquarterAddress,
String headquarterLocality,
String headquarterProvince)
Creates a new instance of
HeadQuarter without owner. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns if two classes are equals
|
String |
getHeadquarterAddress()
Returns the address of the HeadQuarter.
|
String |
getHeadquarterDescription()
Returns the description of the HeadQuarter.
|
long |
getHeadQuarterId()
Returns the id of the HeadQuarter.
|
String |
getHeadquarterLocality()
Returns the locality of the HeadQuarter.
|
String |
getHeadquarterName()
Returns the name of the HeadQuarter.
|
String |
getHeadquarterProvince()
Returns the province of the HeadQuarter.
|
int |
hashCode()
Returns the hascCode of the HeadQuarter.
|
void |
setHeadquarterAddress(String headquarterAddress)
Sets the address of the HeadQuarter.
|
void |
setHeadquarterDescription(String headquarterDescription)
Sets the description of the HeadQuarter.
|
void |
setHeadQuarterId(long headQuarterId)
Sets the id of the HeadQuarter.
|
void |
setHeadquarterLocality(String headquarterLocality)
Sets the locality of the HeadQuarter.
|
void |
setHeadquarterName(String headquarterName)
Sets the name of the HeadQuarter.
|
void |
setHeadquarterProvince(String headquarterProvince)
Sets the province of the HeadQuarter.
|
public HeadQuarter()
HeadQuarter.public HeadQuarter(long headQuarterId,
String headquarterName,
String headquarterDescription,
String headquarterAddress,
String headquarterLocality,
String headquarterProvince)
HeadQuarter without owner.headQuarterId - id of the HeadQuarter. This parameter must be a non empty and
non null long.headquarterName - the name HeadQuarter. This parameter can not be null.headquarterDescription - the description HeadQuarter. This parameter can not be null.headquarterAddress - the address HeadQuarter. This parameter can not be null.headquarterLocality - the locality HeadQuarter. This parameter can not be null.headquarterProvince - the province HeadQuarter. This parameter can not be null.NullPointerException - if a null value is passed as the
value for any parameter.IllegalArgumentException - if value provided for any parameter is
not valid according to its description.public long getHeadQuarterId()
public void setHeadQuarterId(long headQuarterId)
headQuarterId - the new id of the HeadQuarter. This parameter must be a non empty
and non null long.public String getHeadquarterName()
public void setHeadquarterName(String headquarterName)
headquarterName - the new name of the HeadQuarter. This parameter must be a non empty
and non null string with a length between 5 and 60 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is
not valid.public String getHeadquarterDescription()
public void setHeadquarterDescription(String headquarterDescription)
headquarterDescription - the new description of the HeadQuarter. This parameter must be a non empty
and non null string with a length between 10 and 240 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is
not valid.public String getHeadquarterAddress()
public void setHeadquarterAddress(String headquarterAddress)
headquarterAddress - the new address of the HeadQuarter. This parameter must be a non empty
and non null string with a length between 5 and 100 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is
not valid.public String getHeadquarterLocality()
public void setHeadquarterLocality(String headquarterLocality)
headquarterLocality - the new locality of the HeadQuarter. This parameter must be a non empty
and non null string with a length between 5 and 100 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is
not valid.public String getHeadquarterProvince()
public void setHeadquarterProvince(String headquarterProvince)
headquarterProvince - the new province of the HeadQuarter. This parameter must be a non empty
and non null string with a length between 5 and 100 chars.NullPointerException - if a null value is passed.IllegalArgumentException - if the length of the string passed is
not valid.public int hashCode()
Copyright © 2017. All rights reserved.