Package ORG.oclc.oai.server.verb

Examples of ORG.oclc.oai.server.verb.NoItemsMatchException


            /* Get some records from your database */
            stmtRs = new StatementResultSet(populateRangeQuery(from, until, set));
            stmtRs.last();
            int numRows = stmtRs.getRow();
            if (numRows == 0) {
                throw new NoItemsMatchException();
            }
            stmtRs.beforeFirst();
            int count;
           
            /* load the headers and identifiers ArrayLists. */
 
View Full Code Here


        try {
            stmtRs = new StatementResultSet(populateRangeQuery(from, until, set));
            stmtRs.last();
            int numRows = stmtRs.getRow();
            if (numRows == 0) {
                throw new NoItemsMatchException();
            }
            stmtRs.beforeFirst();
            int count;
           
//          if (debug) System.out.println("JDBCOAICatalog.listRecords: numRows=" + numRows);
View Full Code Here

//                  logger.warn("failure", e);
                    e.printStackTrace();
                    throw new OAIInternalServerError(e.getMessage());
                }
            } else {
                throw new NoItemsMatchException();
            }
            listIdentifiersMap.put("headers", headers.iterator());
            listIdentifiersMap.put("identifiers", identifiers.iterator());
            return listIdentifiersMap;
        } catch (TransformerException e) {
View Full Code Here

//                    listRecordsMap.put(
//                            "resumptionMap",
//                            getResumptionMap(resumptionToken.toString()));
                }
            } else {
                throw new NoItemsMatchException();
            }
            listRecordsMap.put("records", recordsList.iterator());
            return listRecordsMap;
        } catch (TransformerException e) {
//          logger.warn("failure", e);
View Full Code Here

            ResultSet rs = stmt.executeQuery(populateRangeQuery(from, until, set));
            rs.last();
            int numRows = rs.getRow();
            if (numRows == 0) {
                endConnection(con);
                throw new NoItemsMatchException();
            }
            rs.beforeFirst();
            int count;
           
            /* load the headers and identifiers ArrayLists. */
 
View Full Code Here

            ResultSet rs = stmt.executeQuery(populateRangeQuery(from, until, set));
            rs.last();
            int numRows = rs.getRow();
            if (numRows == 0) {
                endConnection(con);
                throw new NoItemsMatchException();
            }
            rs.beforeFirst();
            int count;
           
//          if (debug) System.out.println("JDBCOAICatalog.listRecords: numRows=" + numRows);
View Full Code Here

            // withdrawn items
            if (itemInfos.size() == 0)
            {
                log.info(LogManager.getHeader(null, "oai_error",
                        "no_items_match"));
                throw new NoItemsMatchException();
            }

            // Build up lists of headers and identifiers
            Iterator i = itemInfos.iterator();
View Full Code Here

        Iterator i = (Iterator) m.get("records");

        if ((i == null) || !i.hasNext())
        {
            log.info(LogManager.getHeader(null, "oai_error", "no_items_match"));
            throw new NoItemsMatchException();
        }

        return m;
    }
View Full Code Here

TOP

Related Classes of ORG.oclc.oai.server.verb.NoItemsMatchException

Copyright © 2018 www.massapicom. 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.