public static String load(LoadConfiguration config, String prefix) {
		if (config.getMode() == Mode.INSERT) {
			return loadInsert(config, prefix);
		}
		else if (config.getMode() == Mode.UPDATE) {
			return loadUpdate(config, prefix);
		}
		throw new IllegalArgumentException("Unsupported mode " + config.getMode());
	}
Builds sql clause to load data into a database.

@param config
           Load configuration.
@param prefix
           Prefix for temporary resources.
@return
           the load DDL
extensions/spring-xd-extension-gpfdist/src/main/java/org/springframework/xd/greenplum/support/SqlUtils.java