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 Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
Method Summary
Modifier and TypeMethodDescriptionboolean
deleteByDocId
(long docId) This method deletes all tickets of the specified document.boolean
deleteByTicketId
(String ticketId) This method deletes a download ticket.void
Deletes all expired ticketsfindByTicketId
(String ticketId) This finds a ticket by its identifiervoid
store
(Ticket ticket, DocumentHistory transaction) This method persists the download ticket object and insert a new document history entryMethods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, delete, delete, deleteAll, deleteAll, 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, store
-
Method Details
-
deleteByTicketId
This method deletes a download ticket.- Parameters:
ticketId
- ID of the ticket which should be delete.- Returns:
- if the tickets have been deleted
-
deleteByDocId
boolean 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
-
deleteExpired
void deleteExpired()Deletes all expired tickets -
findByTicketId
This finds a ticket by its identifier- Parameters:
ticketId
- The ticket id- Returns:
- Ticket with given ticket id
-
store
This method persists the download ticket object and insert a new document history entry- Parameters:
ticket
- the ticket to storetransaction
- entry to log the event- Throws:
PersistenceException
- error at database level
-