public interface Lockable
Modifier and Type | Method and Description |
---|---|
boolean |
isChanged()
Indicates whether this object is changed locally or not.
|
boolean |
isLocked()
Returns the lock state of this object.
|
void |
lock()
Locks this object.
|
void |
refresh()
Discard
local changes and
load actual server version of this object |
void |
save()
Saves this object.
|
void |
unlock()
Unlocks this object.
|
void lock() throws ConcurrentChangeException, LockException
changed locally
it will be refreshed transparent.local changes
a ConcurrentModificationException
will be thrown.ConcurrentChangeException
- if this object is changed
locally and it has changed on the serverLockException
- if the underlying object is already locked by another userrefresh()
void unlock()
boolean isLocked()
true
if this object is locked, false
otherwisevoid save()
lock
to this object.boolean isChanged()
true
if this object is changed locally, false
otherwisevoid refresh()
local changes
and
load actual server version of this objectCopyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408