--- /dev/null
+package org.collectionspace.services.common.query;\r
+\r
+import java.util.List;\r
+import org.collectionspace.services.common.document.DocumentListWrapper;\r
+\r
+// TODO: Auto-generated Javadoc\r
+/**\r
+ * The Class QueryResultList.\r
+ */\r
+public class QueryResultList<LISTTYPE> {\r
+ \r
+ private long totalSize = 0;\r
+ \r
+ /** The wrapper object list. */\r
+ private LISTTYPE wrapperObjectList;\r
+\r
+ /**\r
+ * Instantiates a new query result list.\r
+ */\r
+ private QueryResultList() {\r
+ //private constructor\r
+ }\r
+ \r
+ /**\r
+ * Instantiates a new query result list.\r
+ *\r
+ * @param theWrapperObjectList the the wrapper object list\r
+ */\r
+ public QueryResultList(LISTTYPE theWrapperObjectList) {\r
+ wrapperObjectList = theWrapperObjectList;\r
+ }\r
+ \r
+ /**\r
+ * Gets the wrapper object list.\r
+ *\r
+ * @return the wrapper object list\r
+ */\r
+ public LISTTYPE getWrapperObjectList() {\r
+ return this.wrapperObjectList;\r
+ }\r
+ \r
+ /**\r
+ * Sets the total size. This is the total size of the non-paged result set.\r
+ *\r
+ * @param theTotalResultSize the new total size\r
+ */\r
+ public void setTotalSize(long theTotalSize) {\r
+ totalSize = theTotalSize;\r
+ }\r
+\r
+ public long getTotalSize() {\r
+ return totalSize;\r
+ }\r
+}\r