public class LazyRevisionMetadata extends Object implements RevisionMetadata
RevisionMetadata interface.| Modifier and Type | Field and Description |
|---|---|
private javax.persistence.EntityManager |
entityManager
The
EntityManager used to read the metadata. |
private Long |
revision |
private AdvancedRevisionEntity |
revisionEntity |
| Constructor and Description |
|---|
LazyRevisionMetadata(javax.persistence.EntityManager entityManager,
Long revision)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthor()
This method gets the identifier (login) of the author who created this revision.
|
Date |
getDate()
This method gets the date when this revision was created (closed).
|
Number |
getRevision()
This method gets the
revision
number. |
AdvancedRevisionEntity |
getRevisionEntity() |
private final javax.persistence.EntityManager entityManager
EntityManager used to read the metadata.private final Long revision
getRevision()private AdvancedRevisionEntity revisionEntity
getRevisionEntity()public AdvancedRevisionEntity getRevisionEntity()
public String getAuthor()
RevisionMetadatagetAuthor in interface RevisionMetadatanull (if committed outside user scope).public Date getDate()
RevisionMetadatagetDate in interface RevisionMetadatanull if the according entity is the latest revision.public Number getRevision()
RevisionMetadatarevision
number.getRevision in interface RevisionMetadataCopyright © 2014–2019 devon4j-Team. All rights reserved.