/**
  * Maps a Datatype object contained in a recordset to an object representation
  *
  * @param $rs Recordset filled with the object data
  * @return objeto Mapped Datatype object
  */
 function &mapOne($rs)
 {
     if ($rs == null) {
         return null;
     }
     $object = new Datatype();
     $object->setId($rs->fields["ID"]);
     $object->setDatatype($rs->fields["datatype"]);
     return $object;
 }