com.mycomm.dao.dao4comm.base.DAO Maven / Gradle / Ivy
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycomm.dao.dao4comm.base;
import com.mycomm.dao.dao4comm.ResultHelp;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import com.mycomm.dao.dao4comm.util.MyQueryCondition;
/**
*
* @author jw362j
* @param
*/
public interface DAO {
public long getCount();
public int[] saveList(List entity);
public long save(T entity);
public int update(T entity);
public int[] updateList(List entity);
public void delete(long ... entityids);
public void deleteList(long [] ids);
public T find(long entityId);
public T[] findByIds(T clz, long[] theId);
public long[] findIDs(T clz, MyQueryCondition condition);
public ResultHelp getScrollData(long firstindex, int maxresult, String[] fields, String wherejpql, Object[] queryParams, int[] queryParamsTypes, Map orderby) ;
public ResultHelp getScrollData(long firstindex, int maxresult, String wherejpql, Object[] queryParams);
public ResultHelp getScrollData(long firstindex, int maxresult, LinkedHashMap orderby);
public ResultHelp getScrollData(long firstindex, int maxresult);
public ResultHelp getScrollData(MyQueryCondition condition);
public ResultHelp getScrollData();
}