Package net.sf.basedb.core.data
Class ChangeHistoryDetailData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.ChangeHistoryDetailData
- All Implemented Interfaces:
IdentifiableData
,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 Summary
Modifier and TypeFieldDescriptionprivate String
private int
private ChangeHistoryData
private int
private int
static final int
static final int
static final int
private String
private String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the main history entry the details belong to.Get more information about this change.int
The type of the change: 1 = create, 2 = update, 3 = deleteint
The ID of the item that was changedint
The type code of the item that was changed.Get the new value after the change.Get the previous value before the change.void
setChangeHistory
(ChangeHistoryData history) void
setChangeInfo
(String changeInfo) void
setChangeType
(int changeType) void
setItemId
(int itemId) void
setItemType
(int itemType) void
setNewValue
(String newValue) void
setOldValue
(String oldValue) Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
Field Details
-
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
-
MAX_OLD_VALUE_LENGTH
public static final int MAX_OLD_VALUE_LENGTH- See Also:
-
oldValue
-
MAX_NEW_VALUE_LENGTH
public static final int MAX_NEW_VALUE_LENGTH- See Also:
-
newValue
-
-
Constructor Details
-
ChangeHistoryDetailData
public ChangeHistoryDetailData()
-
-
Method Details
-
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
-
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
Get more information about this change.- Hibernate: property
- column="`change_info`" type="text" not-null="false"
-
setChangeInfo
-
getOldValue
Get the previous value before the change.- Since:
- 3.3
- Hibernate: property
- column="`old_value`" type="text" not-null="false"
-
setOldValue
-
getNewValue
Get the new value after the change.- Hibernate: property
- column="`new_value`" type="text" not-null="false"
-
setNewValue
-