Subversion Repositories eFlore/Applications.coel

Rev

Rev 1049 | Rev 1097 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1049 Rev 1058
Line 30... Line 30...
30
 
30
 
31
	public void selectionner(final String commentaireId, String projetId, String titre, final int pageCourante, final int nbElements) {
31
	public void selectionner(final String commentaireId, String projetId, String titre, final int pageCourante, final int nbElements) {
Line 32... Line 32...
32
		String[] parametres = {projetId, commentaireId, titre};
32
		String[] parametres = {projetId, commentaireId, titre};
33
		
33
		
34
		HashMap<String, String> restrictions = new HashMap<String, String>();
34
		HashMap<String, String> restrictions = new HashMap<String, String>();
35
		restrictions.put("start", String.valueOf(pageCourante));
35
		restrictions.put("start", String.valueOf(pageCourante*nbElements));
36
		if (nbElements != -1)	{
36
		if (nbElements != -1)	{
Line 37... Line 37...
37
			restrictions.put("limit", String.valueOf(nbElements));
37
			restrictions.put("limit", String.valueOf(nbElements));