|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.extensiblecatalog.nacm.model.persistence.AuthorityRecordDAO
public class AuthorityRecordDAO
Provides store/find/delete functionality for authority records
Constructor Summary | |
---|---|
AuthorityRecordDAO()
|
Method Summary | |
---|---|
protected java.util.List<AuthorityRecord> |
castList(java.util.List unsafe)
|
java.util.List<AuthorityRecord> |
findAllGeneratedRecords()
Finds all authority records that were generated by the NACM |
java.util.List<AuthorityRecord> |
findByAlternateName(java.lang.String alternateName)
Finds authority records by an alternate name |
java.util.List<AuthorityRecord> |
findByAuthorizedName(java.lang.String authorizedName)
Finds authority records by their authorized name |
AuthorityRecord |
findById(java.lang.Long id)
Finds the authority record with the given ID |
java.util.List<AuthorityRecord> |
findByRawAlternateName(java.lang.String alternateName)
Finds authority records by an alternate name |
java.util.List<AuthorityRecord> |
findByRawAuthorizedName(java.lang.String authorizedName)
Finds authority records by their authorized name |
void |
remove(AuthorityRecord toRemove)
Removes an authority record from the database |
void |
store(AuthorityRecord recordToStore)
Stores an authority 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 AuthorityRecordDAO()
Method Detail |
---|
public void store(AuthorityRecord recordToStore)
recordToStore
- the bibliographic record to storepublic void remove(AuthorityRecord toRemove) throws DataAccessException
id
- the authority record to remove
DataAccessException
- if no record exists with the given IDpublic java.util.List<AuthorityRecord> findAllGeneratedRecords()
public java.util.List<AuthorityRecord> findByAuthorizedName(java.lang.String authorizedName)
authorizedName
- the authorized name in normalized form
public java.util.List<AuthorityRecord> findByAlternateName(java.lang.String alternateName)
alternateName
- the alternate name, in normalized form
public java.util.List<AuthorityRecord> findByRawAuthorizedName(java.lang.String authorizedName)
authorizedName
- the authorized name in un-normalized form
public java.util.List<AuthorityRecord> findByRawAlternateName(java.lang.String alternateName)
alternateName
- the alternate name, in un-normalized form
public AuthorityRecord findById(java.lang.Long id) throws DataAccessException
id
- the ID to search for
DataAccessException
- if no record exists with the given IDprotected java.util.List<AuthorityRecord> castList(java.util.List unsafe)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |