info.extensiblecatalog.nacm.model.persistence
Class AuthorityLinkDAO

java.lang.Object
  extended by info.extensiblecatalog.nacm.model.persistence.AuthorityLinkDAO

public class AuthorityLinkDAO
extends java.lang.Object

Provides search functionality for generating reports with AuthorityLinks

Author:
Dean Rzonca

Constructor Summary
AuthorityLinkDAO()
           
 
Method Summary
protected  java.util.List<AuthorityLink> castList(java.util.List unsafe)
           
 int countAllLinks()
          Counts all links between bib records and authority records presently in the system
 java.util.List<AuthorityLink> findAll()
          Finds all authority links
 java.util.List<AuthorityLink> findAllWithFilter(Filter filter)
          Finds all authority links and applies a filter
 void update(AuthorityLink link)
          Updates an authority link An authority link cannot exist without a bibliographic record, so only updating existing records is permitted through this interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorityLinkDAO

public AuthorityLinkDAO()
Method Detail

update

public void update(AuthorityLink link)
            throws DataAccessException
Updates an authority link An authority link cannot exist without a bibliographic record, so only updating existing records is permitted through this interface

Parameters:
link - the link to update
Throws:
DataAccessException - if the link does not already exist

findAllWithFilter

public java.util.List<AuthorityLink> findAllWithFilter(Filter filter)
Finds all authority links and applies a filter

Parameters:
filter - the filter
Returns:
a List of AuthorityLinks that matches the filter

findAll

public java.util.List<AuthorityLink> findAll()
Finds all authority links

Returns:
a List of AuthorityLinks that matches the filter

countAllLinks

public int countAllLinks()
Counts all links between bib records and authority records presently in the system

Returns:

castList

protected java.util.List<AuthorityLink> castList(java.util.List unsafe)