|
||||||||||
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 |
INSERT_LOCK
|
static java.lang.String |
SELECT_FOR_LOCK
|
Constructor Summary | |
---|---|
StdRowLockSemaphore(java.lang.String tablePrefix,
java.lang.String schedName,
java.lang.String selectWithLockSQL)
|
Method Summary | |
---|---|
protected void |
executeSQL(java.sql.Connection conn,
java.lang.String lockName,
java.lang.String expandedSQL,
java.lang.String expandedInsertSQL)
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, getSchedName, getSchedulerNameLiteral, getSQL, getTablePrefix, isLockOwner, obtainLock, releaseLock, requiresConnection, setInsertSQL, setSchedName, 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
public static final java.lang.String INSERT_LOCK
Constructor Detail |
---|
public StdRowLockSemaphore(java.lang.String tablePrefix, java.lang.String schedName, java.lang.String selectWithLockSQL)
Method Detail |
---|
protected void executeSQL(java.sql.Connection conn, java.lang.String lockName, java.lang.String expandedSQL, java.lang.String expandedInsertSQL) 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 |