Class EntityIdWithLockingVersion
java.lang.Object
de.xima.fc.data.EntityIdWithLockingVersion
A POJO for the ID and locking version of an entity.
- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionEntityIdWithLockingVersion(long id, int lockingVersion) Creates a new POJO for the ID and locking version of an entity. -
Method Summary
Modifier and TypeMethodDescriptionlongid()TheIEntity.getId()ID} of the entity.intThelocking versionof the entity.
-
Constructor Details
-
EntityIdWithLockingVersion
public EntityIdWithLockingVersion(long id, int lockingVersion) Creates a new POJO for the ID and locking version of an entity.- Parameters:
id- The ID of the entity.lockingVersion- The locking version of the entity.
-
-
Method Details
-
id
public long id()TheIEntity.getId()ID} of the entity.- Returns:
- The ID of the entity.
-
lockingVersion
public int lockingVersion()Thelocking versionof the entity.- Returns:
- The locking version of the entity.
-