public class PersistentEntityVersion
extends com.intellij.openapi.util.Pair<java.lang.Long,java.lang.Long>
SPersistentEntity
. Can be used to check if the
entity was edited in memory. Contains 2 components, see documentation
for getPersistId()
and getEditId()
for details.Constructor and Description |
---|
PersistentEntityVersion(long persistId,
long editId) |
PersistentEntityVersion(long persistId,
long editId,
long persistTime,
long editTime,
java.util.List<java.lang.String> editStackTrace) |
Modifier and Type | Method and Description |
---|---|
long |
getEditId()
Returns id of the last edit operation.
|
java.util.List<java.lang.String> |
getEditStackTrace()
Returns stackTrace of the last edit operation
|
long |
getEditTime()
Returns timestamp of the last entity edit or -1 if this information is not available
|
long |
getPersistId()
Returns id of the last persist call.
|
long |
getPersistTime()
Returns timestamp of the last persist or -1 if this information is not available
|
public PersistentEntityVersion(long persistId, long editId)
public PersistentEntityVersion(long persistId, long editId, long persistTime, long editTime, @Nullable java.util.List<java.lang.String> editStackTrace)
public long getPersistId()
public long getEditId()
public long getEditTime()
public long getPersistTime()
@NotNull public java.util.List<java.lang.String> getEditStackTrace()