Class ReservationJpaManager
java.lang.Object
org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository<E>
org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository<Reservation>
org.silverpeas.components.resourcesmanager.repository.ReservationJpaManager
- All Implemented Interfaces:
ReservationRepository,org.silverpeas.core.persistence.datasource.repository.EntityRepository<Reservation>,org.silverpeas.core.persistence.datasource.repository.WithSaveAndFlush<Reservation>
@Repository
public class ReservationJpaManager
extends org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository<Reservation>
implements ReservationRepository
- Author:
- ebonnet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAllReservations(String instanceId) findAllReservationsForCategoryInRange(String instanceId, Long categoryId, String startPeriod, String endPeriod) findAllReservationsForResourceInRange(String instanceId, Long resourceId, String startPeriod, String endPeriod) findAllReservationsForUser(String instanceId, Integer userId) findAllReservationsForUserAndCategoryInRange(String instanceId, Integer userId, Long categoryId, String startPeriod, String endPeriod) findAllReservationsForUserAndResourceInRange(String instanceId, Integer userId, Long resourceId, String startPeriod, String endPeriod) findAllReservationsForUserInRange(String instanceId, Integer userId, String startPeriod, String endPeriod) findAllReservationsForValidation(String instanceId, Long managerId, String startPeriod, String endPeriod) findAllReservationsInRange(String instanceId, String startPeriod, String endPeriod) findAllReservationsNotRefusedForResourceInRange(Long resourceId, String startPeriod, String endPeriod) Methods inherited from class org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository
deleteByComponentInstanceId, saveAndFlushMethods 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, updateFromNamedQueryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.silverpeas.core.persistence.datasource.repository.EntityRepository
contains, delete, delete, deleteByComponentInstanceId, deleteById, deleteById, findByCriteria, flush, getAll, getById, getById, getById, save, save, saveMethods inherited from interface org.silverpeas.core.persistence.datasource.repository.WithSaveAndFlush
saveAndFlush
-
Constructor Details
-
ReservationJpaManager
public ReservationJpaManager()
-
-
Method Details
-
findAllReservationsInRange
public List<Reservation> findAllReservationsInRange(String instanceId, String startPeriod, String endPeriod) - Specified by:
findAllReservationsInRangein interfaceReservationRepository
-
findAllReservationsForUserInRange
public List<Reservation> findAllReservationsForUserInRange(String instanceId, Integer userId, String startPeriod, String endPeriod) - Specified by:
findAllReservationsForUserInRangein interfaceReservationRepository
-
findAllReservationsForUser
- Specified by:
findAllReservationsForUserin interfaceReservationRepository
-
findAllReservationsForValidation
public List<Reservation> findAllReservationsForValidation(String instanceId, Long managerId, String startPeriod, String endPeriod) - Specified by:
findAllReservationsForValidationin interfaceReservationRepository
-
findAllReservationsNotRefusedForResourceInRange
public List<Reservation> findAllReservationsNotRefusedForResourceInRange(Long resourceId, String startPeriod, String endPeriod) - Specified by:
findAllReservationsNotRefusedForResourceInRangein interfaceReservationRepository
-
findAllReservationsForCategoryInRange
public List<Reservation> findAllReservationsForCategoryInRange(String instanceId, Long categoryId, String startPeriod, String endPeriod) - Specified by:
findAllReservationsForCategoryInRangein interfaceReservationRepository
-
findAllReservationsForUserAndCategoryInRange
public List<Reservation> findAllReservationsForUserAndCategoryInRange(String instanceId, Integer userId, Long categoryId, String startPeriod, String endPeriod) - Specified by:
findAllReservationsForUserAndCategoryInRangein interfaceReservationRepository
-
findAllReservationsForResourceInRange
public List<Reservation> findAllReservationsForResourceInRange(String instanceId, Long resourceId, String startPeriod, String endPeriod) - Specified by:
findAllReservationsForResourceInRangein interfaceReservationRepository
-
findAllReservationsForUserAndResourceInRange
public List<Reservation> findAllReservationsForUserAndResourceInRange(String instanceId, Integer userId, Long resourceId, String startPeriod, String endPeriod) - Specified by:
findAllReservationsForUserAndResourceInRangein interfaceReservationRepository
-
findAllReservations
- Specified by:
findAllReservationsin interfaceReservationRepository
-