public static function getByNome($departamento) { $sql = "select * from Departamento where Nome = '" . $departamento . "'"; $resultset = ConnectionUtil::executarSelect($sql); return DepartamentoDao::parse($resultset[0]); }