Class GeneratedAddress

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
Address

public abstract class GeneratedAddress extends GenericItem
Generated class for type Address.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedAddress

      public GeneratedAddress()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • getAppartment

      public String getAppartment(SessionContext ctx)
      Generated method - Getter of the Address.appartment attribute.
      Returns:
      the appartment
    • getAppartment

      public String getAppartment()
      Generated method - Getter of the Address.appartment attribute.
      Returns:
      the appartment
    • setAppartment

      public void setAppartment(SessionContext ctx, String value)
      Generated method - Setter of the Address.appartment attribute.
      Parameters:
      value - the appartment
    • setAppartment

      public void setAppartment(String value)
      Generated method - Setter of the Address.appartment attribute.
      Parameters:
      value - the appartment
    • getBuilding

      public String getBuilding(SessionContext ctx)
      Generated method - Getter of the Address.building attribute.
      Returns:
      the building
    • getBuilding

      public String getBuilding()
      Generated method - Getter of the Address.building attribute.
      Returns:
      the building
    • setBuilding

      public void setBuilding(SessionContext ctx, String value)
      Generated method - Setter of the Address.building attribute.
      Parameters:
      value - the building
    • setBuilding

      public void setBuilding(String value)
      Generated method - Setter of the Address.building attribute.
      Parameters:
      value - the building
    • getCellphone

      public String getCellphone(SessionContext ctx)
      Generated method - Getter of the Address.cellphone attribute.
      Returns:
      the cellphone
    • getCellphone

      public String getCellphone()
      Generated method - Getter of the Address.cellphone attribute.
      Returns:
      the cellphone
    • setCellphone

      public void setCellphone(SessionContext ctx, String value)
      Generated method - Setter of the Address.cellphone attribute.
      Parameters:
      value - the cellphone
    • setCellphone

      public void setCellphone(String value)
      Generated method - Setter of the Address.cellphone attribute.
      Parameters:
      value - the cellphone
    • getCompany

      public String getCompany(SessionContext ctx)
      Generated method - Getter of the Address.company attribute.
      Returns:
      the company
    • getCompany

      public String getCompany()
      Generated method - Getter of the Address.company attribute.
      Returns:
      the company
    • setCompany

      public void setCompany(SessionContext ctx, String value)
      Generated method - Setter of the Address.company attribute.
      Parameters:
      value - the company
    • setCompany

      public void setCompany(String value)
      Generated method - Setter of the Address.company attribute.
      Parameters:
      value - the company
    • getCountry

      public Country getCountry(SessionContext ctx)
      Generated method - Getter of the Address.country attribute.
      Returns:
      the country
    • getCountry

      public Country getCountry()
      Generated method - Getter of the Address.country attribute.
      Returns:
      the country
    • setCountry

      public void setCountry(SessionContext ctx, Country value)
      Generated method - Setter of the Address.country attribute.
      Parameters:
      value - the country
    • setCountry

      public void setCountry(Country value)
      Generated method - Setter of the Address.country attribute.
      Parameters:
      value - the country
    • createItem

      protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
      Description copied from class: Item
      Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

      In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
      Sn example:

      
       public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
       ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
       man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
       // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
       SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
       super.getNonInitialAttributes( ctx, allAttributes );
       // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
      
       
      Overrides:
      createItem in class GenericItem
      Parameters:
      ctx - the current session context which this item is created within
      type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
      Returns:
      the new item instance
      Throws:
      JaloBusinessException - indicates an error during creation - any changes will be rollbacked
    • getDateOfBirth

      public Date getDateOfBirth(SessionContext ctx)
      Generated method - Getter of the Address.dateOfBirth attribute.
      Returns:
      the dateOfBirth
    • getDateOfBirth

      public Date getDateOfBirth()
      Generated method - Getter of the Address.dateOfBirth attribute.
      Returns:
      the dateOfBirth
    • setDateOfBirth

      public void setDateOfBirth(SessionContext ctx, Date value)
      Generated method - Setter of the Address.dateOfBirth attribute.
      Parameters:
      value - the dateOfBirth
    • setDateOfBirth

      public void setDateOfBirth(Date value)
      Generated method - Setter of the Address.dateOfBirth attribute.
      Parameters:
      value - the dateOfBirth
    • getDepartment

      public String getDepartment(SessionContext ctx)
      Generated method - Getter of the Address.department attribute.
      Returns:
      the department
    • getDepartment

      public String getDepartment()
      Generated method - Getter of the Address.department attribute.
      Returns:
      the department
    • setDepartment

      public void setDepartment(SessionContext ctx, String value)
      Generated method - Setter of the Address.department attribute.
      Parameters:
      value - the department
    • setDepartment

      public void setDepartment(String value)
      Generated method - Setter of the Address.department attribute.
      Parameters:
      value - the department
    • getDistrict

      public String getDistrict(SessionContext ctx)
      Generated method - Getter of the Address.district attribute.
      Returns:
      the district
    • getDistrict

      public String getDistrict()
      Generated method - Getter of the Address.district attribute.
      Returns:
      the district
    • setDistrict

      public void setDistrict(SessionContext ctx, String value)
      Generated method - Setter of the Address.district attribute.
      Parameters:
      value - the district
    • setDistrict

      public void setDistrict(String value)
      Generated method - Setter of the Address.district attribute.
      Parameters:
      value - the district
    • isDuplicate

      public Boolean isDuplicate(SessionContext ctx)
      Generated method - Getter of the Address.duplicate attribute.
      Returns:
      the duplicate
    • isDuplicate

      public Boolean isDuplicate()
      Generated method - Getter of the Address.duplicate attribute.
      Returns:
      the duplicate
    • isDuplicateAsPrimitive

      public boolean isDuplicateAsPrimitive(SessionContext ctx)
      Generated method - Getter of the Address.duplicate attribute.
      Returns:
      the duplicate
    • isDuplicateAsPrimitive

      public boolean isDuplicateAsPrimitive()
      Generated method - Getter of the Address.duplicate attribute.
      Returns:
      the duplicate
    • setDuplicate

      public void setDuplicate(SessionContext ctx, Boolean value)
      Generated method - Setter of the Address.duplicate attribute.
      Parameters:
      value - the duplicate
    • setDuplicate

      public void setDuplicate(Boolean value)
      Generated method - Setter of the Address.duplicate attribute.
      Parameters:
      value - the duplicate
    • setDuplicate

      public void setDuplicate(SessionContext ctx, boolean value)
      Generated method - Setter of the Address.duplicate attribute.
      Parameters:
      value - the duplicate
    • setDuplicate

      public void setDuplicate(boolean value)
      Generated method - Setter of the Address.duplicate attribute.
      Parameters:
      value - the duplicate
    • getEmail

      public String getEmail(SessionContext ctx)
      Generated method - Getter of the Address.email attribute.
      Returns:
      the email
    • getEmail

      public String getEmail()
      Generated method - Getter of the Address.email attribute.
      Returns:
      the email
    • setEmail

      public void setEmail(SessionContext ctx, String value)
      Generated method - Setter of the Address.email attribute.
      Parameters:
      value - the email
    • setEmail

      public void setEmail(String value)
      Generated method - Setter of the Address.email attribute.
      Parameters:
      value - the email
    • getFax

      public String getFax(SessionContext ctx)
      Generated method - Getter of the Address.fax attribute.
      Returns:
      the fax
    • getFax

      public String getFax()
      Generated method - Getter of the Address.fax attribute.
      Returns:
      the fax
    • setFax

      public void setFax(SessionContext ctx, String value)
      Generated method - Setter of the Address.fax attribute.
      Parameters:
      value - the fax
    • setFax

      public void setFax(String value)
      Generated method - Setter of the Address.fax attribute.
      Parameters:
      value - the fax
    • getFirstname

      public String getFirstname(SessionContext ctx)
      Generated method - Getter of the Address.firstname attribute.
      Returns:
      the firstname
    • getFirstname

      public String getFirstname()
      Generated method - Getter of the Address.firstname attribute.
      Returns:
      the firstname
    • setFirstname

      public void setFirstname(SessionContext ctx, String value)
      Generated method - Setter of the Address.firstname attribute.
      Parameters:
      value - the firstname
    • setFirstname

      public void setFirstname(String value)
      Generated method - Setter of the Address.firstname attribute.
      Parameters:
      value - the firstname
    • getGender

      public EnumerationValue getGender(SessionContext ctx)
      Generated method - Getter of the Address.gender attribute.
      Returns:
      the gender
    • getGender

      public EnumerationValue getGender()
      Generated method - Getter of the Address.gender attribute.
      Returns:
      the gender
    • setGender

      public void setGender(SessionContext ctx, EnumerationValue value)
      Generated method - Setter of the Address.gender attribute.
      Parameters:
      value - the gender
    • setGender

      public void setGender(EnumerationValue value)
      Generated method - Setter of the Address.gender attribute.
      Parameters:
      value - the gender
    • getLastname

      public String getLastname(SessionContext ctx)
      Generated method - Getter of the Address.lastname attribute.
      Returns:
      the lastname
    • getLastname

      public String getLastname()
      Generated method - Getter of the Address.lastname attribute.
      Returns:
      the lastname
    • setLastname

      public void setLastname(SessionContext ctx, String value)
      Generated method - Setter of the Address.lastname attribute.
      Parameters:
      value - the lastname
    • setLastname

      public void setLastname(String value)
      Generated method - Setter of the Address.lastname attribute.
      Parameters:
      value - the lastname
    • getMiddlename

      public String getMiddlename(SessionContext ctx)
      Generated method - Getter of the Address.middlename attribute.
      Returns:
      the middlename
    • getMiddlename

      public String getMiddlename()
      Generated method - Getter of the Address.middlename attribute.
      Returns:
      the middlename
    • setMiddlename

      public void setMiddlename(SessionContext ctx, String value)
      Generated method - Setter of the Address.middlename attribute.
      Parameters:
      value - the middlename
    • setMiddlename

      public void setMiddlename(String value)
      Generated method - Setter of the Address.middlename attribute.
      Parameters:
      value - the middlename
    • getMiddlename2

      public String getMiddlename2(SessionContext ctx)
      Generated method - Getter of the Address.middlename2 attribute.
      Returns:
      the middlename2
    • getMiddlename2

      public String getMiddlename2()
      Generated method - Getter of the Address.middlename2 attribute.
      Returns:
      the middlename2
    • setMiddlename2

      public void setMiddlename2(SessionContext ctx, String value)
      Generated method - Setter of the Address.middlename2 attribute.
      Parameters:
      value - the middlename2
    • setMiddlename2

      public void setMiddlename2(String value)
      Generated method - Setter of the Address.middlename2 attribute.
      Parameters:
      value - the middlename2
    • getOriginal

      public Address getOriginal(SessionContext ctx)
      Generated method - Getter of the Address.original attribute.
      Returns:
      the original
    • getOriginal

      public Address getOriginal()
      Generated method - Getter of the Address.original attribute.
      Returns:
      the original
    • setOriginal

      protected void setOriginal(SessionContext ctx, Address value)
      Generated method - Setter of the Address.original attribute.
      Parameters:
      value - the original
    • setOriginal

      protected void setOriginal(Address value)
      Generated method - Setter of the Address.original attribute.
      Parameters:
      value - the original
    • getPhone1

      public String getPhone1(SessionContext ctx)
      Generated method - Getter of the Address.phone1 attribute.
      Returns:
      the phone1
    • getPhone1

      public String getPhone1()
      Generated method - Getter of the Address.phone1 attribute.
      Returns:
      the phone1
    • setPhone1

      public void setPhone1(SessionContext ctx, String value)
      Generated method - Setter of the Address.phone1 attribute.
      Parameters:
      value - the phone1
    • setPhone1

      public void setPhone1(String value)
      Generated method - Setter of the Address.phone1 attribute.
      Parameters:
      value - the phone1
    • getPhone2

      public String getPhone2(SessionContext ctx)
      Generated method - Getter of the Address.phone2 attribute.
      Returns:
      the phone2
    • getPhone2

      public String getPhone2()
      Generated method - Getter of the Address.phone2 attribute.
      Returns:
      the phone2
    • setPhone2

      public void setPhone2(SessionContext ctx, String value)
      Generated method - Setter of the Address.phone2 attribute.
      Parameters:
      value - the phone2
    • setPhone2

      public void setPhone2(String value)
      Generated method - Setter of the Address.phone2 attribute.
      Parameters:
      value - the phone2
    • getPobox

      public String getPobox(SessionContext ctx)
      Generated method - Getter of the Address.pobox attribute.
      Returns:
      the pobox
    • getPobox

      public String getPobox()
      Generated method - Getter of the Address.pobox attribute.
      Returns:
      the pobox
    • setPobox

      public void setPobox(SessionContext ctx, String value)
      Generated method - Setter of the Address.pobox attribute.
      Parameters:
      value - the pobox
    • setPobox

      public void setPobox(String value)
      Generated method - Setter of the Address.pobox attribute.
      Parameters:
      value - the pobox
    • getPostalcode

      public String getPostalcode(SessionContext ctx)
      Generated method - Getter of the Address.postalcode attribute.
      Returns:
      the postalcode
    • getPostalcode

      public String getPostalcode()
      Generated method - Getter of the Address.postalcode attribute.
      Returns:
      the postalcode
    • setPostalcode

      public void setPostalcode(SessionContext ctx, String value)
      Generated method - Setter of the Address.postalcode attribute.
      Parameters:
      value - the postalcode
    • setPostalcode

      public void setPostalcode(String value)
      Generated method - Setter of the Address.postalcode attribute.
      Parameters:
      value - the postalcode
    • getRegion

      public Region getRegion(SessionContext ctx)
      Generated method - Getter of the Address.region attribute.
      Returns:
      the region
    • getRegion

      public Region getRegion()
      Generated method - Getter of the Address.region attribute.
      Returns:
      the region
    • setRegion

      public void setRegion(SessionContext ctx, Region value)
      Generated method - Setter of the Address.region attribute.
      Parameters:
      value - the region
    • setRegion

      public void setRegion(Region value)
      Generated method - Setter of the Address.region attribute.
      Parameters:
      value - the region
    • getStreetname

      public String getStreetname(SessionContext ctx)
      Generated method - Getter of the Address.streetname attribute.
      Returns:
      the streetname
    • getStreetname

      public String getStreetname()
      Generated method - Getter of the Address.streetname attribute.
      Returns:
      the streetname
    • setStreetname

      public void setStreetname(SessionContext ctx, String value)
      Generated method - Setter of the Address.streetname attribute.
      Parameters:
      value - the streetname
    • setStreetname

      public void setStreetname(String value)
      Generated method - Setter of the Address.streetname attribute.
      Parameters:
      value - the streetname
    • getStreetnumber

      public String getStreetnumber(SessionContext ctx)
      Generated method - Getter of the Address.streetnumber attribute.
      Returns:
      the streetnumber
    • getStreetnumber

      public String getStreetnumber()
      Generated method - Getter of the Address.streetnumber attribute.
      Returns:
      the streetnumber
    • setStreetnumber

      public void setStreetnumber(SessionContext ctx, String value)
      Generated method - Setter of the Address.streetnumber attribute.
      Parameters:
      value - the streetnumber
    • setStreetnumber

      public void setStreetnumber(String value)
      Generated method - Setter of the Address.streetnumber attribute.
      Parameters:
      value - the streetnumber
    • getTitle

      public Title getTitle(SessionContext ctx)
      Generated method - Getter of the Address.title attribute.
      Returns:
      the title
    • getTitle

      public Title getTitle()
      Generated method - Getter of the Address.title attribute.
      Returns:
      the title
    • setTitle

      public void setTitle(SessionContext ctx, Title value)
      Generated method - Setter of the Address.title attribute.
      Parameters:
      value - the title
    • setTitle

      public void setTitle(Title value)
      Generated method - Setter of the Address.title attribute.
      Parameters:
      value - the title
    • getTown

      public String getTown(SessionContext ctx)
      Generated method - Getter of the Address.town attribute.
      Returns:
      the town
    • getTown

      public String getTown()
      Generated method - Getter of the Address.town attribute.
      Returns:
      the town
    • setTown

      public void setTown(SessionContext ctx, String value)
      Generated method - Setter of the Address.town attribute.
      Parameters:
      value - the town
    • setTown

      public void setTown(String value)
      Generated method - Setter of the Address.town attribute.
      Parameters:
      value - the town