Package com.logicaldoc.core.ticket
Interface TicketDAO
-
- All Superinterfaces:
PersistentObjectDAO<Ticket>
- All Known Implementing Classes:
HibernateTicketDAO
public interface TicketDAO extends PersistentObjectDAO<Ticket>
DAO forTicket
handling.- Author:
- Michael Scholz, Marco Meschieri
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
deleteByDocId(long docId)
This method deletes all tickets of the specified document.boolean
deleteByTicketId(String ticketId)
This method deletes a download ticket.void
deleteExpired()
Deletes all expired ticketsTicket
findByTicketId(String ticketId)
This finds a ticket by its identifierboolean
store(Ticket ticket, DocumentHistory transaction)
This method persists the download ticket object and insert a new document history entry-
Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString, store
-
-
-
-
Method Detail
-
deleteByTicketId
boolean deleteByTicketId(String ticketId)
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
Ticket findByTicketId(String ticketId)
This finds a ticket by its identifier- Parameters:
ticketId
- The ticket id- Returns:
- Ticket with given ticket id
-
store
boolean store(Ticket ticket, DocumentHistory transaction)
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- Returns:
- True if successfully stored in a database
-
-