src/org/ohmage/query/impl/DocumentQueries.java
private void updateName(String documentId, String name) throws DataAccessException {
		if(name == null) {
			return;
		}
		
		// Update the document's name.
		String extension = getExtension(name);
		try {
			getJdbcTemplate().update(SQL_UPDATE_NAME, new Object[] { name, extension, documentId });
		}
		catch(org.springframework.dao.DataAccessException e) {
			errorExecutingSql(SQL_UPDATE_NAME, e, name, extension, documentId);
		}
	}
/**
	 * Updates the name associated with the document or does nothing if the
	 * name is null. Also, updates the extension for the file.
	 * 
	 * @param documentId The unique identifier for the document whose name is
	 * 					 being updated.
	 * 
	 * @param name The new name for the document with an extension.
	 */
Updates the name associated with the document or does nothing if the
name is null. Also, updates the extension for the file.

@param documentId The unique identifier for the document whose name is
being updated.

@param name The new name for the document with an extension.
Updates the name associated with the document or does nothing if the name is null . Also updates the extension for the file . @param documentId The unique identifier for the document whose name is being updated . @param name The new name for the document with an extension .
private void updateName(String documentId, String name) throws DataAccessException {
		if(name == null) {
			return;
		}
		String extension = getExtension(name);
		try {
			getJdbcTemplate().update(SQL_UPDATE_NAME, new Object[] { name, extension, documentId });
		}
		catch(org.springframework.dao.DataAccessException e) {
			errorExecutingSql(SQL_UPDATE_NAME, e, name, extension, documentId);
		}
	}
private void updateName ( String documentId , String name ) throws DataAccessException { if ( name == null ) { return ; } String extension = getExtension ( name ) ; try { getJdbcTemplate ( ) . update ( SQL_UPDATE_NAME , new Object [ ] { name , extension , documentId } ) ; } catch ( org . springframework . dao . DataAccessException e ) { errorExecutingSql ( SQL_UPDATE_NAME , e , name , extension , documentId ) ; } }
Updates the name associated with the document or does nothing if the
 name is null.
Updates the name associated with the document or does nothing if the name is null .
// Update the document's name.