public function findAllByIndex($criteria, $fields, $values)
{
$index = $this->getIndexKeyCondition($this->getTableInfo(), $fields, $values);
if (strlen($where = $criteria->getCondition()) > 0) {
$criteria->setCondition("({$index}) AND ({$where})");
} else {
$criteria->setCondition($index);
}
$command = $this->getFindCommand($criteria);
$this->onCreateCommand($command, $criteria);
return $this->onExecuteCommand($command, $command->query());
}