]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-1432: Odd that my SVN client shows these added and checked-in, but apparently...
authorRichard Millet <richard.millet@berkeley.edu>
Thu, 19 Aug 2010 15:54:31 +0000 (15:54 +0000)
committerRichard Millet <richard.millet@berkeley.edu>
Thu, 19 Aug 2010 15:54:31 +0000 (15:54 +0000)
services/common/src/main/java/org/collectionspace/services/common/query/QueryResultList.java [new file with mode: 0644]

diff --git a/services/common/src/main/java/org/collectionspace/services/common/query/QueryResultList.java b/services/common/src/main/java/org/collectionspace/services/common/query/QueryResultList.java
new file mode 100644 (file)
index 0000000..43ba37f
--- /dev/null
@@ -0,0 +1,54 @@
+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