|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ebi.intenz.domain.DomainObject
uk.ac.ebi.intenz.domain.history.HistoryEvent
public class HistoryEvent
The history event is a structural copy of the corresponding database table, that is attributes of this class correspond to the table's columns.
History events can be deletions, transfers, etc. of enzymes.
Field Summary | |
---|---|
protected HistoryNode |
afterNode
|
protected HistoryNode |
beforeNode
|
protected Date |
date
|
protected EventConstant |
eventClass
|
protected Long |
eventId
|
protected Long |
groupId
|
protected String |
note
|
Fields inherited from class uk.ac.ebi.intenz.domain.DomainObject |
---|
id |
Constructor Summary | |
---|---|
HistoryEvent()
Nothing special. |
Method Summary | |
---|---|
int |
compareTo(HistoryEvent historyEvent)
Makes instances of this class comparable. |
boolean |
equals(Object o)
Checks if two HistoryEvent objects are equal. |
HistoryNode |
getAfterNode()
|
HistoryNode |
getBeforeNode()
|
Date |
getDate()
|
EventConstant |
getEventClass()
|
Long |
getEventId()
|
Long |
getGroupId()
|
String |
getNote()
|
HistoryNode |
getRelative(HistoryNode node)
Returns the relative node of the given node. |
int |
hashCode()
Calculates a unique hash code. |
boolean |
isSuccessor(HistoryNode node)
Returns true if the given node is the successor of this node. |
void |
setAfterNode(HistoryNode afterNode)
|
void |
setBeforeNode(HistoryNode beforeNode)
|
void |
setDate(Date date)
|
void |
setEventClass(EventConstant eventClass)
|
void |
setEventId(Long eventId)
|
void |
setGroupId(Long groupId)
|
void |
setNote(String note)
|
Methods inherited from class uk.ac.ebi.intenz.domain.DomainObject |
---|
getId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Long groupId
protected Long eventId
protected HistoryNode beforeNode
protected HistoryNode afterNode
protected EventConstant eventClass
protected Date date
protected String note
Constructor Detail |
---|
public HistoryEvent()
Method Detail |
---|
public int compareTo(HistoryEvent historyEvent)
compareTo
in interface Comparable<HistoryEvent>
historyEvent
- The object to be compared to this instance.
public boolean equals(Object o)
HistoryEvent
objects are equal.
equals
in class DomainObject
o
- The other HistoryEvent
to compare with this one.
true
, if the two objects are equal.public int hashCode()
hashCode
in class DomainObject
public boolean isSuccessor(HistoryNode node)
true
if the given node is the successor of this node.
node
- The node to be compared to this node's relatives.
true
if the given node is the successor of this node.public HistoryNode getRelative(HistoryNode node)
node
- The node of which the relative is demanded.
null
if no relative exists.
NullPointerException
- if the given node is null
.public Long getGroupId()
public void setGroupId(Long groupId)
public Long getEventId()
public void setEventId(Long eventId)
public HistoryNode getBeforeNode()
public void setBeforeNode(HistoryNode beforeNode)
public HistoryNode getAfterNode()
public void setAfterNode(HistoryNode afterNode)
public EventConstant getEventClass()
public void setEventClass(EventConstant eventClass)
public Date getDate()
public void setDate(Date date)
public String getNote()
public void setNote(String note)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |