|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.data.BasicData net.sf.basedb.core.data.ChangeHistoryData
public class ChangeHistoryData
Represents the changes made in a single transaction. This
entity records information about the time, user, active
project, used plug-in, etc. Changes made to entities in
the transaction are recorded with 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.
Field Summary | |
---|---|
private ClientData |
client
|
private Integer |
clientId
|
private Set<ChangeHistoryDetailData> |
details
|
private JobData |
job
|
private Integer |
jobId
|
private PluginDefinitionData |
plugin
|
private Integer |
pluginId
|
private ProjectData |
project
|
private Integer |
projectId
|
private SessionData |
session
|
private int |
sessionId
|
private Date |
time
|
private UserData |
user
|
private int |
userId
|
Constructor Summary | |
---|---|
ChangeHistoryData()
|
Method Summary | |
---|---|
(package private) ClientData |
getClient()
|
Integer |
getClientId()
The ID of the client application the user used to make the change. |
(package private) Set<ChangeHistoryDetailData> |
getDetails()
This is the inverse end. |
(package private) JobData |
getJob()
|
Integer |
getJobId()
The ID of the job that was making the changes. |
(package private) PluginDefinitionData |
getPlugin()
|
Integer |
getPluginId()
The ID of the plug-in that was making the changes. |
(package private) ProjectData |
getProject()
|
Integer |
getProjectId()
The ID of the project that was active when the changes were made. |
(package private) SessionData |
getSession()
|
int |
getSessionId()
The ID of the session in which the changes happened. |
Date |
getTime()
Get the time of the change. |
(package private) UserData |
getUser()
|
int |
getUserId()
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 |
setJob(JobData job)
|
void |
setJobId(Integer jobId)
|
(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 |
setTime(Date time)
|
(package private) void |
setUser(UserData user)
|
void |
setUserId(int userId)
|
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 |
---|
private Date time
private int userId
private UserData user
private int sessionId
private SessionData session
private Integer clientId
private ClientData client
private Integer projectId
private ProjectData project
private Integer pluginId
private PluginDefinitionData plugin
private Integer jobId
private JobData job
private Set<ChangeHistoryDetailData> details
Constructor Detail |
---|
public ChangeHistoryData()
Method Detail |
---|
public Date getTime()
Date
objectpublic void setTime(Date time)
public int getUserId()
public void setUserId(int userId)
UserData getUser()
void setUser(UserData user)
public int getSessionId()
public void setSessionId(int sessionId)
SessionData getSession()
void setSession(SessionData session)
public Integer getClientId()
public void setClientId(Integer clientId)
ClientData getClient()
void setClient(ClientData client)
public Integer getProjectId()
public void setProjectId(Integer projectId)
ProjectData getProject()
void setProject(ProjectData project)
public Integer getPluginId()
public void setPluginId(Integer pluginId)
PluginDefinitionData getPlugin()
void setPlugin(PluginDefinitionData plugin)
public Integer getJobId()
public void setJobId(Integer jobId)
JobData getJob()
void setJob(JobData job)
Set<ChangeHistoryDetailData> getDetails()
ChangeHistoryDetailData.getChangeHistory()
void setDetails(Set<ChangeHistoryDetailData> details)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |