Class GeneratedOrderHistoryEntry

    • Field Detail

      • TIMESTAMP

        public static final java.lang.String TIMESTAMP
        Qualifier of the OrderHistoryEntry.timestamp attribute
        See Also:
        Constant Field Values
      • EMPLOYEE

        public static final java.lang.String EMPLOYEE
        Qualifier of the OrderHistoryEntry.employee attribute
        See Also:
        Constant Field Values
      • DESCRIPTION

        public static final java.lang.String DESCRIPTION
        Qualifier of the OrderHistoryEntry.description attribute
        See Also:
        Constant Field Values
      • PREVIOUSORDERVERSION

        public static final java.lang.String PREVIOUSORDERVERSION
        Qualifier of the OrderHistoryEntry.previousOrderVersion attribute
        See Also:
        Constant Field Values
      • ORDERPOS

        public static final java.lang.String ORDERPOS
        Qualifier of the OrderHistoryEntry.orderPOS attribute
        See Also:
        Constant Field Values
      • ORDER

        public static final java.lang.String ORDER
        Qualifier of the OrderHistoryEntry.order attribute
        See Also:
        Constant Field Values
      • DOCUMENTS

        public static final java.lang.String DOCUMENTS
        Qualifier of the OrderHistoryEntry.documents attribute
        See Also:
        Constant Field Values
      • HISTORYDOCUMENTRELATION_SRC_ORDERED

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

        protected static java.lang.String HISTORYDOCUMENTRELATION_TGT_ORDERED
      • HISTORYDOCUMENTRELATION_MARKMODIFIED

        protected static java.lang.String HISTORYDOCUMENTRELATION_MARKMODIFIED
        Relation disable markmodifed parameter constants for HistoryDocumentRelation from ((basecommerce))
      • DEFAULT_INITIAL_ATTRIBUTES

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

      • GeneratedOrderHistoryEntry

        public GeneratedOrderHistoryEntry()
    • Method Detail

      • 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 java.lang.String getDescription​(SessionContext ctx)
        Generated method - Getter of the OrderHistoryEntry.description attribute.
        Returns:
        the description
      • getDescription

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

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

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

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

        public java.util.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,
                                 java.util.Set<Media> value)
        Generated method - Setter of the OrderHistoryEntry.documents attribute.
        Parameters:
        value - the documents
      • setDocuments

        public void setDocuments​(java.util.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
      • 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 java.util.Date getTimestamp​(SessionContext ctx)
        Generated method - Getter of the OrderHistoryEntry.timestamp attribute.
        Returns:
        the timestamp
      • getTimestamp

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

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

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