Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.tmsps.ne4spring.base;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jdbc.core.JdbcTemplate;
import com.tmsps.ne4spring.orm.model.DataModel;
import com.tmsps.ne4spring.orm.param.NeParamList;
import com.tmsps.ne4spring.page.Page;
import com.tmsps.ne4spring.page.PageVo;
/**
*
*======================================================
* @author zhangwei [email protected]
*------------------------------------------------------
* IBaseService base service interface
*======================================================
*/
public interface IBaseService {
public Logger log = LoggerFactory.getLogger("Ne4Spring");
//获取对象JdbcTemplate,便于使用JdbcTemplate提供的封装方法
public JdbcTemplate getJdbcTemplate();
//与数据库表的信息对应,保存进入数据库,sync 为是否需要同步一次Model,用于数据库中默认属性的回填
public int saveObj(DataModel model);
public DataModel saveObj(DataModel model, boolean sync);
public int saveTemplateObj(DataModel model);
public DataModel saveTemplateObj(DataModel model, boolean sync);
public void saveObjs(List extends DataModel> objs);
public T findObjById(Object idVal, final Class extends DataModel> clazz);
public T findById(Object idVal, final Class extends DataModel> clazz);
public Map findById(String tableName, String pkName, String pkVal);
public Map findById(String tableName, String pkVal);
public Map findObj(String sql);
public Map findObj(String sql, Object[] vals);
public T findObj(String sql, Class extends DataModel> clazz);
public T findForObj(String sql, Class extends DataModel> clazz);
public List