public class RevisionedEto extends AbstractEto implements RevisionedEntity<Long>
ETO for a revisioned entity.AbstractEto.PersistentEntityAccess| Modifier and Type | Field and Description |
|---|---|
private Number |
revision |
private static long |
serialVersionUID |
LATEST_REVISION| Constructor and Description |
|---|
RevisionedEto()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Number |
getRevision()
This method gets the revision of this entity.
|
void |
setRevision(Number revision)
This method sets the
revision of this entity. |
protected void |
toString(StringBuilder buffer)
Method to extend
AbstractTo.toString() logic. |
getId, getModificationCounter, setId, setModificationCountertoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetId, getModificationCounter, setId, setModificationCounterprivate static final long serialVersionUID
private Number revision
public Number getRevision()
RevisionedEntitylatest revision of an
entity will always return null. Otherwise this object is a historic entity and it will be
read-only so modifications are NOT permitted.getRevision in interface RevisionedEntity<Long>RevisionedEntity.LATEST_REVISION (null) if this is the latest revision.public void setRevision(Number revision)
RevisionedEntityrevision of this entity. setRevision in interface RevisionedEntity<Long>revision - is the new value of RevisionedEntity.getRevision().protected void toString(StringBuilder buffer)
AbstractEtoAbstractTo.toString() logic.toString in class AbstractEtobuffer - is the StringBuilder where to append the string
representation.Copyright © 2014–2019 devon4j-Team. All rights reserved.