| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| private final Element | |
| private final Element | |
| private static final int | |
| private final TransactionID |
| Access | Constructor and Description |
|---|---|
| public | SoftLockID(TransactionID
the transaction ID transactionID, Object the element's key this soft lock is going to protect key, Element the new element, can be null newElement, Element the old element, can be null oldElement)Create a new SoftLockID instance |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public Object | |
| public Element | Returns: the commit ElementGet the Element with which this soft lock should be replaced by on commit. |
| public Element | Returns: the rollback ElementGet the Element with which this soft lock should be replaced by on rollback. |
| public TransactionID | Returns: the TransactionIDGet the ID of the transaction under which this soft lock is operating |
| public int | |
| public String |
| key | back to summary |
|---|---|
| private final Object key | |
| newElement | back to summary |
|---|---|
| private final Element newElement | |
| oldElement | back to summary |
|---|---|
| private final Element oldElement | |
| PRIME | back to summary |
|---|---|
| private static final int PRIME | |
| transactionID | back to summary |
|---|---|
| private final TransactionID transactionID | |
| SoftLockID | back to summary |
|---|---|
| public SoftLockID(TransactionID transactionID, Object key, Element newElement, Element oldElement) Create a new SoftLockID instance
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getKey | back to summary |
|---|---|
| public Object getKey() Get the key of the element this soft lock is guarding
| |
| getNewElement | back to summary |
|---|---|
| public Element getNewElement() Get the Element with which this soft lock should be replaced by on commit.
| |
| getOldElement | back to summary |
|---|---|
| public Element getOldElement() Get the Element with which this soft lock should be replaced by on rollback.
| |
| getTransactionID | back to summary |
|---|---|
| public TransactionID getTransactionID() Get the ID of the transaction under which this soft lock is operating
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |