
pers.zr.opensource.magic.dao.MagicDao Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of magic-dao Show documentation
Show all versions of magic-dao Show documentation
simplify to access database with java.
package pers.zr.opensource.magic.dao;
import pers.zr.opensource.magic.dao.matcher.Matcher;
import pers.zr.opensource.magic.dao.order.Order;
import pers.zr.opensource.magic.dao.page.Page;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* MagicDao interface
*
* Created by zhurong on 2016-4-29.
*/
public interface MagicDao {
public ENTITY get(KEY key);
public void insert(ENTITY entity);
public Long insertForId(ENTITY entity);
public void update(ENTITY entity);
public void delete(KEY key);
public List query(Matcher...conditions);
public List query(List orders, Matcher...conditions);
public List query(Page page, Matcher...conditions);
public List query(Page page, List orders, Matcher...conditions);
public Long getCount(Matcher...conditions);
public void delete(Matcher...conditions);
public void update(Map valueMap, Matcher...conditions);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy