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

pers.zr.opensource.magic.dao.MagicDao Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
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