Class TicketJpaRepository
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository<E>
-
- org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository<Ticket>
-
- org.silverpeas.core.sharing.repository.TicketJpaRepository
-
- All Implemented Interfaces:
EntityRepository<Ticket>
,WithSaveAndFlush<Ticket>
,TicketRepository
@Repository public class TicketJpaRepository extends BasicJpaEntityRepository<Ticket> implements TicketRepository
-
-
Constructor Summary
Constructors Constructor Description TicketJpaRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
countAllReservationsForUser(String userId)
void
deleteAllTicketsForComponentInstance(String instanceId)
SilverpeasList<Ticket>
findAllReservationsForUser(String userId, PaginationCriterion paginationCriterion, Ticket.QUERY_ORDER_BY orderBy)
List<Ticket>
findAllTicketForSharedObjectId(Long sharedObjectId, String ticketType)
-
Methods inherited from class org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository
deleteByComponentInstanceId, saveAndFlush
-
Methods inherited from class org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository
contains, countByCriteria, countFromJpqlString, delete, deleteById, deleteFromJpqlQuery, deleteFromNamedQuery, findByCriteria, findByNamedQuery, findFirstByNamedQuery, flush, getAll, getById, getById, getEntityClass, getEntityManager, getFromJpqlString, getFromJpqlString, getFromNamedQuery, getFromNamedQuery, getIdentifierConverter, getMaximumItemsInClause, listFromJpqlString, listFromJpqlString, listFromJpqlString, listFromJpqlString, listFromNamedQuery, listFromNamedQuery, newNamedParameters, noParameter, save, setMaximumItemsInClause, split, streamByNamedQuery, streamByNamedQuery, streamFromJpqlString, streamFromJpqlString, updateFromJpqlQuery, updateFromNamedQuery
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.persistence.datasource.repository.EntityRepository
contains, delete, delete, deleteByComponentInstanceId, deleteById, deleteById, findByCriteria, flush, getAll, getById, getById, getById, save, save, save
-
Methods inherited from interface org.silverpeas.core.persistence.datasource.repository.WithSaveAndFlush
saveAndFlush
-
-
-
-
Method Detail
-
findAllTicketForSharedObjectId
public List<Ticket> findAllTicketForSharedObjectId(Long sharedObjectId, String ticketType)
- Specified by:
findAllTicketForSharedObjectId
in interfaceTicketRepository
-
countAllReservationsForUser
public long countAllReservationsForUser(String userId)
- Specified by:
countAllReservationsForUser
in interfaceTicketRepository
-
findAllReservationsForUser
public SilverpeasList<Ticket> findAllReservationsForUser(String userId, PaginationCriterion paginationCriterion, Ticket.QUERY_ORDER_BY orderBy)
- Specified by:
findAllReservationsForUser
in interfaceTicketRepository
-
deleteAllTicketsForComponentInstance
public void deleteAllTicketsForComponentInstance(String instanceId)
- Specified by:
deleteAllTicketsForComponentInstance
in interfaceTicketRepository
-
-