Class GeneratedAgreement

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

public abstract class GeneratedAgreement extends GenericItem
Generated class for type Agreement.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedAgreement

      public GeneratedAgreement()
  • Method Details

    • getDefaultAttributeModes

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

      public Company getBuyer(SessionContext ctx)
      Generated method - Getter of the Agreement.buyer attribute.
      Returns:
      the buyer - buyer
    • getBuyer

      public Company getBuyer()
      Generated method - Getter of the Agreement.buyer attribute.
      Returns:
      the buyer - buyer
    • setBuyer

      public void setBuyer(SessionContext ctx, Company value)
      Generated method - Setter of the Agreement.buyer attribute.
      Parameters:
      value - the buyer - buyer
    • setBuyer

      public void setBuyer(Company value)
      Generated method - Setter of the Agreement.buyer attribute.
      Parameters:
      value - the buyer - buyer
    • getBuyerContact

      public User getBuyerContact(SessionContext ctx)
      Generated method - Getter of the Agreement.buyerContact attribute.
      Returns:
      the buyerContact - buyerContact
    • getBuyerContact

      public User getBuyerContact()
      Generated method - Getter of the Agreement.buyerContact attribute.
      Returns:
      the buyerContact - buyerContact
    • setBuyerContact

      public void setBuyerContact(SessionContext ctx, User value)
      Generated method - Setter of the Agreement.buyerContact attribute.
      Parameters:
      value - the buyerContact - buyerContact
    • setBuyerContact

      public void setBuyerContact(User value)
      Generated method - Setter of the Agreement.buyerContact attribute.
      Parameters:
      value - the buyerContact - buyerContact
    • getCatalogVersion

      public CatalogVersion getCatalogVersion(SessionContext ctx)
      Generated method - Getter of the Agreement.catalogVersion attribute.
      Returns:
      the catalogVersion
    • getCatalogVersion

      public CatalogVersion getCatalogVersion()
      Generated method - Getter of the Agreement.catalogVersion attribute.
      Returns:
      the catalogVersion
    • setCatalogVersion

      public void setCatalogVersion(SessionContext ctx, CatalogVersion value)
      Generated method - Setter of the Agreement.catalogVersion attribute.
      Parameters:
      value - the catalogVersion
    • setCatalogVersion

      public void setCatalogVersion(CatalogVersion value)
      Generated method - Setter of the Agreement.catalogVersion attribute.
      Parameters:
      value - the catalogVersion
    • 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
    • getCurrency

      public Currency getCurrency(SessionContext ctx)
      Generated method - Getter of the Agreement.currency attribute.
      Returns:
      the currency - currency
    • getCurrency

      public Currency getCurrency()
      Generated method - Getter of the Agreement.currency attribute.
      Returns:
      the currency - currency
    • setCurrency

      public void setCurrency(SessionContext ctx, Currency value)
      Generated method - Setter of the Agreement.currency attribute.
      Parameters:
      value - the currency - currency
    • setCurrency

      public void setCurrency(Currency value)
      Generated method - Setter of the Agreement.currency attribute.
      Parameters:
      value - the currency - currency
    • getEnddate

      public Date getEnddate(SessionContext ctx)
      Generated method - Getter of the Agreement.enddate attribute.
      Returns:
      the enddate - Agreement ID
    • getEnddate

      public Date getEnddate()
      Generated method - Getter of the Agreement.enddate attribute.
      Returns:
      the enddate - Agreement ID
    • setEnddate

      public void setEnddate(SessionContext ctx, Date value)
      Generated method - Setter of the Agreement.enddate attribute.
      Parameters:
      value - the enddate - Agreement ID
    • setEnddate

      public void setEnddate(Date value)
      Generated method - Setter of the Agreement.enddate attribute.
      Parameters:
      value - the enddate - Agreement ID
    • getId

      public String getId(SessionContext ctx)
      Generated method - Getter of the Agreement.id attribute.
      Returns:
      the id - Agreement ID
    • getId

      public String getId()
      Generated method - Getter of the Agreement.id attribute.
      Returns:
      the id - Agreement ID
    • setId

      public void setId(SessionContext ctx, String value)
      Generated method - Setter of the Agreement.id attribute.
      Parameters:
      value - the id - Agreement ID
    • setId

      public void setId(String value)
      Generated method - Setter of the Agreement.id attribute.
      Parameters:
      value - the id - Agreement ID
    • getStartdate

      public Date getStartdate(SessionContext ctx)
      Generated method - Getter of the Agreement.startdate attribute.
      Returns:
      the startdate - Start Date
    • getStartdate

      public Date getStartdate()
      Generated method - Getter of the Agreement.startdate attribute.
      Returns:
      the startdate - Start Date
    • setStartdate

      public void setStartdate(SessionContext ctx, Date value)
      Generated method - Setter of the Agreement.startdate attribute.
      Parameters:
      value - the startdate - Start Date
    • setStartdate

      public void setStartdate(Date value)
      Generated method - Setter of the Agreement.startdate attribute.
      Parameters:
      value - the startdate - Start Date
    • getSupplier

      public Company getSupplier(SessionContext ctx)
      Generated method - Getter of the Agreement.supplier attribute.
      Returns:
      the supplier - supplier
    • getSupplier

      public Company getSupplier()
      Generated method - Getter of the Agreement.supplier attribute.
      Returns:
      the supplier - supplier
    • setSupplier

      public void setSupplier(SessionContext ctx, Company value)
      Generated method - Setter of the Agreement.supplier attribute.
      Parameters:
      value - the supplier - supplier
    • setSupplier

      public void setSupplier(Company value)
      Generated method - Setter of the Agreement.supplier attribute.
      Parameters:
      value - the supplier - supplier
    • getSupplierContact

      public User getSupplierContact(SessionContext ctx)
      Generated method - Getter of the Agreement.supplierContact attribute.
      Returns:
      the supplierContact - supplierContact
    • getSupplierContact

      public User getSupplierContact()
      Generated method - Getter of the Agreement.supplierContact attribute.
      Returns:
      the supplierContact - supplierContact
    • setSupplierContact

      public void setSupplierContact(SessionContext ctx, User value)
      Generated method - Setter of the Agreement.supplierContact attribute.
      Parameters:
      value - the supplierContact - supplierContact
    • setSupplierContact

      public void setSupplierContact(User value)
      Generated method - Setter of the Agreement.supplierContact attribute.
      Parameters:
      value - the supplierContact - supplierContact