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

com.hadoopz.MyDroidLib.orm.dao.DAO Maven / Gradle / Ivy

There is a newer version: 1.0.62
Show newest version
/*
 * 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.hadoopz.MyDroidLib.orm.dao;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
 *
 * @author jw362j
 * @param 
 */
public interface DAO {
	public long getCount();      
        public long[] saveList(List entity);
        public long save(T entity);
	public long update(T entity);
        public long[] 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();
	 
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy