Class GeneratedAgreement

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable
    Direct Known Subclasses:
    Agreement

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

      • ID

        public static final java.lang.String ID
        Qualifier of the Agreement.id attribute
        See Also:
        Constant Field Values
      • STARTDATE

        public static final java.lang.String STARTDATE
        Qualifier of the Agreement.startdate attribute
        See Also:
        Constant Field Values
      • ENDDATE

        public static final java.lang.String ENDDATE
        Qualifier of the Agreement.enddate attribute
        See Also:
        Constant Field Values
      • CATALOG

        public static final java.lang.String CATALOG
        Qualifier of the Agreement.Catalog attribute
        See Also:
        Constant Field Values
      • BUYER

        public static final java.lang.String BUYER
        Qualifier of the Agreement.buyer attribute
        See Also:
        Constant Field Values
      • SUPPLIER

        public static final java.lang.String SUPPLIER
        Qualifier of the Agreement.supplier attribute
        See Also:
        Constant Field Values
      • BUYERCONTACT

        public static final java.lang.String BUYERCONTACT
        Qualifier of the Agreement.buyerContact attribute
        See Also:
        Constant Field Values
      • SUPPLIERCONTACT

        public static final java.lang.String SUPPLIERCONTACT
        Qualifier of the Agreement.supplierContact attribute
        See Also:
        Constant Field Values
      • CURRENCY

        public static final java.lang.String CURRENCY
        Qualifier of the Agreement.currency attribute
        See Also:
        Constant Field Values
      • CATALOGVERSION

        public static final java.lang.String CATALOGVERSION
        Qualifier of the Agreement.catalogVersion attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedAgreement

        public GeneratedAgreement()
    • Method Detail

      • 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 java.util.Date getEnddate​(SessionContext ctx)
        Generated method - Getter of the Agreement.enddate attribute.
        Returns:
        the enddate - Agreement ID
      • getEnddate

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

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

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

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

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

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

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

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

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

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

        public void setStartdate​(java.util.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