Class GeneratedB2BDocument

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

public abstract class GeneratedB2BDocument extends GenericItem
Generated class for type B2BDocument.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedB2BDocument

      public GeneratedB2BDocument()
  • Method Details

    • getDefaultAttributeModes

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

      public BigDecimal getAmount(SessionContext ctx)
      Generated method - Getter of the B2BDocument.amount attribute.
      Returns:
      the amount - amount
    • getAmount

      public BigDecimal getAmount()
      Generated method - Getter of the B2BDocument.amount attribute.
      Returns:
      the amount - amount
    • setAmount

      public void setAmount(SessionContext ctx, BigDecimal value)
      Generated method - Setter of the B2BDocument.amount attribute.
      Parameters:
      value - the amount - amount
    • setAmount

      public void setAmount(BigDecimal value)
      Generated method - Setter of the B2BDocument.amount attribute.
      Parameters:
      value - the amount - amount
    • 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 B2BDocument.currency attribute.
      Returns:
      the currency
    • getCurrency

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

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

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

      public Date getDate(SessionContext ctx)
      Generated method - Getter of the B2BDocument.date attribute.
      Returns:
      the date - date
    • getDate

      public Date getDate()
      Generated method - Getter of the B2BDocument.date attribute.
      Returns:
      the date - date
    • setDate

      public void setDate(SessionContext ctx, Date value)
      Generated method - Setter of the B2BDocument.date attribute.
      Parameters:
      value - the date - date
    • setDate

      public void setDate(Date value)
      Generated method - Setter of the B2BDocument.date attribute.
      Parameters:
      value - the date - date
    • getDocumentMedia

      public DocumentMedia getDocumentMedia(SessionContext ctx)
      Generated method - Getter of the B2BDocument.documentMedia attribute.
      Returns:
      the documentMedia
    • getDocumentMedia

      public DocumentMedia getDocumentMedia()
      Generated method - Getter of the B2BDocument.documentMedia attribute.
      Returns:
      the documentMedia
    • setDocumentMedia

      public void setDocumentMedia(SessionContext ctx, DocumentMedia value)
      Generated method - Setter of the B2BDocument.documentMedia attribute.
      Parameters:
      value - the documentMedia
    • setDocumentMedia

      public void setDocumentMedia(DocumentMedia value)
      Generated method - Setter of the B2BDocument.documentMedia attribute.
      Parameters:
      value - the documentMedia
    • getDocumentNumber

      public String getDocumentNumber(SessionContext ctx)
      Generated method - Getter of the B2BDocument.documentNumber attribute.
      Returns:
      the documentNumber
    • getDocumentNumber

      public String getDocumentNumber()
      Generated method - Getter of the B2BDocument.documentNumber attribute.
      Returns:
      the documentNumber
    • setDocumentNumber

      public void setDocumentNumber(SessionContext ctx, String value)
      Generated method - Setter of the B2BDocument.documentNumber attribute.
      Parameters:
      value - the documentNumber
    • setDocumentNumber

      public void setDocumentNumber(String value)
      Generated method - Setter of the B2BDocument.documentNumber attribute.
      Parameters:
      value - the documentNumber
    • getDocumentType

      public B2BDocumentType getDocumentType(SessionContext ctx)
      Generated method - Getter of the B2BDocument.documentType attribute.
      Returns:
      the documentType
    • getDocumentType

      public B2BDocumentType getDocumentType()
      Generated method - Getter of the B2BDocument.documentType attribute.
      Returns:
      the documentType
    • setDocumentType

      public void setDocumentType(SessionContext ctx, B2BDocumentType value)
      Generated method - Setter of the B2BDocument.documentType attribute.
      Parameters:
      value - the documentType
    • setDocumentType

      public void setDocumentType(B2BDocumentType value)
      Generated method - Setter of the B2BDocument.documentType attribute.
      Parameters:
      value - the documentType
    • getDueDate

      public Date getDueDate(SessionContext ctx)
      Generated method - Getter of the B2BDocument.dueDate attribute.
      Returns:
      the dueDate - dueDate
    • getDueDate

      public Date getDueDate()
      Generated method - Getter of the B2BDocument.dueDate attribute.
      Returns:
      the dueDate - dueDate
    • setDueDate

      public void setDueDate(SessionContext ctx, Date value)
      Generated method - Setter of the B2BDocument.dueDate attribute.
      Parameters:
      value - the dueDate - dueDate
    • setDueDate

      public void setDueDate(Date value)
      Generated method - Setter of the B2BDocument.dueDate attribute.
      Parameters:
      value - the dueDate - dueDate
    • getOpenAmount

      public BigDecimal getOpenAmount(SessionContext ctx)
      Generated method - Getter of the B2BDocument.openAmount attribute.
      Returns:
      the openAmount - openAmount
    • getOpenAmount

      public BigDecimal getOpenAmount()
      Generated method - Getter of the B2BDocument.openAmount attribute.
      Returns:
      the openAmount - openAmount
    • setOpenAmount

      public void setOpenAmount(SessionContext ctx, BigDecimal value)
      Generated method - Setter of the B2BDocument.openAmount attribute.
      Parameters:
      value - the openAmount - openAmount
    • setOpenAmount

      public void setOpenAmount(BigDecimal value)
      Generated method - Setter of the B2BDocument.openAmount attribute.
      Parameters:
      value - the openAmount - openAmount
    • getOrder

      public AbstractOrder getOrder(SessionContext ctx)
      Generated method - Getter of the B2BDocument.order attribute.
      Returns:
      the order
    • getOrder

      public AbstractOrder getOrder()
      Generated method - Getter of the B2BDocument.order attribute.
      Returns:
      the order
    • setOrder

      public void setOrder(SessionContext ctx, AbstractOrder value)
      Generated method - Setter of the B2BDocument.order attribute.
      Parameters:
      value - the order
    • setOrder

      public void setOrder(AbstractOrder value)
      Generated method - Setter of the B2BDocument.order attribute.
      Parameters:
      value - the order
    • getPayDocumentPaymentInfo

      public Collection<B2BDocumentPaymentInfo> getPayDocumentPaymentInfo(SessionContext ctx)
      Generated method - Getter of the B2BDocument.payDocumentPaymentInfo attribute.
      Returns:
      the payDocumentPaymentInfo
    • getPayDocumentPaymentInfo

      public Collection<B2BDocumentPaymentInfo> getPayDocumentPaymentInfo()
      Generated method - Getter of the B2BDocument.payDocumentPaymentInfo attribute.
      Returns:
      the payDocumentPaymentInfo
    • setPayDocumentPaymentInfo

      public void setPayDocumentPaymentInfo(SessionContext ctx, Collection<B2BDocumentPaymentInfo> value)
      Generated method - Setter of the B2BDocument.payDocumentPaymentInfo attribute.
      Parameters:
      value - the payDocumentPaymentInfo
    • setPayDocumentPaymentInfo

      public void setPayDocumentPaymentInfo(Collection<B2BDocumentPaymentInfo> value)
      Generated method - Setter of the B2BDocument.payDocumentPaymentInfo attribute.
      Parameters:
      value - the payDocumentPaymentInfo
    • addToPayDocumentPaymentInfo

      public void addToPayDocumentPaymentInfo(SessionContext ctx, B2BDocumentPaymentInfo value)
      Generated method - Adds value to payDocumentPaymentInfo.
      Parameters:
      value - the item to add to payDocumentPaymentInfo
    • addToPayDocumentPaymentInfo

      public void addToPayDocumentPaymentInfo(B2BDocumentPaymentInfo value)
      Generated method - Adds value to payDocumentPaymentInfo.
      Parameters:
      value - the item to add to payDocumentPaymentInfo
    • removeFromPayDocumentPaymentInfo

      public void removeFromPayDocumentPaymentInfo(SessionContext ctx, B2BDocumentPaymentInfo value)
      Generated method - Removes value from payDocumentPaymentInfo.
      Parameters:
      value - the item to remove from payDocumentPaymentInfo
    • removeFromPayDocumentPaymentInfo

      public void removeFromPayDocumentPaymentInfo(B2BDocumentPaymentInfo value)
      Generated method - Removes value from payDocumentPaymentInfo.
      Parameters:
      value - the item to remove from payDocumentPaymentInfo
    • getStatus

      public EnumerationValue getStatus(SessionContext ctx)
      Generated method - Getter of the B2BDocument.status attribute.
      Returns:
      the status
    • getStatus

      public EnumerationValue getStatus()
      Generated method - Getter of the B2BDocument.status attribute.
      Returns:
      the status
    • setStatus

      public void setStatus(SessionContext ctx, EnumerationValue value)
      Generated method - Setter of the B2BDocument.status attribute.
      Parameters:
      value - the status
    • setStatus

      public void setStatus(EnumerationValue value)
      Generated method - Setter of the B2BDocument.status attribute.
      Parameters:
      value - the status
    • getUnit

      public B2BUnit getUnit(SessionContext ctx)
      Generated method - Getter of the B2BDocument.unit attribute.
      Returns:
      the unit
    • getUnit

      public B2BUnit getUnit()
      Generated method - Getter of the B2BDocument.unit attribute.
      Returns:
      the unit
    • setUnit

      public void setUnit(SessionContext ctx, B2BUnit value)
      Generated method - Setter of the B2BDocument.unit attribute.
      Parameters:
      value - the unit
    • setUnit

      public void setUnit(B2BUnit value)
      Generated method - Setter of the B2BDocument.unit attribute.
      Parameters:
      value - the unit
    • getUseDocumentPaymentInfo

      public Collection<B2BDocumentPaymentInfo> getUseDocumentPaymentInfo(SessionContext ctx)
      Generated method - Getter of the B2BDocument.useDocumentPaymentInfo attribute.
      Returns:
      the useDocumentPaymentInfo
    • getUseDocumentPaymentInfo

      public Collection<B2BDocumentPaymentInfo> getUseDocumentPaymentInfo()
      Generated method - Getter of the B2BDocument.useDocumentPaymentInfo attribute.
      Returns:
      the useDocumentPaymentInfo
    • setUseDocumentPaymentInfo

      public void setUseDocumentPaymentInfo(SessionContext ctx, Collection<B2BDocumentPaymentInfo> value)
      Generated method - Setter of the B2BDocument.useDocumentPaymentInfo attribute.
      Parameters:
      value - the useDocumentPaymentInfo
    • setUseDocumentPaymentInfo

      public void setUseDocumentPaymentInfo(Collection<B2BDocumentPaymentInfo> value)
      Generated method - Setter of the B2BDocument.useDocumentPaymentInfo attribute.
      Parameters:
      value - the useDocumentPaymentInfo
    • addToUseDocumentPaymentInfo

      public void addToUseDocumentPaymentInfo(SessionContext ctx, B2BDocumentPaymentInfo value)
      Generated method - Adds value to useDocumentPaymentInfo.
      Parameters:
      value - the item to add to useDocumentPaymentInfo
    • addToUseDocumentPaymentInfo

      public void addToUseDocumentPaymentInfo(B2BDocumentPaymentInfo value)
      Generated method - Adds value to useDocumentPaymentInfo.
      Parameters:
      value - the item to add to useDocumentPaymentInfo
    • removeFromUseDocumentPaymentInfo

      public void removeFromUseDocumentPaymentInfo(SessionContext ctx, B2BDocumentPaymentInfo value)
      Generated method - Removes value from useDocumentPaymentInfo.
      Parameters:
      value - the item to remove from useDocumentPaymentInfo
    • removeFromUseDocumentPaymentInfo

      public void removeFromUseDocumentPaymentInfo(B2BDocumentPaymentInfo value)
      Generated method - Removes value from useDocumentPaymentInfo.
      Parameters:
      value - the item to remove from useDocumentPaymentInfo