All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yuweix.kuafu.dao.mybatis.SelectMapper Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package com.yuweix.kuafu.dao.mybatis;


import com.yuweix.kuafu.dao.mybatis.order.OrderBy;
import com.yuweix.kuafu.dao.mybatis.provider.SelectSqlProvider;
import com.yuweix.kuafu.dao.mybatis.where.Criteria;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.io.Serializable;
import java.util.List;


/**
 * @author yuwei
 */
public interface SelectMapper {
	@SelectProvider(type = SelectSqlProvider.class, method = "selectOneById")
	T selectOneById(@Param("id") PK id, @Param("clz") Class clz);

	@SelectProvider(type = SelectSqlProvider.class, method = "findCount")
	int findCount(@Param("criteria") Criteria criteria, @Param("clazz") Class clazz);

	@SelectProvider(type = SelectSqlProvider.class, method = "findList")
	List findList(@Param("criteria") Criteria criteria, @Param("orderBy") OrderBy orderBy, @Param("clazz") Class clazz);

	@SelectProvider(type = SelectSqlProvider.class, method = "findList")
	List findPageList(@Param("criteria") Criteria criteria, @Param("pageNo") int pageNo
			, @Param("pageSize") int pageSize, @Param("orderBy") OrderBy orderBy, @Param("clazz") Class clazz);
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy