Package com.logicaldoc.core.ticket
Class HibernateTicketDAO
java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<Ticket>
com.logicaldoc.core.ticket.HibernateTicketDAO
- All Implemented Interfaces:
- PersistentObjectDAO<Ticket>,- TicketDAO
@Repository("ticketDAO")
public class HibernateTicketDAO
extends HibernatePersistentObjectDAO<Ticket>
implements TicketDAO
Hibernate implementation of 
TicketDAO- Since:
- 3.0
- Author:
- Marco Meschieri - LogicalDOC
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Constructor SummaryConstructors
- 
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 identifiervoidsetConfig(ContextProperties config) voidsetDocumentDAO(DocumentDAO documentDAO) voidThis method persists the entity objectvoidstore(Ticket entity, DocumentHistory transaction) This method persists the download ticket object and insert a new document history entryMethods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAObulkUpdate, 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, setSessionFactoryMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
- 
Constructor Details- 
HibernateTicketDAO
 
- 
- 
Method Details- 
storeDescription copied from interface:PersistentObjectDAOThis method persists the entity object- Specified by:
- storein interface- PersistentObjectDAO<Ticket>
- Overrides:
- storein class- HibernatePersistentObjectDAO<Ticket>
- Parameters:
- entity- entity to be stored
- Throws:
- PersistenceException- raised in case of errors in the database
 
- 
storeDescription copied from interface:TicketDAOThis method persists the download ticket object and insert a new document history entry- Specified by:
- storein interface- TicketDAO
- Parameters:
- entity- the ticket to store
- transaction- entry to log the event
- Throws:
- PersistenceException- error at database level
 
- 
deleteByTicketIdDescription copied from interface:TicketDAOThis method deletes a download ticket.- Specified by:
- deleteByTicketIdin interface- TicketDAO
- Parameters:
- ticketid- ID of the ticket which should be delete.
- Returns:
- if the tickets have been deleted
- See Also:
 
- 
findByTicketIdDescription copied from interface:TicketDAOThis finds a ticket by its identifier- Specified by:
- findByTicketIdin interface- TicketDAO
- Parameters:
- ticketid- The ticket id
- Returns:
- Ticket with given ticket id
 
- 
deleteByDocIdpublic boolean deleteByDocId(long docId) Description copied from interface:TicketDAOThis method deletes all tickets of the specified document.- Specified by:
- deleteByDocIdin interface- TicketDAO
- Parameters:
- docId- ID of the document
- Returns:
- if the ticket has been deleted
 
- 
setConfig
- 
deleteExpiredpublic void deleteExpired()Description copied from interface:TicketDAODeletes all expired tickets- Specified by:
- deleteExpiredin interface- TicketDAO
 
- 
getDocumentDAO
- 
setDocumentDAO
 
-