Interface OrderLock
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
OrderLockImpl
Domain object used to synchronize
Order operations.- Author:
- Andre Azzolini (apazzolini)
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()voidSet a key identifying the creator of the lockvoidsetLastUpdated(Long lastUpdated) Set the time of alterationvoidSets the lock state of this OrderLockvoidsetOrderId(Long orderId) Sets the id of theOrderassociated with this OrderLock
-
Method Details
-
getOrderId
Long getOrderId()- Returns:
- the id of the
Orderassociated with this OrderLock
-
setOrderId
Sets the id of theOrderassociated with this OrderLock- Parameters:
orderId-
-
getLocked
Boolean getLocked()- Returns:
- whether or not this OrderLock is currently locked
-
setLocked
Sets the lock state of this OrderLock- Parameters:
locked-
-
getLastUpdated
Long getLastUpdated()- Returns:
- the last time this lock record was successfully altered
-
setLastUpdated
Set the time of alteration- Parameters:
lastUpdated-
-
getKey
String getKey()- Returns:
- the key used to identify the creator of the lock
-
setKey
Set a key identifying the creator of the lock- Parameters:
nodeKey-
-