code: private void setFields(Map<String, FieldType> map, MapRow row, FieldContainer container)
     {
        if (row != null)
        {
           for (Map.Entry<String, FieldType> entry : map.entrySet())
           {
              container.set(entry.getValue(), row.getObject(entry.getKey()));
           }
        }
     }
docs: Set the value of one or more fields based on the contents of a database row.
  
  @param map column to field map
  @param row database row
  @param container field container