src/org/ohmage/service/MobilityServices.java
public void createMobilityPoint(final String username, 
			final String client, final List<MobilityPoint> mobilityPoints) 
			throws ServiceException {
		
		if(username == null) {
			throw new ServiceException("The username cannot be null.");
		}
		else if(client == null) {
			throw new ServiceException("The client cannot be null.");
		}
		
		try {
			for(MobilityPoint mobilityPoint : mobilityPoints) {
				userMobilityQueries.createMobilityPoint(username, client, mobilityPoint);
			}
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
/**
	 * Adds the Mobility point to the database.
	 * 
	 * @param mobilityPoints A list of Mobility points to be added to the 
	 * 						 database.
	 * 
	 * @throws ServiceException Thrown if there is an error.
	 */
Adds the Mobility point to the database.

@param mobilityPoints A list of Mobility points to be added to the
database.

@throws ServiceException Thrown if there is an error.
Adds the Mobility point to the database . @param mobilityPoints A list of Mobility points to be added to the database . @throws ServiceException Thrown if there is an error .
public void createMobilityPoint(final String username, 
			final String client, final List<MobilityPoint> mobilityPoints) 
			throws ServiceException {
		if(username == null) {
			throw new ServiceException("The username cannot be null.");
		}
		else if(client == null) {
			throw new ServiceException("The client cannot be null.");
		}
		try {
			for(MobilityPoint mobilityPoint : mobilityPoints) {
				userMobilityQueries.createMobilityPoint(username, client, mobilityPoint);
			}
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
public void createMobilityPoint ( final String username , final String client , final List < MobilityPoint > mobilityPoints ) throws ServiceException { if ( username == null ) { throw new ServiceException ( "The username cannot be null." ) ; } else if ( client == null ) { throw new ServiceException ( "The client cannot be null." ) ; } try { for ( MobilityPoint mobilityPoint : mobilityPoints ) { userMobilityQueries . createMobilityPoint ( username , client , mobilityPoint ) ; } } catch ( DataAccessException e ) { throw new ServiceException ( e ) ; } }
Adds the Mobility point to the database.
Adds the Mobility point to the database .