@ Override public void deleteAll ( ) throws LockingException { Connection conn = null ; Statement stmnt = null ; try { String sql = "DELETE FROM " + LOCK_TABLE ; if ( log . isDebugEnabled ( ) ) log . debug ( "RDBMEntityLockStore.deleteAll(): " + sql ) ; conn = RDBMServices . getConnection ( ) ; try { stmnt = conn . createStatement ( ) ; int rc = stmnt . executeUpdate ( sql ) ; if ( log . isDebugEnabled ( ) ) { String msg = "Deleted " + rc + " locks." ; log . debug ( "RDBMEntityLockStore.deleteAll(): " + msg ) ; } } finally { if ( stmnt != null ) stmnt . close ( ) ; } } catch ( SQLException sqle ) { throw new LockingException ( "Problem deleting locks" , sqle ) ; } finally { RDBMServices . releaseConnection ( conn ) ; } }
Delete all IEntityLocks from the underlying store .