Class GeneratedOrderHistoryEntry

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

public abstract class GeneratedOrderHistoryEntry extends GenericItem
Generated class for type OrderHistoryEntry.
See Also:
  • Field Details

    • TIMESTAMP

      public static final String TIMESTAMP
      Qualifier of the OrderHistoryEntry.timestamp attribute
      See Also:
    • EMPLOYEE

      public static final String EMPLOYEE
      Qualifier of the OrderHistoryEntry.employee attribute
      See Also:
    • DESCRIPTION

      public static final String DESCRIPTION
      Qualifier of the OrderHistoryEntry.description attribute
      See Also:
    • PREVIOUSORDERVERSION

      public static final String PREVIOUSORDERVERSION
      Qualifier of the OrderHistoryEntry.previousOrderVersion attribute
      See Also:
    • ORDERPOS

      public static final String ORDERPOS
      Qualifier of the OrderHistoryEntry.orderPOS attribute
      See Also:
    • ORDER

      public static final String ORDER
      Qualifier of the OrderHistoryEntry.order attribute
      See Also:
    • DOCUMENTS

      public static final String DOCUMENTS
      Qualifier of the OrderHistoryEntry.documents attribute
      See Also:
    • HISTORYDOCUMENTRELATION_SRC_ORDERED

      protected static String HISTORYDOCUMENTRELATION_SRC_ORDERED
      Relation ordering override parameter constants for HistoryDocumentRelation from ((basecommerce))
    • HISTORYDOCUMENTRELATION_TGT_ORDERED

      protected static String HISTORYDOCUMENTRELATION_TGT_ORDERED
    • HISTORYDOCUMENTRELATION_MARKMODIFIED

      protected static String HISTORYDOCUMENTRELATION_MARKMODIFIED
      Relation disable markmodifed parameter constants for HistoryDocumentRelation from ((basecommerce))
    • ORDERHANDLER

      protected static final BidirectionalOneToManyHandler<GeneratedOrderHistoryEntry> ORDERHANDLER
      BidirectionalOneToManyHandler for handling 1:n ORDER's relation attributes from 'one' side.
    • DEFAULT_INITIAL_ATTRIBUTES

      protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
  • Constructor Details

    • GeneratedOrderHistoryEntry

      public GeneratedOrderHistoryEntry()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • 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
    • getDescription

      public String getDescription(SessionContext ctx)
      Generated method - Getter of the OrderHistoryEntry.description attribute.
      Returns:
      the description
    • getDescription

      public String getDescription()
      Generated method - Getter of the OrderHistoryEntry.description attribute.
      Returns:
      the description
    • setDescription

      public void setDescription(SessionContext ctx, String value)
      Generated method - Setter of the OrderHistoryEntry.description attribute.
      Parameters:
      value - the description
    • setDescription

      public void setDescription(String value)
      Generated method - Setter of the OrderHistoryEntry.description attribute.
      Parameters:
      value - the description
    • getDocuments

      public Set<Media> getDocuments(SessionContext ctx)
      Generated method - Getter of the OrderHistoryEntry.documents attribute.
      Returns:
      the documents
    • getDocuments

      public Set<Media> getDocuments()
      Generated method - Getter of the OrderHistoryEntry.documents attribute.
      Returns:
      the documents
    • getDocumentsCount

      public long getDocumentsCount(SessionContext ctx)
    • getDocumentsCount

      public long getDocumentsCount()
    • setDocuments

      public void setDocuments(SessionContext ctx, Set<Media> value)
      Generated method - Setter of the OrderHistoryEntry.documents attribute.
      Parameters:
      value - the documents
    • setDocuments

      public void setDocuments(Set<Media> value)
      Generated method - Setter of the OrderHistoryEntry.documents attribute.
      Parameters:
      value - the documents
    • addToDocuments

      public void addToDocuments(SessionContext ctx, Media value)
      Generated method - Adds value to documents.
      Parameters:
      value - the item to add to documents
    • addToDocuments

      public void addToDocuments(Media value)
      Generated method - Adds value to documents.
      Parameters:
      value - the item to add to documents
    • removeFromDocuments

      public void removeFromDocuments(SessionContext ctx, Media value)
      Generated method - Removes value from documents.
      Parameters:
      value - the item to remove from documents
    • removeFromDocuments

      public void removeFromDocuments(Media value)
      Generated method - Removes value from documents.
      Parameters:
      value - the item to remove from documents
    • getEmployee

      public Employee getEmployee(SessionContext ctx)
      Generated method - Getter of the OrderHistoryEntry.employee attribute.
      Returns:
      the employee
    • getEmployee

      public Employee getEmployee()
      Generated method - Getter of the OrderHistoryEntry.employee attribute.
      Returns:
      the employee
    • setEmployee

      public void setEmployee(SessionContext ctx, Employee value)
      Generated method - Setter of the OrderHistoryEntry.employee attribute.
      Parameters:
      value - the employee
    • setEmployee

      public void setEmployee(Employee value)
      Generated method - Setter of the OrderHistoryEntry.employee attribute.
      Parameters:
      value - the employee
    • isMarkModifiedDisabled

      @Deprecated(since="2105", forRemoval=true) public boolean isMarkModifiedDisabled(Item referencedItem)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      isMarkModifiedDisabled in class Item
    • getOrder

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

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

      protected void setOrder(SessionContext ctx, Order value)
      Generated method - Setter of the OrderHistoryEntry.order attribute.
      Parameters:
      value - the order
    • setOrder

      protected void setOrder(Order value)
      Generated method - Setter of the OrderHistoryEntry.order attribute.
      Parameters:
      value - the order
    • getPreviousOrderVersion

      public Order getPreviousOrderVersion(SessionContext ctx)
      Generated method - Getter of the OrderHistoryEntry.previousOrderVersion attribute.
      Returns:
      the previousOrderVersion
    • getPreviousOrderVersion

      public Order getPreviousOrderVersion()
      Generated method - Getter of the OrderHistoryEntry.previousOrderVersion attribute.
      Returns:
      the previousOrderVersion
    • setPreviousOrderVersion

      public void setPreviousOrderVersion(SessionContext ctx, Order value)
      Generated method - Setter of the OrderHistoryEntry.previousOrderVersion attribute.
      Parameters:
      value - the previousOrderVersion
    • setPreviousOrderVersion

      public void setPreviousOrderVersion(Order value)
      Generated method - Setter of the OrderHistoryEntry.previousOrderVersion attribute.
      Parameters:
      value - the previousOrderVersion
    • getTimestamp

      public Date getTimestamp(SessionContext ctx)
      Generated method - Getter of the OrderHistoryEntry.timestamp attribute.
      Returns:
      the timestamp
    • getTimestamp

      public Date getTimestamp()
      Generated method - Getter of the OrderHistoryEntry.timestamp attribute.
      Returns:
      the timestamp
    • setTimestamp

      protected void setTimestamp(SessionContext ctx, Date value)
      Generated method - Setter of the OrderHistoryEntry.timestamp attribute.
      Parameters:
      value - the timestamp
    • setTimestamp

      protected void setTimestamp(Date value)
      Generated method - Setter of the OrderHistoryEntry.timestamp attribute.
      Parameters:
      value - the timestamp