function key()
 {
   if($this->is_cached_rs)
     return $this->cached_rs->key();
   else
     return parent :: key();
 }