Package de.innovationgate.webgate.api

Examples of de.innovationgate.webgate.api.WGResultSet.results()


           
            // First get to start position
            int startCtr  = start;
            while (sets.hasNext()) {
                currentSet = (WGResultSet) sets.next();
                if (currentSet.results() < startCtr) {
                    startCtr -= currentSet.results();
                    currentSet = null;
                }
                else {
                    break;
View Full Code Here


            // First get to start position
            int startCtr  = start;
            while (sets.hasNext()) {
                currentSet = (WGResultSet) sets.next();
                if (currentSet.results() < startCtr) {
                    startCtr -= currentSet.results();
                    currentSet = null;
                }
                else {
                    break;
                }
View Full Code Here

            if (currentSet == null) {
                return list;
            }
           
            // The contents of this set is enough to fit the length
            if (currentSet.results() >= startCtr + (length - 1)) {
                try {
                    return currentSet.getContentList(startCtr, length);
                }
                catch (WGAPIException e) {
                    tmlContext.addwarning("Unable to retrieve content list from resultset. Exception: '" + e.getClass().getName() + "' message: '" + e.getMessage() + "'.");
View Full Code Here

            // Multiple sets are needed to fit the length
            else {
               
                // Take the first contents from this set;
                int lengthCtr = length;
                int lengthThisSet = ((int) currentSet.results()) - startCtr + 1;
                try {
                    list.addAll(currentSet.getContentList(startCtr, lengthThisSet));
                    lengthCtr -= lengthThisSet;
                }
                catch (WGAPIException e) {
View Full Code Here

                // Take more contents from coming sets
                while (sets.hasNext()) {
                    currentSet = (WGResultSet) sets.next();
                   
                    // This set has to be taken completely (< remaining length)
                    if (currentSet.results() <= lengthCtr) {
                        lengthThisSet = ((int) currentSet.results());
                        try {
                            list.addAll(currentSet.getContentList(1, lengthThisSet));
                            lengthCtr -= lengthThisSet;
                        }
View Full Code Here

                while (sets.hasNext()) {
                    currentSet = (WGResultSet) sets.next();
                   
                    // This set has to be taken completely (< remaining length)
                    if (currentSet.results() <= lengthCtr) {
                        lengthThisSet = ((int) currentSet.results());
                        try {
                            list.addAll(currentSet.getContentList(1, lengthThisSet));
                            lengthCtr -= lengthThisSet;
                        }
                        catch (WGAPIException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.