Class ChangeHistoryDetailData

java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.ChangeHistoryDetailData
All Implemented Interfaces:
IdentifiableData, NoAutoUnlinkAnyToAny

public class ChangeHistoryDetailData extends BasicData implements NoAutoUnlinkAnyToAny
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:
Last modified
$Date: 2023-11-21 10:31:51 +0100 (Tue, 21 Nov 2023) $
Hibernate: class
table="`ChangeHistoryDetails`" lazy="false" mutable="false"
  • Field Details

    • history

      private ChangeHistoryData history
    • changeType

      private int changeType
    • itemId

      private int itemId
    • itemType

      private int itemType
    • MAX_CHANGE_INFO_LENGTH

      public static final int MAX_CHANGE_INFO_LENGTH
      See Also:
    • changeInfo

      private String changeInfo
    • MAX_OLD_VALUE_LENGTH

      public static final int MAX_OLD_VALUE_LENGTH
      See Also:
    • oldValue

      private String oldValue
    • MAX_NEW_VALUE_LENGTH

      public static final int MAX_NEW_VALUE_LENGTH
      See Also:
    • newValue

      private String newValue
  • Constructor Details

    • ChangeHistoryDetailData

      public ChangeHistoryDetailData()
  • Method Details

    • 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"
    • setChangeHistory

      public void setChangeHistory(ChangeHistoryData history)
    • 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)