Class ChangeHistoryData
- All Implemented Interfaces:
IdentifiableData
,NoAutoUnlinkAnyToAny
ChangeHistoryDetailData
objects.
NOTE! All references to other items are controlled by regular integer values because we don't want foreign keys from the log tables to block deletion of items. A duplicate mapping using many-to-one with a formula attribute is used since we really need the LEFT JOIN functionality in the web interface and the association is also useful for data export which uses metadata to access the properties. The formula mapping is not supported by XDoclet so we have to do this in the hibernate-properties.ChangeHistoryData.xml file.
Missing items are handled by the core layer at runtime. References in the log to missing items may optionally be deleted by a cleanup thread from time to time.
- Version:
- 2.13
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2024-10-30 13:32:46 +0100 (Wed, 30 Oct 2024) $
- Hibernate: class
- table="`ChangeHistory`" lazy="true" mutable="false"
-
Field Summary
Modifier and TypeFieldDescriptionprivate ClientData
private Integer
private Set<ChangeHistoryDetailData>
private JobData
private Integer
private String
private PluginDefinitionData
private Integer
private ProjectData
private Integer
private SessionData
private int
private Date
private UserData
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) ClientData
The ID of the client application the user used to make the change.(package private) Set<ChangeHistoryDetailData>
This is the inverse end.(package private) JobData
getJob()
getJobId()
The ID of the job that was making the changes.getName()
Get the name of the transaction.(package private) PluginDefinitionData
The ID of the plug-in that was making the changes.(package private) ProjectData
The ID of the project that was active when the changes were made.(package private) SessionData
int
The ID of the session in which the changes happened.getTime()
Get the time of the change.(package private) UserData
getUser()
int
The ID of the user that made the change.(package private) void
setClient
(ClientData client) void
setClientId
(Integer clientId) (package private) void
setDetails
(Set<ChangeHistoryDetailData> details) (package private) void
void
void
(package private) void
setPlugin
(PluginDefinitionData plugin) void
setPluginId
(Integer pluginId) (package private) void
setProject
(ProjectData project) void
setProjectId
(Integer projectId) (package private) void
setSession
(SessionData session) void
setSessionId
(int sessionId) void
(package private) void
void
setUserId
(int userId) Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
Field Details
-
time
-
name
-
userId
private int userId -
user
-
sessionId
private int sessionId -
session
-
clientId
-
client
-
projectId
-
project
-
pluginId
-
plugin
-
jobId
-
job
-
details
-
-
Constructor Details
-
ChangeHistoryData
public ChangeHistoryData()
-
-
Method Details
-
getTime
Get the time of the change.- Returns:
- A
Date
object - Hibernate: property
- column="`time`" type="timestamp" not-null="true"
-
setTime
-
getName
Get the name of the transaction.- Returns:
- A
String
with the name of the transaction - Since:
- 3.19
- Hibernate: property
- type="string"
- Hibernate: column
- name="`name`" length="255" not-null="true" index="name_idx"
-
setName
-
getUserId
public int getUserId()The ID of the user that made the change.- Hibernate: property
- type="int"
- Hibernate: column
- name="`user_id`" not-null="true"
-
setUserId
public void setUserId(int userId) -
getUser
UserData getUser() -
setUser
-
getSessionId
public int getSessionId()The ID of the session in which the changes happened.- Hibernate: property
- type="int"
- Hibernate: column
- name="`session_id`" not-null="true"
-
setSessionId
public void setSessionId(int sessionId) -
getSession
SessionData getSession() -
setSession
-
getClientId
The ID of the client application the user used to make the change.- Hibernate: property
- type="int"
- Hibernate: column
- name="`client_id`" not-null="false"
-
setClientId
-
getClient
ClientData getClient() -
setClient
-
getProjectId
The ID of the project that was active when the changes were made.- Hibernate: property
- type="int"
- Hibernate: column
- name="`project_id`" not-null="false"
-
setProjectId
-
getProject
ProjectData getProject() -
setProject
-
getPluginId
The ID of the plug-in that was making the changes.- Hibernate: property
- type="int"
- Hibernate: column
- name="`plugin_id`" not-null="false"
-
setPluginId
-
getPlugin
PluginDefinitionData getPlugin() -
setPlugin
-
getJobId
The ID of the job that was making the changes.- Hibernate: property
- type="int"
- Hibernate: column
- name="`job_id`" not-null="false"
-
setJobId
-
getJob
JobData getJob() -
setJob
-
getDetails
Set<ChangeHistoryDetailData> getDetails()This is the inverse end.- See Also:
- Hibernate: set
- lazy="true" inverse="true" cascade="delete"
- Hibernate: collection-key
- column="`history_id`"
- Hibernate: collection-one-to-many
- class="net.sf.basedb.core.data.ChangeHistoryDetailData"
-
setDetails
-