public class Revision
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected QualifiedAgent |
agent
The agent releasing this revision.
|
protected java.lang.String |
comment
The comment for this revision.
|
protected long |
revision
The revision count of this revision.
|
protected long |
timestamp
The timestamp of this revision.
|
| Constructor and Description |
|---|
Revision(long revision,
long timestamp,
QualifiedAgent agent,
java.lang.String comment)
Creates a new revision object with the designated revision count, the
timestamp, the agent and the comment.
|
| Modifier and Type | Method and Description |
|---|---|
QualifiedAgent |
getAgent()
Gets the agent releasing this revision.
|
java.lang.String |
getComment()
Gets the comment for this revision, that is arbitrary text provided by the
releasing agent.
|
long |
getRevision()
Gets the revision count of this revision. 0 is for the initial revision,
that is the corresponding entity is not versioned yet.
|
long |
getTimestamp()
Gets the timestamp of this revision, that is the time, this revision has
been created. 0 is for the initial revision, that is the corresponding
entity is not versioned yet.
|
protected final long revision
protected final long timestamp
protected final QualifiedAgent agent
protected final java.lang.String comment
public Revision(long revision,
long timestamp,
QualifiedAgent agent,
java.lang.String comment)
revision - The revision count of this revision.timestamp - The timestamp of this revision.agent - The agent releasing this revision.comment - The comment for this revision.public long getRevision()
public long getTimestamp()
public QualifiedAgent getAgent()
null is for the
initial revision, that is the corresponding entity is not versioned yet.public java.lang.String getComment()