OAKLAND, Calif. — For more than a decade, the district attorney for Alameda County, where this city is the center of gravity, prosecuted crime the old-fashioned way, with stiff sentences and the reliable support of law-enforcement unions at election time.