package dao;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import org.hibernate.criterion.DetachedCriteria;
public interface BaseDao<T> {
public void save(T o);
public void update(T o);
public void delete(T o);
public T get(java.io.Serializable id);
public void saveOrUpdate(T o);
public T merge(T o);
public Integer deleteAll(Object[] ids);
public void deleteAll(Collection<T> objs);
public List<T> findAll();
public List<T> findForPage(DetachedCriteria conds, int pageNo, int pageSize);
public Integer getTotalCount(DetachedCriteria conds);
public List<T> findByCriteria(DetachedCriteria conds);
public List<T> findByExample(T o);
// find("")
// find("", 1)
// find("", 1, "")
// find("", [])
public List<T> find(String hql, Object... params);
}