Generally the merchant class was viewed with disdain while peasants were viewed with more respect as they were the producers. Scholars were perhaps most expected, and many important posts were held by them. The core of my question is were scholars who did not hold posts considered elites? What about men who failed the civil service exams?
I used ancient China to mean roughly the later half of the imperial era but any answer that applies to pre-20th century China is good.