public function updateType($typeId, $status, UpdateStruct $updateStruct)
{
$q = $this->dbHandler->createUpdateQuery();
$q->update($this->dbHandler->quoteTable('ezcontentclass'));
$this->setCommonTypeColumns($q, $updateStruct);
$q->where($q->expr->lAnd($q->expr->eq($this->dbHandler->quoteColumn('id'), $q->bindValue($typeId, null, \PDO::PARAM_INT)), $q->expr->eq($this->dbHandler->quoteColumn('version'), $q->bindValue($status, null, \PDO::PARAM_INT))));
$q->prepare()->execute();
$this->deleteTypeNameData($typeId, $status);
$this->insertTypeNameData($typeId, $status, $updateStruct->name);
}