com.github.siwenyan.query.MyBatisQuery Maven / Gradle / Ivy
package com.github.siwenyan.query;
import com.github.siwenyan.common.DataTableTools;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.log4j.Logger;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
public class MyBatisQuery extends QueryBase {
public static final Logger log = Logger.getLogger(MyBatisQuery.class.getName());
private final SqlSessionFactory sqlSessionFactory;
public MyBatisQuery(SqlSessionFactory sqlSessionFactory) {
this.sqlSessionFactory = sqlSessionFactory;
}
@Override
public Object query(String path, Object... params) {
path = path.trim();
List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy