public class HibernateDownloadTicketDAO extends HibernatePersistentObjectDAO<DownloadTicket> implements DownloadTicketDAO
DownloadTicketDAO
entityClass, 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, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bulkUpdate, delete, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet
public boolean store(DownloadTicket entity)
PersistentObjectDAO
store
in interface PersistentObjectDAO<DownloadTicket>
store
in class HibernatePersistentObjectDAO<DownloadTicket>
entity
- entity to be stored.public boolean deleteByTicketId(String ticketid)
DownloadTicketDAO
deleteByTicketId
in interface DownloadTicketDAO
DownloadTicketDAO.deleteByTicketId(java.lang.String)
public DownloadTicket findByTicketId(String ticketid)
DownloadTicketDAO
findByTicketId
in interface DownloadTicketDAO
ticketid
- The ticket idpublic boolean deleteByDocId(long docId)
DownloadTicketDAO
deleteByDocId
in interface DownloadTicketDAO
docId
- ID of the documentpublic void deleteOlder()
DownloadTicketDAO
Uses the global configuration parameter ticket.ttl
that
specifies a number of hours.
deleteOlder
in interface DownloadTicketDAO
public boolean deleteOlder(Date date)
DownloadTicketDAO
deleteOlder
in interface DownloadTicketDAO
public void setContextProperties(ContextProperties contextProperties)
Copyright © 2008-2014 Logical Objects. All Rights Reserved.