Package com.logicaldoc.core.ticket
Interface TicketDAO
- All Superinterfaces:
- PersistentObjectDAO<Ticket>
- All Known Implementing Classes:
- HibernateTicketDAO
DAO for 
Ticket handling.- Author:
- Michael Scholz, Marco Meschieri
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier and TypeMethodDescriptionbooleandeleteByDocId(long docId) This method deletes all tickets of the specified document.booleandeleteByTicketId(String ticketId) This method deletes a download ticket.voidDeletes all expired ticketsfindByTicketId(String ticketId) This finds a ticket by its identifiervoidstore(Ticket ticket, DocumentHistory transaction) This method persists the download ticket object and insert a new document history entryMethods 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- 
deleteByTicketIdThis method deletes a download ticket.- Parameters:
- ticketId- ID of the ticket which should be delete.
- Returns:
- if the tickets have been deleted
 
- 
deleteByDocIdboolean deleteByDocId(long docId) This method deletes all tickets of the specified document.- Parameters:
- docId- ID of the document
- Returns:
- if the ticket has been deleted
 
- 
deleteExpiredvoid deleteExpired()Deletes all expired tickets
- 
findByTicketIdThis finds a ticket by its identifier- Parameters:
- ticketId- The ticket id
- Returns:
- Ticket with given ticket id
 
- 
storeThis method persists the download ticket object and insert a new document history entry- Parameters:
- ticket- the ticket to store
- transaction- entry to log the event
- Throws:
- PersistenceException- error at database level
 
 
-