src/org/ohmage/query/ISurveyUploadQuery.java
List<Integer> insertSurveys(
			final String username, 
			final String client,
			final String campaignUrn,
			final List<SurveyResponse> surveyUploadList,
			final Map<UUID, Image> bufferedImageMap,
			final Map<UUID, Video> videoContentsMap,
			final Map<UUID, Audio> audioContentsMap, 
			final Map<UUID, IMedia> documentContentsMap)
			throws DataAccessException;
/**
	 * Inserts surveys into survey_response, prompt_response, and
	 * url_based_resource (if the payload contains images). Any images are also
	 * persisted to the file system. The entire persistence process is wrapped
	 * in one giant transaction.
	 * 
	 * @param user
	 *        The owner of the survey upload.
	 * @param client
	 *        The software client that performed the upload.
	 * @param campaignUrn
	 *        The campaign for the survey upload.
	 * @param surveyUploadList
	 *        The surveys to persist.
	 * @param bufferedImageMap
	 *        The images to persist.
	 * @param videoContentsMap
	 *        The videos to persist.
	 * @param audioContentsMap
	 *        The audio files to persist.
	 * @param documentContentsMap 
	 * @return Returns a List of Integers representing the ids of duplicate
	 *         surveys.
	 * @throws DataAccessException
	 *         If any IO error occurs.
	 */
Inserts surveys into survey_response, prompt_response, and
url_based_resource (if the payload contains images). Any images are also
persisted to the file system. The entire persistence process is wrapped
in one giant transaction.

@param user
The owner of the survey upload.
@param client
The software client that performed the upload.
@param campaignUrn
The campaign for the survey upload.
@param surveyUploadList
The surveys to persist.
@param bufferedImageMap
The images to persist.
@param videoContentsMap
The videos to persist.
@param audioContentsMap
The audio files to persist.
@param documentContentsMap
@return Returns a List of Integers representing the ids of duplicate
surveys.
@throws DataAccessException
If any IO error occurs.
Inserts surveys into survey_response prompt_response and url_based_resource ( if the payload contains images ) . Any images are also persisted to the file system . The entire persistence process is wrapped in one giant transaction . @param user The owner of the survey upload . @param client The software client that performed the upload . @param campaignUrn The campaign for the survey upload . @param surveyUploadList The surveys to persist . @param bufferedImageMap The images to persist . @param videoContentsMap The videos to persist . @param audioContentsMap The audio files to persist . @param documentContentsMap @return Returns a List of Integers representing the ids of duplicate surveys . @throws DataAccessException If any IO error occurs .
List<Integer> insertSurveys(
			final String username, 
			final String client,
			final String campaignUrn,
			final List<SurveyResponse> surveyUploadList,
			final Map<UUID, Image> bufferedImageMap,
			final Map<UUID, Video> videoContentsMap,
			final Map<UUID, Audio> audioContentsMap, 
			final Map<UUID, IMedia> documentContentsMap)
			throws DataAccessException;
List < Integer > insertSurveys ( final String username , final String client , final String campaignUrn , final List < SurveyResponse > surveyUploadList , final Map < UUID , Image > bufferedImageMap , final Map < UUID , Video > videoContentsMap , final Map < UUID , Audio > audioContentsMap , final Map < UUID , IMedia > documentContentsMap ) throws DataAccessException ;
Inserts surveys into survey_response, prompt_response, and
 url_based_resource (if the payload contains images).
Inserts surveys into survey_response prompt_response and url_based_resource ( if the payload contains images ) .