From: Richard Millet Date: Thu, 19 Aug 2010 15:54:31 +0000 (+0000) Subject: CSPACE-1432: Odd that my SVN client shows these added and checked-in, but apparently... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=a320718db5b512e7d967e135c8622d9f2ea1550a;p=tmp%2Fjakarta-migration.git CSPACE-1432: Odd that my SVN client shows these added and checked-in, but apparently not. Original post: Apply "List - pagination (return total items, current page, total pages) " functionality to Account --- 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 index 000000000..43ba37ff4 --- /dev/null +++ b/services/common/src/main/java/org/collectionspace/services/common/query/QueryResultList.java @@ -0,0 +1,54 @@ +package org.collectionspace.services.common.query; + +import java.util.List; +import org.collectionspace.services.common.document.DocumentListWrapper; + +// TODO: Auto-generated Javadoc +/** + * The Class QueryResultList. + */ +public class QueryResultList { + + private long totalSize = 0; + + /** The wrapper object list. */ + private LISTTYPE wrapperObjectList; + + /** + * Instantiates a new query result list. + */ + private QueryResultList() { + //private constructor + } + + /** + * Instantiates a new query result list. + * + * @param theWrapperObjectList the the wrapper object list + */ + public QueryResultList(LISTTYPE theWrapperObjectList) { + wrapperObjectList = theWrapperObjectList; + } + + /** + * Gets the wrapper object list. + * + * @return the wrapper object list + */ + public LISTTYPE getWrapperObjectList() { + return this.wrapperObjectList; + } + + /** + * Sets the total size. This is the total size of the non-paged result set. + * + * @param theTotalResultSize the new total size + */ + public void setTotalSize(long theTotalSize) { + totalSize = theTotalSize; + } + + public long getTotalSize() { + return totalSize; + } +}