01: /**
02: * Copyright (C) 2006 NetMind Consulting Bt.
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 3 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: */package hu.netmind.persistence;
18:
19: import java.util.List;
20:
21: /**
22: * This class represent a search result from the database implementation.
23: * The result contains two attributes. The resultSize attribute indicates
24: * the total hit count without applying the limits given. The result
25: * list contains the result rows in maps of attribute name-value pairs.
26: * Note, that the result does not contain all rows, only those specified
27: * with the limits parameter.
28: * @author Brautigam Robert
29: * @version Revision: $Revision$
30: */
31: public class SearchResult {
32: private long resultSize;
33: private List result;
34:
35: public long getResultSize() {
36: return resultSize;
37: }
38:
39: public void setResultSize(long resultSize) {
40: this .resultSize = resultSize;
41: }
42:
43: public List getResult() {
44: return result;
45: }
46:
47: public void setResult(List result) {
48: this.result = result;
49: }
50: }
|