server
1.9.0
jvm
server
/
io.spine.server.entity
/
VersionIncrement
Version
Increment
public
abstract
class
VersionIncrement
A strategy for incrementing a version of an entity being modified in a transaction.
Members
Constructors
Version
Increment
Link copied to clipboard
public
void
VersionIncrement
(
)
Functions
from
Event
Link copied to clipboard
public
static
VersionIncrement
fromEvent
(
EventEnvelope
e
)
Creates a version increment which sets the new version from the given event.
next
Version
Link copied to clipboard
protected
abstract
Version
nextVersion
(
)
Creates a new version for the entity in transaction.
sequentially
Link copied to clipboard
public
static
VersionIncrement
sequentially
(
Transaction
tx
)
Creates a version increment which always advances the given entity version by 1.