public class HibernateDocumentLinkDAO extends HibernatePersistentObjectDAO<DocumentLink> implements DocumentLinkDAO
DocumentLinkDAO
entityClass, 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, store
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bulkUpdate, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, store
public List<DocumentLink> findByDocId(long docId)
DocumentLinkDAO
findByDocId
in interface DocumentLinkDAO
docId
- ID of the document.DocumentLinkDAO.findByDocId(long)
public List<DocumentLink> findByDocId(long docId, String type)
DocumentLinkDAO
findByDocId
in interface DocumentLinkDAO
docId
- 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)
DocumentLinkDAO
findByDocIdsAndType
in interface DocumentLinkDAO
public boolean delete(long id)
PersistentObjectDAO
delete
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.