Package com.logicaldoc.core.document
Interface DocumentLinkDAO
- All Superinterfaces:
- PersistentObjectDAO<DocumentLink>
- All Known Implementing Classes:
- HibernateDocumentLinkDAO
DAO for 
DocumentLink handling.- Since:
- 4.0
- Author:
- Matteo Caruso - LogicalDOC
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier and TypeMethodDescriptionfindByDocId(long docId) This method finds the list of document link in which there is a document with the given IDfindByDocId(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 IDfindByDocIdsAndType(long docId1, long docId2, String type) Find a document link using its alternate keysMethods inherited from interface com.logicaldoc.core.PersistentObjectDAObulkUpdate, delete, delete, deleteAll, deleteAll, evict, evict, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, queryForString, store
- 
Method Details- 
findByDocIdThis 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
- Throws:
- PersistenceException- Error in the database
 
- 
findByDocIdThis 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
- Throws:
- PersistenceException- Error in the database
 
- 
findByDocIdsAndTypeFind 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
- Throws:
- PersistenceException- Error in the database
 
 
-