com.hack23.cia.model.internal.application.user.impl
Class User

Package class diagram package User
java.lang.Object
  extended by com.hack23.cia.model.internal.application.user.impl.User
All Implemented Interfaces:
ModelObject, Serializable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode

@Entity(name="User")
public class User
extends Object
implements Serializable, ModelObject, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode

Java class for User complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="User">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="modelObjectId" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
         <element name="modelObjectVersion" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
         <element name="country" type="{http://data.application.internal.model.cia.hack23.com/impl}AggregatedCountryData" minOccurs="0"/>
         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="email" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="userId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="password" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="numberOfVisits" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
         <element name="address" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
         <element name="type" type="{http://user.application.internal.model.cia.hack23.com/impl}UserType" minOccurs="0"/>
         <element name="role" type="{http://user.application.internal.model.cia.hack23.com/impl}UserRole" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  List<String> address
           
protected  List<UserAddressItem> addressItems
           
protected  AggregatedCountryData country
           
protected  String email
           
protected  Long hjid
           
protected  Integer modelObjectId
           
protected  Integer modelObjectVersion
           
protected  String name
           
protected  Integer numberOfVisits
           
protected  String password
           
protected  UserRole role
           
protected  UserType type
           
protected  String userId
           
 
Constructor Summary
User()
           
 
Method Summary
 boolean equals(Object object)
           
 boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
           
 List<String> getAddress()
          Gets the value of the address property.
 List<UserAddressItem> getAddressItems()
           
 AggregatedCountryData getCountry()
          Gets the value of the country property.
 String getEmail()
          Gets the value of the email property.
 Long getHjid()
          Gets the value of the hjid property.
 Integer getModelObjectId()
          Gets the value of the modelObjectId property.
 Integer getModelObjectVersion()
          Gets the value of the modelObjectVersion property.
 String getName()
          Gets the value of the name property.
 Integer getNumberOfVisits()
          Gets the value of the numberOfVisits property.
 String getPassword()
          Gets the value of the password property.
 UserRole getRole()
          Gets the value of the role property.
 UserType getType()
          Gets the value of the type property.
 String getUserId()
          Gets the value of the userId property.
 int hashCode()
           
 int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
           
 void setAddress(List<String> address)
           
 void setAddressItems(List<UserAddressItem> value)
           
 void setCountry(AggregatedCountryData value)
          Sets the value of the country property.
 void setEmail(String value)
          Sets the value of the email property.
 void setHjid(Long value)
          Sets the value of the hjid property.
 void setModelObjectId(Integer value)
          Sets the value of the modelObjectId property.
 void setModelObjectVersion(Integer value)
          Sets the value of the modelObjectVersion property.
 void setName(String value)
          Sets the value of the name property.
 void setNumberOfVisits(Integer value)
          Sets the value of the numberOfVisits property.
 void setPassword(String value)
          Sets the value of the password property.
 void setRole(UserRole value)
          Sets the value of the role property.
 void setType(UserType value)
          Sets the value of the type property.
 void setUserId(String value)
          Sets the value of the userId property.
 User withAddress(Collection<String> values)
           
 User withAddress(List<String> address)
           
 User withAddress(String... values)
           
 User withCountry(AggregatedCountryData value)
           
 User withEmail(String value)
           
 User withModelObjectId(Integer value)
           
 User withModelObjectVersion(Integer value)
           
 User withName(String value)
           
 User withNumberOfVisits(Integer value)
           
 User withPassword(String value)
           
 User withRole(UserRole value)
           
 User withType(UserType value)
           
 User withUserId(String value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelObjectId

protected Integer modelObjectId

modelObjectVersion

protected Integer modelObjectVersion

country

protected AggregatedCountryData country

name

protected String name

email

protected String email

userId

protected String userId

password

protected String password

numberOfVisits

protected Integer numberOfVisits

address

protected List<String> address

type

protected UserType type

role

protected UserRole role

hjid

protected Long hjid

addressItems

protected transient List<UserAddressItem> addressItems
Constructor Detail

User

public User()
Method Detail

getModelObjectId

public Integer getModelObjectId()
Gets the value of the modelObjectId property.

Returns:
possible object is Integer

setModelObjectId

public void setModelObjectId(Integer value)
Sets the value of the modelObjectId property.

Parameters:
value - allowed object is Integer

getModelObjectVersion

public Integer getModelObjectVersion()
Gets the value of the modelObjectVersion property.

Returns:
possible object is Integer

setModelObjectVersion

public void setModelObjectVersion(Integer value)
Sets the value of the modelObjectVersion property.

Parameters:
value - allowed object is Integer

getCountry

public AggregatedCountryData getCountry()
Gets the value of the country property.

Returns:
possible object is AggregatedCountryData

setCountry

public void setCountry(AggregatedCountryData value)
Sets the value of the country property.

Parameters:
value - allowed object is AggregatedCountryData

getName

public String getName()
Gets the value of the name property.

Returns:
possible object is String

setName

public void setName(String value)
Sets the value of the name property.

Parameters:
value - allowed object is String

getEmail

public String getEmail()
Gets the value of the email property.

Returns:
possible object is String

setEmail

public void setEmail(String value)
Sets the value of the email property.

Parameters:
value - allowed object is String

getUserId

public String getUserId()
Gets the value of the userId property.

Returns:
possible object is String

setUserId

public void setUserId(String value)
Sets the value of the userId property.

Parameters:
value - allowed object is String

getPassword

public String getPassword()
Gets the value of the password property.

Returns:
possible object is String

setPassword

public void setPassword(String value)
Sets the value of the password property.

Parameters:
value - allowed object is String

getNumberOfVisits

public Integer getNumberOfVisits()
Gets the value of the numberOfVisits property.

Returns:
possible object is Integer

setNumberOfVisits

public void setNumberOfVisits(Integer value)
Sets the value of the numberOfVisits property.

Parameters:
value - allowed object is Integer

getAddress

public List<String> getAddress()
Gets the value of the address property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the address property.

For example, to add a new item, do as follows:

    getAddress().add(newItem);
 

Objects of the following type(s) are allowed in the list String


setAddress

public void setAddress(List<String> address)

getType

public UserType getType()
Gets the value of the type property.

Returns:
possible object is UserType

setType

public void setType(UserType value)
Sets the value of the type property.

Parameters:
value - allowed object is UserType

getRole

public UserRole getRole()
Gets the value of the role property.

Returns:
possible object is UserRole

setRole

public void setRole(UserRole value)
Sets the value of the role property.

Parameters:
value - allowed object is UserRole

withModelObjectId

public User withModelObjectId(Integer value)

withModelObjectVersion

public User withModelObjectVersion(Integer value)

withCountry

public User withCountry(AggregatedCountryData value)

withName

public User withName(String value)

withEmail

public User withEmail(String value)

withUserId

public User withUserId(String value)

withPassword

public User withPassword(String value)

withNumberOfVisits

public User withNumberOfVisits(Integer value)

withAddress

public User withAddress(String... values)

withAddress

public User withAddress(Collection<String> values)

withAddress

public User withAddress(List<String> address)

withType

public User withType(UserType value)

withRole

public User withRole(UserRole value)

getHjid

public Long getHjid()
Gets the value of the hjid property.

Returns:
possible object is Long

setHjid

public void setHjid(Long value)
Sets the value of the hjid property.

Parameters:
value - allowed object is Long

getAddressItems

public List<UserAddressItem> getAddressItems()

setAddressItems

public void setAddressItems(List<UserAddressItem> value)

equals

public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                      org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                      Object object,
                      org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
Specified by:
equals in interface org.jvnet.jaxb2_commons.lang.Equals

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                    org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
Specified by:
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2008-2011 www.hack23.com. All Rights Reserved.