public class HibernateDownloadTicketDAO extends HibernatePersistentObjectDAO<DownloadTicket> implements DownloadTicketDAO
DownloadTicketDAOentityClass, log, sessionFactory| Constructor and Description |
|---|
HibernateDownloadTicketDAO() |
| Modifier and Type | Method and 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 |
deleteOlder()
Deletes all tickets older than the specified time to live.
|
boolean |
deleteOlder(Date date)
Deletes all tickets older than the specified date.
|
DownloadTicket |
findByTicketId(String ticketid)
This finds a ticket by its identifier.
|
void |
setContextProperties(ContextProperties contextProperties) |
boolean |
store(DownloadTicket entity)
This method persists the entity object.
|
bulkUpdate, delete, 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, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbulkUpdate, delete, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSetpublic boolean store(DownloadTicket entity)
PersistentObjectDAOstore in interface PersistentObjectDAO<DownloadTicket>store in class HibernatePersistentObjectDAO<DownloadTicket>entity - entity to be stored.public boolean deleteByTicketId(String ticketid)
DownloadTicketDAOdeleteByTicketId in interface DownloadTicketDAODownloadTicketDAO.deleteByTicketId(java.lang.String)public DownloadTicket findByTicketId(String ticketid)
DownloadTicketDAOfindByTicketId in interface DownloadTicketDAOticketid - The ticket idpublic boolean deleteByDocId(long docId)
DownloadTicketDAOdeleteByDocId in interface DownloadTicketDAOdocId - ID of the documentpublic void deleteOlder()
DownloadTicketDAO
Uses the global configuration parameter ticket.ttl that
specifies a number of hours.
deleteOlder in interface DownloadTicketDAOpublic boolean deleteOlder(Date date)
DownloadTicketDAOdeleteOlder in interface DownloadTicketDAOpublic void setContextProperties(ContextProperties contextProperties)
Copyright © 2008-2014 Logical Objects. All Rights Reserved.