com.clickntap.tool.jdbc.JdbcDefaultBlobber Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Stripecube Show documentation
Show all versions of Stripecube Show documentation
Stripecube is an open source Java framework for Web Applications
package com.clickntap.tool.jdbc;
import org.springframework.web.multipart.MultipartFile;
import java.lang.reflect.Method;
import java.util.List;
public class JdbcDefaultBlobber implements JdbcBlobber {
public void update(Object bean, MultipartFile multipartFile, List scripts, JdbcManager jdbcManager) throws Exception {
Method method = bean.getClass().getMethod("setFile", MultipartFile.class);
if (method != null)
method.invoke(bean, multipartFile);
jdbcManager.updateScript(scripts.get(0), bean);
}
}