Package com.logicaldoc.core.document.dao
Interface DocumentLinkDAO
- 
- All Superinterfaces:
- PersistentObjectDAO<DocumentLink>
 - All Known Implementing Classes:
- HibernateDocumentLinkDAO
 
 public interface DocumentLinkDAO extends PersistentObjectDAO<DocumentLink> DAO forDocumentLinkhandling.- Since:
- 4.0
- Author:
- Matteo Caruso - LogicalDOC
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description List<DocumentLink>findByDocId(long docId)This method finds the list of document link in which there is a document with the given IDList<DocumentLink>findByDocId(long docId, String type)This method finds the list of document link, filtered by the given link type, in which there is a document with the given IDDocumentLinkfindByDocIdsAndType(long docId1, long docId2, String type)Find a document link using its alternate keys- 
Methods inherited from interface com.logicaldoc.core.PersistentObjectDAObulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString, store
 
- 
 
- 
- 
- 
Method Detail- 
findByDocIdList<DocumentLink> findByDocId(long docId) This method finds the list of document link in which there is a document with the given ID- Parameters:
- docId- ID of the document
- Returns:
- The list of document link
 
 - 
findByDocIdList<DocumentLink> findByDocId(long docId, String type) This method finds the list of document link, filtered by the given link type, in which there is a document with the given ID- Parameters:
- docId- ID of the document
- type- Type of each document link in the return list
- Returns:
- The list of document link
 
 - 
findByDocIdsAndTypeDocumentLink findByDocIdsAndType(long docId1, long docId2, String type) Find a document link using its alternate keys- Parameters:
- docId1- identifier of the first document
- docId2- identifier of the second
- type- the document type(null or pdf
- Returns:
- The found instance
 
 
- 
 
-