Package ORG.oclc.oai.server.verb

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


            Statement stmt = con.createStatement();
            ResultSet rs =
                stmt.executeQuery(populateIdentifierQuery(oaiIdentifier));
            if (!rs.next()) {
                endConnection(con);
                throw new IdDoesNotExistException(oaiIdentifier);
            }
            HashMap nativeItem = getColumnValues(rs);
            endConnection(con);
            return constructRecord(nativeItem, metadataPrefix);
        } catch (SQLException e) {
View Full Code Here


      String localIdentifier
    = getRecordFactory().fromOAIIdentifier(oaiIdentifier);

            nativeItem = getNativeRecord(localIdentifier + "." + metadataPrefix);
            if (nativeItem == null)
                throw new IdDoesNotExistException(oaiIdentifier);
            return constructRecord(nativeItem, metadataPrefix);
        } catch (IOException e) {
            e.printStackTrace();
            throw new OAIInternalServerError("Database Failure");
        }
View Full Code Here

//         }
       
        if (extensionList != null) {
            return getRecordFactory().getSchemaLocations(extensionList);
        } else {
            throw new IdDoesNotExistException(oaiIdentifier);
        }
    }
View Full Code Here

             * Doing so will preserve the separation of database access
             * (which happens here) from the record content interpretation
             * (which is the responsibility of the RecordFactory implementation).
             */
            if (!stmtRs.next()) {
                throw new IdDoesNotExistException(oaiIdentifier);
            } else {
                /* Make sure the identifierQuery returns the columns you need
                 * (if any) to determine the supported schemaLocations for this item */
                HashMap nativeItem = stmtRs.getColumnValues();
                return getRecordFactory().getSchemaLocations(nativeItem);
View Full Code Here

    IdDoesNotExistException {
        StatementResultSet stmtRs = null;
        try {
            stmtRs = new StatementResultSet(populateIdentifierQuery(oaiIdentifier));
            if (!stmtRs.next()) {
                throw new IdDoesNotExistException(oaiIdentifier);
            }
            HashMap nativeItem = stmtRs.getColumnValues();
            return constructRecord(nativeItem, metadataPrefix);
        } catch (SQLException e) {
            e.printStackTrace();
View Full Code Here

                    e.printStackTrace();
                    throw new OAIInternalServerError(e.getMessage());
                }
            }
        } else {
            throw new IdDoesNotExistException(oaiIdentifier);
        }
        return result;
    }
View Full Code Here

            } catch (CannotDisseminateFormatException e) {
                e.printStackTrace();
                throw e;
            }
        } else {
            throw new IdDoesNotExistException(oaiIdentifier);
        }
    }
View Full Code Here

            } catch (CannotDisseminateFormatException e) {
                e.printStackTrace();
                throw e;
            }
        } else {
            throw new IdDoesNotExistException(oaiIdentifier);
        }
    }
View Full Code Here

             * (which happens here) from the record content interpretation
             * (which is the responsibility of the RecordFactory implementation).
             */
            if (!rs.next()) {
                endConnection(con);
                throw new IdDoesNotExistException(oaiIdentifier);
            } else {
                /* Make sure the identifierQuery returns the columns you need
                 * (if any) to determine the supported schemaLocations for this item */
                HashMap nativeItem = getColumnValues(rs);
                endConnection(con);
View Full Code Here

            Statement stmt = con.createStatement();
            ResultSet rs =
                stmt.executeQuery(populateIdentifierQuery(oaiIdentifier));
            if (!rs.next()) {
                endConnection(con);
                throw new IdDoesNotExistException(oaiIdentifier);
            }
            HashMap nativeItem = getColumnValues(rs);
            endConnection(con);
            return constructRecord(nativeItem, metadataPrefix);
        } catch (SQLException e) {
View Full Code Here

TOP

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

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.