querymethods.util.ExampleUtil Maven / Gradle / Ivy
package querymethods.util;
import java.util.Queue;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import querymethods.springdata.PartTreeFactory;
import querymethods.springdata.query.domain.Sort;
import querymethods.springdata.query.parser.Part;
import querymethods.springdata.query.parser.PartTree;
import querymethods.springdata.query.parser.PartTree.OrPart;
import tk.mybatis.mapper.MapperException;
import tk.mybatis.mapper.entity.Example;
import tk.mybatis.mapper.entity.Example.OrderBy;
import tk.mybatis.mapper.util.StringUtil;
/**
* Example工具类
*
* @author OYGD
*
*/
public class ExampleUtil {
protected final static Log logger = LogFactory.getLog(ExampleUtil.class);
private ExampleUtil() {}
/**
* 根据MappedStatement id 与参数生成Example
*
* @param msId
* @param params
* @return
* @throws ClassNotFoundException
*/
public static Example getExampleByMsId(String msId, Queue
© 2015 - 2025 Weber Informatics LLC | Privacy Policy