2.17.2: 2011-06-17

net.sf.basedb.core.data
Class ChangeHistoryDetailData

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by net.sf.basedb.core.data.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
Last modified
$Date: 2009-08-21 08:17:57 +0200 (Fri, 21 Aug 2009) $
Hibernate: class
table="`ChangeHistoryDetails`" lazy="false" mutable="false"

Field Summary
private  String changeInfo
           
private  int changeType
           
private  ChangeHistoryData history
           
private  int itemId
           
private  int itemType
           
static int MAX_CHANGE_INFO_LENGTH
           
 
Constructor Summary
ChangeHistoryDetailData()
           
 
Method Summary
 ChangeHistoryData getChangeHistory()
          Get the main history entry the details belong to.
 String getChangeInfo()
          Get more information about this change.
 int getChangeType()
          The type of the change: 1 = create, 2 = update, 3 = delete
 int getItemId()
          The ID of the item that was changed
 int getItemType()
          The type code of the item that was changed.
 void setChangeHistory(ChangeHistoryData history)
           
 void setChangeInfo(String changeInfo)
           
 void setChangeType(int changeType)
           
 void setItemId(int itemId)
           
 void setItemType(int itemType)
           
 
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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:
Constant Field Values

changeInfo

private String changeInfo
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"

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"

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"

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)

2.17.2: 2011-06-17