LockingPolicy
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public int | getMode()
Implements org. Get the mode of this policy |
| public boolean | lockContainer(Transaction
Transaction to associate lock with. t, ContainerHandle Container to lock. container, boolean Should lock request wait until granted? waitForLock, boolean Should container be locked for update, or read? forUpdate)Implements org. Called when a container is opened. |
| public boolean | lockRecordForRead(Transaction
Transaction to associate lock with. t, ContainerHandle Open Container used to get record. Will be used
to row locks by the container they belong to. container, RecordHandle Record to lock. record, boolean Should lock request wait until granted? waitForLock, boolean Should container be locked for update, or read? forUpdate)Implements org. Called before a record is fetched. |
| public boolean | lockRecordForWrite(Transaction
Transaction to associate lock with. t, RecordHandle Record to lock. record, boolean Lock is for an insert. lockForInsert, boolean Should lock request wait until granted? waitForLock)Implements org. Called before a record is inserted, updated or deleted. |
| public void | unlockContainer(Transaction t, ContainerHandle container)
Implements org. Called when a container is closed. |
| public void | unlockRecordAfterRead(Transaction t, ContainerHandle container, RecordHandle record, boolean forUpdate, boolean row_qualified)
Implements org. Called after a record has been fetched. |
| public boolean | zeroDurationLockRecordForWrite(Transaction
Transaction to associate lock with. t, RecordHandle Record to lock. record, boolean Lock is for a previous key of a insert. lockForPreviousKey, boolean Should lock request wait until granted? waitForLock)Implements org. Request a write lock which will be released immediately upon grant. |
| NoLocking | back to summary |
|---|---|
| protected NoLocking() | |
| getMode | back to summary |
|---|---|
| public int getMode() Implements org. Doc from org. Get the mode of this policy | |
| lockContainer | back to summary |
|---|---|
| public boolean lockContainer(Transaction t, ContainerHandle container, boolean waitForLock, boolean forUpdate) throws StandardException Implements org. Doc from org. Called when a container is opened.
| |
| lockRecordForRead | back to summary |
|---|---|
| public boolean lockRecordForRead(Transaction t, ContainerHandle container, RecordHandle record, boolean waitForLock, boolean forUpdate) throws StandardException Implements org. Doc from org. Called before a record is fetched.
| |
| lockRecordForWrite | back to summary |
|---|---|
| public boolean lockRecordForWrite(Transaction t, RecordHandle record, boolean lockForInsert, boolean waitForLock) throws StandardException Implements org. Doc from org. Called before a record is inserted, updated or deleted. If zeroDuration is true then lock is released immediately after it has been granted.
| |
| unlockContainer | back to summary |
|---|---|
| public void unlockContainer(Transaction t, ContainerHandle container) Implements org. Doc from org. Called when a container is closed. | |
| unlockRecordAfterRead | back to summary |
|---|---|
| public void unlockRecordAfterRead(Transaction t, ContainerHandle container, RecordHandle record, boolean forUpdate, boolean row_qualified) throws StandardException Implements org. Doc from org. Called after a record has been fetched.
| |
| zeroDurationLockRecordForWrite | back to summary |
|---|---|
| public boolean zeroDurationLockRecordForWrite(Transaction t, RecordHandle record, boolean lockForPreviousKey, boolean waitForLock) throws StandardException Implements org. Doc from org. Request a write lock which will be released immediately upon grant.
| |