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 click_framework Show documentation
Show all versions of click_framework Show documentation
Java Framework based on Spring Framework, Freemarker and Simplicity
package com.clickntap.tool.jdbc;
import java.lang.reflect.Method;
import java.util.List;
import org.springframework.web.multipart.MultipartFile;
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);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy