|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.quartz.impl.jdbcjobstore.DBSemaphore org.quartz.impl.jdbcjobstore.StdRowLockSemaphore
public class StdRowLockSemaphore
Internal database based lock handler for providing thread/resource locking in order to protect resources from being altered by multiple threads at the same time.
Field Summary | |
---|---|
static java.lang.String |
SELECT_FOR_LOCK
|
Constructor Summary | |
---|---|
StdRowLockSemaphore()
This constructor is for using the StdRowLockSemaphore as
a bean. |
|
StdRowLockSemaphore(java.lang.String tablePrefix,
java.lang.String selectWithLockSQL)
|
Method Summary | |
---|---|
protected void |
executeSQL(java.sql.Connection conn,
java.lang.String lockName,
java.lang.String expandedSQL)
Execute the SQL select for update that will lock the proper database row. |
protected java.lang.String |
getSelectWithLockSQL()
|
void |
setSelectWithLockSQL(java.lang.String selectWithLockSQL)
|
Methods inherited from class org.quartz.impl.jdbcjobstore.DBSemaphore |
---|
getLog, getSQL, getTablePrefix, isLockOwner, obtainLock, releaseLock, requiresConnection, setSQL, setTablePrefix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SELECT_FOR_LOCK
Constructor Detail |
---|
public StdRowLockSemaphore()
StdRowLockSemaphore
as
a bean.
public StdRowLockSemaphore(java.lang.String tablePrefix, java.lang.String selectWithLockSQL)
Method Detail |
---|
protected void executeSQL(java.sql.Connection conn, java.lang.String lockName, java.lang.String expandedSQL) throws LockException
executeSQL
in class DBSemaphore
LockException
protected java.lang.String getSelectWithLockSQL()
public void setSelectWithLockSQL(java.lang.String selectWithLockSQL)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |