|
||||||||||
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.UpdateLockRowSemaphore
public class UpdateLockRowSemaphore
Provide thread/resource locking in order to protect resources from being altered by multiple threads at the same time using a db row update.
Note: This Semaphore implementation is useful for databases that do not support row locking via "SELECT FOR UPDATE" type syntax, for example Microsoft SQLServer (MSSQL).
Field Summary | |
---|---|
static java.lang.String |
UPDATE_FOR_LOCK
|
Constructor Summary | |
---|---|
UpdateLockRowSemaphore()
|
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 |
getUpdateLockRowSQL()
|
void |
setUpdateLockRowSQL(java.lang.String updateLockRowSQL)
|
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 UPDATE_FOR_LOCK
Constructor Detail |
---|
public UpdateLockRowSemaphore()
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 getUpdateLockRowSQL()
public void setUpdateLockRowSQL(java.lang.String updateLockRowSQL)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |