public class DBLogicalLockCommand extends SQLCommand
LOGICAL_LOCK [TYPE type OBTAIN globalKey [CURRENT_LOCK_ID current_lock_key] [BREAK_LOCK break_lock]] | [RELEASE globalKey]Usage
/* Obtaining STEALABLE LOCK for the current screen */ LOGICAL_LOCK STEALABLE OBTAIN globalKey CURRENT_LOCK_ID current_lock_key BREAK_LOCK break_lockTHREAD MODE: SINGLE THREADED command
CURSOR_SIZE| Constructor and Description |
|---|
DBLogicalLockCommand(Connection connection,
Pattern pattern)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute(Parser p)
execute this command
|
java.lang.String |
getColumnName(int col)
the column name
|
java.lang.String |
getColumnType(int col)
Gets the column type for the given column index, starting at one
|
void |
getError(DBLogicalLockException lle,
MutableDataSource mds,
DBLogicalLock currLock) |
java.lang.String |
getRecordID(int row)
the record ID
|
java.lang.Object |
getValue(int row,
int col)
Get value
|
void |
obtainLock(java.lang.String objKey,
DBObject obj,
java.lang.String currentLockKey,
GlobalKey currLockglobalKey,
Login login,
Session session,
java.lang.String breakLock,
java.lang.String lockType,
MutableDataSource mds)
Obtain lock
|
appendResult, appendResult, getCursorName, getRecordKey, isExecuteOnlyexecute, extMakeThreadName, getConnection, getPattern, getRawTitle, getTitle, makeThreadName, recordCall, setTitleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRawTitlepublic DBLogicalLockCommand(Connection connection, Pattern pattern)
connection - connectionpattern - patternprotected void execute(Parser p) throws java.lang.Exception
public void obtainLock(java.lang.String objKey,
DBObject obj,
java.lang.String currentLockKey,
GlobalKey currLockglobalKey,
Login login,
Session session,
java.lang.String breakLock,
java.lang.String lockType,
MutableDataSource mds)
throws java.lang.Exception
objKey - objKeyobj - objectcurrentLockKey - currLockKeycurrLockglobalKey - currLock GlobalKeylogin - loginsession - sessionbreakLock - locklockType - locktypemds - datasourcejava.lang.Exception - epublic void getError(DBLogicalLockException lle, MutableDataSource mds, DBLogicalLock currLock) throws java.lang.Exception
lle - logicallock exceptionmds - DatasourcecurrLock - currLockjava.lang.Exception - epublic java.lang.String getColumnName(int col)
col - the columnpublic java.lang.String getRecordID(int row)
row - the row indexpublic java.lang.String getColumnType(int col)
col - the column indexpublic java.lang.Object getValue(int row,
int col)
throws java.lang.Exception
row - rownocol - coljava.lang.Exception - estSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.