club.chlab.mybatis.dao.AbstractDao Maven / Gradle / Ivy
The newest version!
package club.chlab.mybatis.dao;
import java.lang.reflect.Field;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;
import club.chlab.mybatis.conditions.JoinEntity;
import club.chlab.mybatis.conditions.SelectField;
import club.chlab.mybatis.provider.DeleteEntityProvider;
import club.chlab.mybatis.provider.InsertEntityProvider;
import club.chlab.mybatis.provider.SelectEntityProvider;
import club.chlab.mybatis.provider.SelectJoinProvider;
import club.chlab.mybatis.provider.UpdateEntityProvider;
/**
* AbstractDao
* @author jch
*
* @param
*/
public interface AbstractDao {
public static int flag = 1;
@InsertProvider(type=InsertEntityProvider.class,method="insert")
public void insert(E e);
@DeleteProvider(type=DeleteEntityProvider.class,method="delete")
public void delete(E e);
@SelectProvider(type=SelectEntityProvider.class,method="select")
public List select(E e,Field...orderby);
@UpdateProvider(type=UpdateEntityProvider.class,method="update")
public void update(E e);
@SelectProvider(type=SelectJoinProvider.class,method="join")
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy