public class HibernateDocumentLinkDAO extends HibernatePersistentObjectDAO<DocumentLink> implements DocumentLinkDAO
DocumentLinkDAOentityClass, log, sessionFactory| Constructor and Description |
|---|
HibernateDocumentLinkDAO() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(long id)
This method deletes an entity.
|
List<DocumentLink> |
findByDocId(long docId)
This method finds the list of document link in which there is a document
with the given ID.
|
List<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.
|
DocumentLink |
findByDocIdsAndType(long docId1,
long docId2,
String type)
Find a document link using its alternate keys.
|
bulkUpdate, deleteAll, evict, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, flush, getConnection, getCurrentSession, getDbms, getSessionFactory, initialize, isHsql, isMySQL, isOracle, isSqlServer, jdbcUpdate, jdbcUpdate, merge, prepareQuery, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, refresh, saveOrUpdate, setSessionFactory, storeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbulkUpdate, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, storepublic List<DocumentLink> findByDocId(long docId)
DocumentLinkDAOfindByDocId in interface DocumentLinkDAOdocId - ID of the document.DocumentLinkDAO.findByDocId(long)public List<DocumentLink> findByDocId(long docId, String type)
DocumentLinkDAOfindByDocId in interface DocumentLinkDAOdocId - ID of the document.type - Type of each document link in the return list.DocumentLinkDAO.findByDocId(long,
java.lang.String)public DocumentLink findByDocIdsAndType(long docId1, long docId2, String type)
DocumentLinkDAOfindByDocIdsAndType in interface DocumentLinkDAOpublic boolean delete(long id)
PersistentObjectDAOdelete in interface PersistentObjectDAO<DocumentLink>delete in class HibernatePersistentObjectDAO<DocumentLink>id - ID of the entity which should be deleted.Copyright © 2008-2014 Logical Objects. All Rights Reserved.