public class LockFactory.Lock extends Classification implements Retirable
DESCRIPTION, fac, NAME, SORT_ORDER
DEBUG, record
MAX_IDENTIFIER
Modifier | Constructor and Description |
---|---|
protected |
Lock(Repository.Record res) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRetire()
Is this object in a state that allows it to be retired.
|
boolean |
isHolding()
Is THIS instance holding the lock
|
boolean |
isLocked()
is the lock taken
|
java.util.Date |
lastLocked()
when was the lock last taken (may not be locked now)
|
void |
releaseLock()
release the lock
|
void |
retire()
retire this object.
|
boolean |
takeLock()
attempt to take the lock
|
java.util.Date |
wasLockedAt()
when was the lock taken.
|
compareTo, getDescription, getFactory, getIdentifier, getName, getTableSpecification, post_commit, setDescription, setName, toString
addToMap, addToMap, addToMap, commit, delete, empty, equals, formUpdate, getContext, getDatabaseService, getFactoryTag, getID, getIdentifier, getLogger, getMap, getMap, getOwningFactory, getRecord, getRecord, getRecord, getSQLContext, getUniqueIdName, hashCode, lock, postCreate, pre_commit, release, setContents, setDirty, setMap
protected Lock(Repository.Record res)
res
- fac
- public boolean isLocked()
isLocked
in class DataObject
public java.util.Date wasLockedAt()
Date
public java.util.Date lastLocked()
public boolean isHolding()
public boolean takeLock() throws DataFault
DataFault
public boolean canRetire()
Retirable