Class GeneratedSavedValues

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

public abstract class GeneratedSavedValues extends GenericItem
Generated class for type SavedValues.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedSavedValues

      public GeneratedSavedValues()
  • Method Details

    • getDefaultAttributeModes

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

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

      public 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 String getModifiedItemDisplayString(SessionContext ctx)
      Generated method - Getter of the SavedValues.modifiedItemDisplayString attribute.
      Returns:
      the modifiedItemDisplayString - Display String. @since 2.10
    • getModifiedItemDisplayString

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

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

      public void setModifiedItemDisplayString(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 Integer getNumberOfChangedAttributes(SessionContext ctx)
      Generated method - Getter of the SavedValues.numberOfChangedAttributes attribute.
      Returns:
      the numberOfChangedAttributes - jalo generated string of changes attributes
    • getNumberOfChangedAttributes

      public 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 Set<SavedValueEntry> getSavedValuesEntries(SessionContext ctx)
      Generated method - Getter of the SavedValues.savedValuesEntries attribute.
      Returns:
      the savedValuesEntries
    • getSavedValuesEntries

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

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

      public 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, Date value)
      Generated method - Setter of the SavedValues.timestamp attribute.
      Parameters:
      value - the timestamp - the timestamp of the last modification
    • setTimestamp

      public void setTimestamp(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