Class ChangeHistoryDetailData

  • All Implemented Interfaces:
    IdentifiableData

    public class ChangeHistoryDetailData
    extends BasicData
    Represents a change (creation/update/deletion) made to a single entity in a transaction. Changes to multiple entities in a single transactions are grouped with a common reference to a ChangeHistoryData object.
    Version:
    2.13
    Author:
    Nicklas
    See Also:
    Developer documentation: Other classes
    Last modified
    $Date: 2016-08-23 13:23:00 +0200 (ti, 23 aug 2016) $
    Hibernate: class
    table="`ChangeHistoryDetails`" lazy="false" mutable="false"
    • Field Detail

      • changeType

        private int changeType
      • itemId

        private int itemId
      • itemType

        private int itemType
      • changeInfo

        private String changeInfo
      • oldValue

        private String oldValue
      • newValue

        private String newValue
    • Constructor Detail

      • ChangeHistoryDetailData

        public ChangeHistoryDetailData()
    • Method Detail

      • getChangeHistory

        public ChangeHistoryData getChangeHistory()
        Get the main history entry the details belong to.
        Hibernate: many-to-one
        column="`history_id`" not-null="true" outer-join="false" update="false"
      • getChangeType

        public int getChangeType()
        The type of the change: 1 = create, 2 = update, 3 = delete
        Hibernate: property
        type="int"
        Hibernate: column
        name="`change_type`" not-null="true"
      • setChangeType

        public void setChangeType​(int changeType)
      • getItemId

        public int getItemId()
        The ID of the item that was changed
        Hibernate: property
        type="int"
        Hibernate: column
        name="`item_id`" not-null="true" index="itemindex"
      • setItemId

        public void setItemId​(int itemId)
      • getItemType

        public int getItemType()
        The type code of the item that was changed.
        Hibernate: property
        type="int"
        Hibernate: column
        name="`item_type`" not-null="true" index="itemindex"
      • setItemType

        public void setItemType​(int itemType)
      • getChangeInfo

        public String getChangeInfo()
        Get more information about this change.
        Hibernate: property
        column="`change_info`" type="text" not-null="false"
      • setChangeInfo

        public void setChangeInfo​(String changeInfo)
      • getOldValue

        @PropertyPathProtected
        public String getOldValue()
        Get the previous value before the change.
        Since:
        3.3
        Hibernate: property
        column="`old_value`" type="text" not-null="false"
      • setOldValue

        public void setOldValue​(String oldValue)
      • getNewValue

        @PropertyPathProtected
        public String getNewValue()
        Get the new value after the change.
        Hibernate: property
        column="`new_value`" type="text" not-null="false"
      • setNewValue

        public void setNewValue​(String newValue)