<T>List<T> onFindAll(Class<T> modelClass,boolean isEager,long... ids){
  List<T> dataList;
  if (isAffectAllLines(ids)) {
    dataList=query(modelClass,null,null,null,null,null,"id",null,getForeignKeyAssociations(modelClass.getName(),isEager));
  }
 else {
    dataList=query(modelClass,null,getWhereOfIdsWithOr(ids),null,null,null,"id",null,getForeignKeyAssociations(modelClass.getName(),isEager));
  }
  return dataList;
}

< T > List < T > onFindAll ( Class < T > modelClass , boolean isEager , long ... ids ) { List < T > dataList ; if ( isAffectAllLines ( ids ) ) { dataList = query ( modelClass , null , null , null , null , null , "id" , null , getForeignKeyAssociations ( modelClass . getName ( ) , isEager ) ) ; } else { dataList = query ( modelClass , null , getWhereOfIdsWithOr ( ids ) , null , null , null , "id" , null , getForeignKeyAssociations ( modelClass . getName ( ) , isEager ) ) ; } return dataList ; }
the open interface for other classes in crud package to query multiple records by an id array . pass no ids means query all rows .
