|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.extensiblecatalog.nacm.model.persistence.BibliographicRecordDAO
public class BibliographicRecordDAO
Provides store/find/delete functionality for bibliographic records
Constructor Summary | |
---|---|
BibliographicRecordDAO()
|
Method Summary | |
---|---|
protected java.util.List<BibliographicRecord> |
castList(java.util.List unsafe)
|
int |
countUnmatchedRecords()
Counts the records that have not been processed |
java.util.List<BibliographicRecord> |
findAllUnmatched()
Finds all bibliographic records that have NOT been searched against authority records |
java.util.List<BibliographicRecord> |
findByAuthorityRecord(AuthorityRecord record)
Finds bibliographic records that correspond to a given authority record |
BibliographicRecord |
findById(java.lang.Long id)
Finds the bibliographic record with the given ID |
java.util.List<BibliographicRecord> |
findByNormalizedAuthor(java.lang.String author)
Find bibliographic records by author (as entered, not authorized) |
java.util.List<BibliographicRecord> |
findByNormalizedSubject(java.lang.String subject)
Find bibliographic records by subject |
java.util.List<BibliographicRecord> |
findByNormalizedTitle(java.lang.String title)
Finds bibliographic records by title |
java.util.List<BibliographicRecord> |
findUnapprovedByConfidence(java.lang.Integer lowThreshold,
java.lang.Integer highThreshold)
Finds all biblioraphic records that have been processed, have a level of confidence within a certain range, and have not been approved |
void |
remove(BibliographicRecord record)
Removes a bibliographic record from the database |
void |
store(BibliographicRecord recordToStore)
Stores a bibliographic record in the database If the ID is not set (-1), one will be set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BibliographicRecordDAO()
Method Detail |
---|
public void store(BibliographicRecord recordToStore)
recordToStore
- the bibliographic record to storepublic void remove(BibliographicRecord record)
id
- the id of the bibliographic record to removepublic java.util.List<BibliographicRecord> findByNormalizedTitle(java.lang.String title)
title
- the title to search for
public java.util.List<BibliographicRecord> findByNormalizedSubject(java.lang.String subject)
subject
- the subject to search for, in normalized form
public java.util.List<BibliographicRecord> findByNormalizedAuthor(java.lang.String author)
author
- the author to search for, in normalized form
public java.util.List<BibliographicRecord> findByAuthorityRecord(AuthorityRecord record)
record
- the authority record to search for
public java.util.List<BibliographicRecord> findAllUnmatched()
public java.util.List<BibliographicRecord> findUnapprovedByConfidence(java.lang.Integer lowThreshold, java.lang.Integer highThreshold)
lowThreshold
- the minimum confidence level, as a percent (inclusive)highThreshold
- the maximum confidence level, as a percent (inclusive)
public BibliographicRecord findById(java.lang.Long id) throws DataAccessException
id
- the ID to search for
DataAccessException
- if no record exists with the given IDpublic int countUnmatchedRecords()
protected java.util.List<BibliographicRecord> castList(java.util.List unsafe)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |