Class GeneratedSavedValues

    • Field Detail

      • MODIFIEDITEMTYPE

        public static final java.lang.String MODIFIEDITEMTYPE
        Qualifier of the SavedValues.modifiedItemType attribute
        See Also:
        Constant Field Values
      • MODIFIEDITEMDISPLAYSTRING

        public static final java.lang.String MODIFIEDITEMDISPLAYSTRING
        Qualifier of the SavedValues.modifiedItemDisplayString attribute
        See Also:
        Constant Field Values
      • TIMESTAMP

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

        public static final java.lang.String USER
        Qualifier of the SavedValues.user attribute
        See Also:
        Constant Field Values
      • CHANGEDATTRIBUTES

        public static final java.lang.String CHANGEDATTRIBUTES
        Qualifier of the SavedValues.changedAttributes attribute
        See Also:
        Constant Field Values
      • NUMBEROFCHANGEDATTRIBUTES

        public static final java.lang.String NUMBEROFCHANGEDATTRIBUTES
        Qualifier of the SavedValues.numberOfChangedAttributes attribute
        See Also:
        Constant Field Values
      • MODIFICATIONTYPE

        public static final java.lang.String MODIFICATIONTYPE
        Qualifier of the SavedValues.modificationType attribute
        See Also:
        Constant Field Values
      • SAVEDVALUESENTRIES

        public static final java.lang.String SAVEDVALUESENTRIES
        Qualifier of the SavedValues.savedValuesEntries attribute
        See Also:
        Constant Field Values
      • MODIFIEDITEMPOS

        public static final java.lang.String MODIFIEDITEMPOS
        Qualifier of the SavedValues.modifiedItemPOS attribute
        See Also:
        Constant Field Values
      • MODIFIEDITEM

        public static final java.lang.String MODIFIEDITEM
        Qualifier of the SavedValues.modifiedItem 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

      • GeneratedSavedValues

        public GeneratedSavedValues()
    • Method Detail

      • getChangedAttributes

        public abstract java.lang.String getChangedAttributes​(SessionContext ctx)
        Generated method - Getter of the SavedValues.changedAttributes attribute.
        Returns:
        the changedAttributes - jalo generated string of changes attributes
      • getChangedAttributes

        public java.lang.String getChangedAttributes()
        Generated method - Getter of the SavedValues.changedAttributes attribute.
        Returns:
        the changedAttributes - jalo generated string of changes attributes
      • 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
      • getModificationType

        public EnumerationValue getModificationType​(SessionContext ctx)
        Generated method - Getter of the SavedValues.modificationType attribute.
        Returns:
        the modificationType - the type of the 'modification' action (save,create,remove). @since 2.10
      • getModificationType

        public EnumerationValue getModificationType()
        Generated method - Getter of the SavedValues.modificationType attribute.
        Returns:
        the modificationType - the type of the 'modification' action (save,create,remove). @since 2.10
      • setModificationType

        public void setModificationType​(SessionContext ctx,
                                        EnumerationValue value)
        Generated method - Setter of the SavedValues.modificationType attribute.
        Parameters:
        value - the modificationType - the type of the 'modification' action (save,create,remove). @since 2.10
      • setModificationType

        public void setModificationType​(EnumerationValue value)
        Generated method - Setter of the SavedValues.modificationType attribute.
        Parameters:
        value - the modificationType - the type of the 'modification' action (save,create,remove). @since 2.10
      • getModifiedItem

        public Item getModifiedItem​(SessionContext ctx)
        Generated method - Getter of the SavedValues.modifiedItem attribute.
        Returns:
        the modifiedItem
      • getModifiedItem

        public Item getModifiedItem()
        Generated method - Getter of the SavedValues.modifiedItem attribute.
        Returns:
        the modifiedItem
      • setModifiedItem

        protected void setModifiedItem​(SessionContext ctx,
                                       Item value)
        Generated method - Setter of the SavedValues.modifiedItem attribute.
        Parameters:
        value - the modifiedItem
      • setModifiedItem

        protected void setModifiedItem​(Item value)
        Generated method - Setter of the SavedValues.modifiedItem attribute.
        Parameters:
        value - the modifiedItem
      • getModifiedItemDisplayString

        public java.lang.String getModifiedItemDisplayString​(SessionContext ctx)
        Generated method - Getter of the SavedValues.modifiedItemDisplayString attribute.
        Returns:
        the modifiedItemDisplayString - Display String. @since 2.10
      • getModifiedItemDisplayString

        public java.lang.String getModifiedItemDisplayString()
        Generated method - Getter of the SavedValues.modifiedItemDisplayString attribute.
        Returns:
        the modifiedItemDisplayString - Display String. @since 2.10
      • setModifiedItemDisplayString

        public void setModifiedItemDisplayString​(SessionContext ctx,
                                                 java.lang.String value)
        Generated method - Setter of the SavedValues.modifiedItemDisplayString attribute.
        Parameters:
        value - the modifiedItemDisplayString - Display String. @since 2.10
      • setModifiedItemDisplayString

        public void setModifiedItemDisplayString​(java.lang.String value)
        Generated method - Setter of the SavedValues.modifiedItemDisplayString attribute.
        Parameters:
        value - the modifiedItemDisplayString - Display String. @since 2.10
      • getModifiedItemType

        public ComposedType getModifiedItemType​(SessionContext ctx)
        Generated method - Getter of the SavedValues.modifiedItemType attribute.
        Returns:
        the modifiedItemType - Type
      • getModifiedItemType

        public ComposedType getModifiedItemType()
        Generated method - Getter of the SavedValues.modifiedItemType attribute.
        Returns:
        the modifiedItemType - Type
      • setModifiedItemType

        public void setModifiedItemType​(SessionContext ctx,
                                        ComposedType value)
        Generated method - Setter of the SavedValues.modifiedItemType attribute.
        Parameters:
        value - the modifiedItemType - Type
      • setModifiedItemType

        public void setModifiedItemType​(ComposedType value)
        Generated method - Setter of the SavedValues.modifiedItemType attribute.
        Parameters:
        value - the modifiedItemType - Type
      • getNumberOfChangedAttributes

        public abstract java.lang.Integer getNumberOfChangedAttributes​(SessionContext ctx)
        Generated method - Getter of the SavedValues.numberOfChangedAttributes attribute.
        Returns:
        the numberOfChangedAttributes - jalo generated string of changes attributes
      • getNumberOfChangedAttributes

        public java.lang.Integer getNumberOfChangedAttributes()
        Generated method - Getter of the SavedValues.numberOfChangedAttributes attribute.
        Returns:
        the numberOfChangedAttributes - jalo generated string of changes attributes
      • getNumberOfChangedAttributesAsPrimitive

        public int getNumberOfChangedAttributesAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the SavedValues.numberOfChangedAttributes attribute.
        Returns:
        the numberOfChangedAttributes - jalo generated string of changes attributes
      • getNumberOfChangedAttributesAsPrimitive

        public int getNumberOfChangedAttributesAsPrimitive()
        Generated method - Getter of the SavedValues.numberOfChangedAttributes attribute.
        Returns:
        the numberOfChangedAttributes - jalo generated string of changes attributes
      • getSavedValuesEntries

        public java.util.Set<SavedValueEntry> getSavedValuesEntries​(SessionContext ctx)
        Generated method - Getter of the SavedValues.savedValuesEntries attribute.
        Returns:
        the savedValuesEntries
      • getSavedValuesEntries

        public java.util.Set<SavedValueEntry> getSavedValuesEntries()
        Generated method - Getter of the SavedValues.savedValuesEntries attribute.
        Returns:
        the savedValuesEntries
      • getTimestamp

        public java.util.Date getTimestamp​(SessionContext ctx)
        Generated method - Getter of the SavedValues.timestamp attribute.
        Returns:
        the timestamp - the timestamp of the last modification
      • getTimestamp

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

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

        public void setTimestamp​(java.util.Date value)
        Generated method - Setter of the SavedValues.timestamp attribute.
        Parameters:
        value - the timestamp - the timestamp of the last modification
      • getUser

        public User getUser​(SessionContext ctx)
        Generated method - Getter of the SavedValues.user attribute.
        Returns:
        the user - the user, who has modified/saved/create this item
      • getUser

        public User getUser()
        Generated method - Getter of the SavedValues.user attribute.
        Returns:
        the user - the user, who has modified/saved/create this item
      • setUser

        public void setUser​(SessionContext ctx,
                            User value)
        Generated method - Setter of the SavedValues.user attribute.
        Parameters:
        value - the user - the user, who has modified/saved/create this item
      • setUser

        public void setUser​(User value)
        Generated method - Setter of the SavedValues.user attribute.
        Parameters:
        value - the user - the user, who has modified/saved/create this item