How to adopt GII generated code with DAO or QB?

GII code Generator is a very useful tool for me (specially as a Yii new comer). But it’s entirely based on active record.

For performance reason, I prefer to use my "clear SQL code" instead of Active Record.

How to adopt the GII generated code with DAO or Query Builder?

Is there any tutorial or reference?