Class CalendarBookingUtil

java.lang.Object
com.liferay.calendar.service.persistence.CalendarBookingUtil

public class CalendarBookingUtil extends Object
The persistence utility for the calendar booking service. This utility wraps com.liferay.calendar.service.persistence.impl.CalendarBookingPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Details

    • CalendarBookingUtil

      public CalendarBookingUtil()
  • Method Details

    • cacheResult

      public static void cacheResult(List<CalendarBooking> calendarBookings)
      See Also:
      • BasePersistence.cacheResult(List)
    • cacheResult

      public static void cacheResult(CalendarBooking calendarBooking)
      See Also:
      • BasePersistence.cacheResult(com.liferay.portal.kernel.model.BaseModel)
    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(CalendarBooking calendarBooking)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,CalendarBooking> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<CalendarBooking> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<CalendarBooking> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<CalendarBooking> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static CalendarBooking update(CalendarBooking calendarBooking)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static CalendarBooking update(CalendarBooking calendarBooking, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<CalendarBooking> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendar bookings where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching calendar bookings
    • findByUuid_First

      public static CalendarBooking findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator) throws NoSuchBookingException
      Returns the first calendar booking in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking
    • fetchByUuid_First

      public static CalendarBooking fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns the first calendar booking in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking, or null if a matching calendar booking could not be found
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the calendar bookings where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of calendar bookings where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching calendar bookings
    • findByUUID_G

      public static CalendarBooking findByUUID_G(String uuid, long groupId) throws NoSuchBookingException
      Returns the calendar booking where uuid = ? and groupId = ? or throws a NoSuchBookingException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching calendar booking
    • fetchByUUID_G

      public static CalendarBooking fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the calendar booking where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching calendar booking, or null if a matching calendar booking could not be found
    • removeByUUID_G

      public static CalendarBooking removeByUUID_G(String uuid, long groupId) throws NoSuchBookingException
      Removes the calendar booking where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the calendar booking that was removed
      Throws:
      NoSuchBookingException
    • countByUUID_G

      public static int countByUUID_G(String uuid, long groupId)
      Returns the number of calendar bookings where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching calendar bookings
    • findByUuid_C

      public static List<CalendarBooking> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendar bookings where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching calendar bookings
    • findByUuid_C_First

      public static CalendarBooking findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator) throws NoSuchBookingException
      Returns the first calendar booking in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking
    • fetchByUuid_C_First

      public static CalendarBooking fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns the first calendar booking in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking, or null if a matching calendar booking could not be found
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the calendar bookings where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of calendar bookings where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching calendar bookings
    • findByCalendarId

      public static List<CalendarBooking> findByCalendarId(long calendarId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendar bookings where calendarId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      calendarId - the calendar ID
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching calendar bookings
    • findByCalendarId_First

      public static CalendarBooking findByCalendarId_First(long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator) throws NoSuchBookingException
      Returns the first calendar booking in the ordered set where calendarId = ?.
      Parameters:
      calendarId - the calendar ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking
    • fetchByCalendarId_First

      public static CalendarBooking fetchByCalendarId_First(long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns the first calendar booking in the ordered set where calendarId = ?.
      Parameters:
      calendarId - the calendar ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking, or null if a matching calendar booking could not be found
    • removeByCalendarId

      public static void removeByCalendarId(long calendarId)
      Removes all the calendar bookings where calendarId = ? from the database.
      Parameters:
      calendarId - the calendar ID
    • countByCalendarId

      public static int countByCalendarId(long calendarId)
      Returns the number of calendar bookings where calendarId = ?.
      Parameters:
      calendarId - the calendar ID
      Returns:
      the number of matching calendar bookings
    • findByCalendarResourceId

      public static List<CalendarBooking> findByCalendarResourceId(long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendar bookings where calendarResourceId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      calendarResourceId - the calendar resource ID
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching calendar bookings
    • findByCalendarResourceId_First

      public static CalendarBooking findByCalendarResourceId_First(long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator) throws NoSuchBookingException
      Returns the first calendar booking in the ordered set where calendarResourceId = ?.
      Parameters:
      calendarResourceId - the calendar resource ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking
    • fetchByCalendarResourceId_First

      public static CalendarBooking fetchByCalendarResourceId_First(long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns the first calendar booking in the ordered set where calendarResourceId = ?.
      Parameters:
      calendarResourceId - the calendar resource ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking, or null if a matching calendar booking could not be found
    • removeByCalendarResourceId

      public static void removeByCalendarResourceId(long calendarResourceId)
      Removes all the calendar bookings where calendarResourceId = ? from the database.
      Parameters:
      calendarResourceId - the calendar resource ID
    • countByCalendarResourceId

      public static int countByCalendarResourceId(long calendarResourceId)
      Returns the number of calendar bookings where calendarResourceId = ?.
      Parameters:
      calendarResourceId - the calendar resource ID
      Returns:
      the number of matching calendar bookings
    • findByParentCalendarBookingId

      public static List<CalendarBooking> findByParentCalendarBookingId(long parentCalendarBookingId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendar bookings where parentCalendarBookingId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching calendar bookings
    • findByParentCalendarBookingId_First

      public static CalendarBooking findByParentCalendarBookingId_First(long parentCalendarBookingId, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator) throws NoSuchBookingException
      Returns the first calendar booking in the ordered set where parentCalendarBookingId = ?.
      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking
    • fetchByParentCalendarBookingId_First

      public static CalendarBooking fetchByParentCalendarBookingId_First(long parentCalendarBookingId, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns the first calendar booking in the ordered set where parentCalendarBookingId = ?.
      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking, or null if a matching calendar booking could not be found
    • removeByParentCalendarBookingId

      public static void removeByParentCalendarBookingId(long parentCalendarBookingId)
      Removes all the calendar bookings where parentCalendarBookingId = ? from the database.
      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
    • countByParentCalendarBookingId

      public static int countByParentCalendarBookingId(long parentCalendarBookingId)
      Returns the number of calendar bookings where parentCalendarBookingId = ?.
      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
      Returns:
      the number of matching calendar bookings
    • findByRecurringCalendarBookingId

      public static List<CalendarBooking> findByRecurringCalendarBookingId(long recurringCalendarBookingId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendar bookings where recurringCalendarBookingId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      recurringCalendarBookingId - the recurring calendar booking ID
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching calendar bookings
    • findByRecurringCalendarBookingId_First

      public static CalendarBooking findByRecurringCalendarBookingId_First(long recurringCalendarBookingId, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator) throws NoSuchBookingException
      Returns the first calendar booking in the ordered set where recurringCalendarBookingId = ?.
      Parameters:
      recurringCalendarBookingId - the recurring calendar booking ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking
    • fetchByRecurringCalendarBookingId_First

      public static CalendarBooking fetchByRecurringCalendarBookingId_First(long recurringCalendarBookingId, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns the first calendar booking in the ordered set where recurringCalendarBookingId = ?.
      Parameters:
      recurringCalendarBookingId - the recurring calendar booking ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking, or null if a matching calendar booking could not be found
    • removeByRecurringCalendarBookingId

      public static void removeByRecurringCalendarBookingId(long recurringCalendarBookingId)
      Removes all the calendar bookings where recurringCalendarBookingId = ? from the database.
      Parameters:
      recurringCalendarBookingId - the recurring calendar booking ID
    • countByRecurringCalendarBookingId

      public static int countByRecurringCalendarBookingId(long recurringCalendarBookingId)
      Returns the number of calendar bookings where recurringCalendarBookingId = ?.
      Parameters:
      recurringCalendarBookingId - the recurring calendar booking ID
      Returns:
      the number of matching calendar bookings
    • findByC_P

      public static CalendarBooking findByC_P(long calendarId, long parentCalendarBookingId) throws NoSuchBookingException
      Returns the calendar booking where calendarId = ? and parentCalendarBookingId = ? or throws a NoSuchBookingException if it could not be found.
      Parameters:
      calendarId - the calendar ID
      parentCalendarBookingId - the parent calendar booking ID
      Returns:
      the matching calendar booking
    • fetchByC_P

      public static CalendarBooking fetchByC_P(long calendarId, long parentCalendarBookingId, boolean useFinderCache)
      Returns the calendar booking where calendarId = ? and parentCalendarBookingId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      calendarId - the calendar ID
      parentCalendarBookingId - the parent calendar booking ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching calendar booking, or null if a matching calendar booking could not be found
    • removeByC_P

      public static CalendarBooking removeByC_P(long calendarId, long parentCalendarBookingId) throws NoSuchBookingException
      Removes the calendar booking where calendarId = ? and parentCalendarBookingId = ? from the database.
      Parameters:
      calendarId - the calendar ID
      parentCalendarBookingId - the parent calendar booking ID
      Returns:
      the calendar booking that was removed
      Throws:
      NoSuchBookingException
    • countByC_P

      public static int countByC_P(long calendarId, long parentCalendarBookingId)
      Returns the number of calendar bookings where calendarId = ? and parentCalendarBookingId = ?.
      Parameters:
      calendarId - the calendar ID
      parentCalendarBookingId - the parent calendar booking ID
      Returns:
      the number of matching calendar bookings
    • findByC_V

      public static CalendarBooking findByC_V(long calendarId, String vEventUid) throws NoSuchBookingException
      Returns the calendar booking where calendarId = ? and vEventUid = ? or throws a NoSuchBookingException if it could not be found.
      Parameters:
      calendarId - the calendar ID
      vEventUid - the v event uid
      Returns:
      the matching calendar booking
    • fetchByC_V

      public static CalendarBooking fetchByC_V(long calendarId, String vEventUid, boolean useFinderCache)
      Returns the calendar booking where calendarId = ? and vEventUid = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      calendarId - the calendar ID
      vEventUid - the v event uid
      useFinderCache - whether to use the finder cache
      Returns:
      the matching calendar booking, or null if a matching calendar booking could not be found
    • removeByC_V

      public static CalendarBooking removeByC_V(long calendarId, String vEventUid) throws NoSuchBookingException
      Removes the calendar booking where calendarId = ? and vEventUid = ? from the database.
      Parameters:
      calendarId - the calendar ID
      vEventUid - the v event uid
      Returns:
      the calendar booking that was removed
      Throws:
      NoSuchBookingException
    • countByC_V

      public static int countByC_V(long calendarId, String vEventUid)
      Returns the number of calendar bookings where calendarId = ? and vEventUid = ?.
      Parameters:
      calendarId - the calendar ID
      vEventUid - the v event uid
      Returns:
      the number of matching calendar bookings
    • findByC_S

      public static List<CalendarBooking> findByC_S(long calendarId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendar bookings where calendarId = ? and status = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      calendarId - the calendar ID
      status - the status
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching calendar bookings
    • findByC_S_First

      public static CalendarBooking findByC_S_First(long calendarId, int status, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator) throws NoSuchBookingException
      Returns the first calendar booking in the ordered set where calendarId = ? and status = ?.
      Parameters:
      calendarId - the calendar ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking
    • fetchByC_S_First

      public static CalendarBooking fetchByC_S_First(long calendarId, int status, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns the first calendar booking in the ordered set where calendarId = ? and status = ?.
      Parameters:
      calendarId - the calendar ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking, or null if a matching calendar booking could not be found
    • findByC_S

      public static List<CalendarBooking> findByC_S(long calendarId, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendar bookings where calendarId = ? and status = ?, optionally using the finder cache.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      calendarId - the calendar ID
      statuses - the statuses
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching calendar bookings
    • removeByC_S

      public static void removeByC_S(long calendarId, int status)
      Removes all the calendar bookings where calendarId = ? and status = ? from the database.
      Parameters:
      calendarId - the calendar ID
      status - the status
    • countByC_S

      public static int countByC_S(long calendarId, int status)
      Returns the number of calendar bookings where calendarId = ? and status = ?.
      Parameters:
      calendarId - the calendar ID
      status - the status
      Returns:
      the number of matching calendar bookings
    • countByC_S

      public static int countByC_S(long calendarId, int[] statuses)
      Returns the number of calendar bookings where calendarId = ? and status = any ?.
      Parameters:
      calendarId - the calendar ID
      statuses - the statuses
      Returns:
      the number of matching calendar bookings
    • findByP_S

      public static List<CalendarBooking> findByP_S(long parentCalendarBookingId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendar bookings where parentCalendarBookingId = ? and status = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
      status - the status
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching calendar bookings
    • findByP_S_First

      public static CalendarBooking findByP_S_First(long parentCalendarBookingId, int status, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator) throws NoSuchBookingException
      Returns the first calendar booking in the ordered set where parentCalendarBookingId = ? and status = ?.
      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking
    • fetchByP_S_First

      public static CalendarBooking fetchByP_S_First(long parentCalendarBookingId, int status, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns the first calendar booking in the ordered set where parentCalendarBookingId = ? and status = ?.
      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar booking, or null if a matching calendar booking could not be found
    • removeByP_S

      public static void removeByP_S(long parentCalendarBookingId, int status)
      Removes all the calendar bookings where parentCalendarBookingId = ? and status = ? from the database.
      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
      status - the status
    • countByP_S

      public static int countByP_S(long parentCalendarBookingId, int status)
      Returns the number of calendar bookings where parentCalendarBookingId = ? and status = ?.
      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
      status - the status
      Returns:
      the number of matching calendar bookings
    • findByERC_G

      public static CalendarBooking findByERC_G(String externalReferenceCode, long groupId) throws NoSuchBookingException
      Returns the calendar booking where externalReferenceCode = ? and groupId = ? or throws a NoSuchBookingException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the matching calendar booking
    • fetchByERC_G

      public static CalendarBooking fetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache)
      Returns the calendar booking where externalReferenceCode = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching calendar booking, or null if a matching calendar booking could not be found
    • removeByERC_G

      public static CalendarBooking removeByERC_G(String externalReferenceCode, long groupId) throws NoSuchBookingException
      Removes the calendar booking where externalReferenceCode = ? and groupId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the calendar booking that was removed
      Throws:
      NoSuchBookingException
    • countByERC_G

      public static int countByERC_G(String externalReferenceCode, long groupId)
      Returns the number of calendar bookings where externalReferenceCode = ? and groupId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the number of matching calendar bookings
    • create

      public static CalendarBooking create(long calendarBookingId)
      Creates a new calendar booking with the primary key. Does not add the calendar booking to the database.
      Parameters:
      calendarBookingId - the primary key for the new calendar booking
      Returns:
      the new calendar booking
    • remove

      public static CalendarBooking remove(long calendarBookingId) throws NoSuchBookingException
      Removes the calendar booking with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      calendarBookingId - the primary key of the calendar booking
      Returns:
      the calendar booking that was removed
    • updateImpl

      public static CalendarBooking updateImpl(CalendarBooking calendarBooking)
    • findByPrimaryKey

      public static CalendarBooking findByPrimaryKey(long calendarBookingId) throws NoSuchBookingException
      Returns the calendar booking with the primary key or throws a NoSuchBookingException if it could not be found.
      Parameters:
      calendarBookingId - the primary key of the calendar booking
      Returns:
      the calendar booking
    • fetchByPrimaryKey

      public static CalendarBooking fetchByPrimaryKey(long calendarBookingId)
      Returns the calendar booking with the primary key or returns null if it could not be found.
      Parameters:
      calendarBookingId - the primary key of the calendar booking
      Returns:
      the calendar booking, or null if a calendar booking with the primary key could not be found
    • fetchByUUID_G

      public static CalendarBooking fetchByUUID_G(String uuid, long groupId)
      Returns the calendar booking where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching calendar booking, or null if a matching calendar booking could not be found
    • fetchByC_P

      public static CalendarBooking fetchByC_P(long calendarId, long parentCalendarBookingId)
      Returns the calendar booking where calendarId = ? and parentCalendarBookingId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      calendarId - the calendar ID
      parentCalendarBookingId - the parent calendar booking ID
      Returns:
      the matching calendar booking, or null if a matching calendar booking could not be found
    • fetchByC_V

      public static CalendarBooking fetchByC_V(long calendarId, String vEventUid)
      Returns the calendar booking where calendarId = ? and vEventUid = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      calendarId - the calendar ID
      vEventUid - the v event uid
      Returns:
      the matching calendar booking, or null if a matching calendar booking could not be found
    • fetchByERC_G

      public static CalendarBooking fetchByERC_G(String externalReferenceCode, long groupId)
      Returns the calendar booking where externalReferenceCode = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the matching calendar booking, or null if a matching calendar booking could not be found
    • findByUuid

      public static List<CalendarBooking> findByUuid(String uuid)
      Returns all the calendar bookings where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching calendar bookings
    • findByUuid

      public static List<CalendarBooking> findByUuid(String uuid, int start, int end)
      Returns a range of all the calendar bookings where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      Returns:
      the range of matching calendar bookings
    • findByUuid

      public static List<CalendarBooking> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns an ordered range of all the calendar bookings where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching calendar bookings
    • findByUuid_C

      public static List<CalendarBooking> findByUuid_C(String uuid, long companyId)
      Returns all the calendar bookings where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching calendar bookings
    • findByUuid_C

      public static List<CalendarBooking> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the calendar bookings where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      Returns:
      the range of matching calendar bookings
    • findByUuid_C

      public static List<CalendarBooking> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns an ordered range of all the calendar bookings where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching calendar bookings
    • findByCalendarId

      public static List<CalendarBooking> findByCalendarId(long calendarId)
      Returns all the calendar bookings where calendarId = ?.
      Parameters:
      calendarId - the calendar ID
      Returns:
      the matching calendar bookings
    • findByCalendarId

      public static List<CalendarBooking> findByCalendarId(long calendarId, int start, int end)
      Returns a range of all the calendar bookings where calendarId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      calendarId - the calendar ID
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      Returns:
      the range of matching calendar bookings
    • findByCalendarId

      public static List<CalendarBooking> findByCalendarId(long calendarId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns an ordered range of all the calendar bookings where calendarId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      calendarId - the calendar ID
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching calendar bookings
    • findByCalendarResourceId

      public static List<CalendarBooking> findByCalendarResourceId(long calendarResourceId)
      Returns all the calendar bookings where calendarResourceId = ?.
      Parameters:
      calendarResourceId - the calendar resource ID
      Returns:
      the matching calendar bookings
    • findByCalendarResourceId

      public static List<CalendarBooking> findByCalendarResourceId(long calendarResourceId, int start, int end)
      Returns a range of all the calendar bookings where calendarResourceId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      calendarResourceId - the calendar resource ID
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      Returns:
      the range of matching calendar bookings
    • findByCalendarResourceId

      public static List<CalendarBooking> findByCalendarResourceId(long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns an ordered range of all the calendar bookings where calendarResourceId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      calendarResourceId - the calendar resource ID
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching calendar bookings
    • findByParentCalendarBookingId

      public static List<CalendarBooking> findByParentCalendarBookingId(long parentCalendarBookingId)
      Returns all the calendar bookings where parentCalendarBookingId = ?.
      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
      Returns:
      the matching calendar bookings
    • findByParentCalendarBookingId

      public static List<CalendarBooking> findByParentCalendarBookingId(long parentCalendarBookingId, int start, int end)
      Returns a range of all the calendar bookings where parentCalendarBookingId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      Returns:
      the range of matching calendar bookings
    • findByParentCalendarBookingId

      public static List<CalendarBooking> findByParentCalendarBookingId(long parentCalendarBookingId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns an ordered range of all the calendar bookings where parentCalendarBookingId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching calendar bookings
    • findByRecurringCalendarBookingId

      public static List<CalendarBooking> findByRecurringCalendarBookingId(long recurringCalendarBookingId)
      Returns all the calendar bookings where recurringCalendarBookingId = ?.
      Parameters:
      recurringCalendarBookingId - the recurring calendar booking ID
      Returns:
      the matching calendar bookings
    • findByRecurringCalendarBookingId

      public static List<CalendarBooking> findByRecurringCalendarBookingId(long recurringCalendarBookingId, int start, int end)
      Returns a range of all the calendar bookings where recurringCalendarBookingId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      recurringCalendarBookingId - the recurring calendar booking ID
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      Returns:
      the range of matching calendar bookings
    • findByRecurringCalendarBookingId

      public static List<CalendarBooking> findByRecurringCalendarBookingId(long recurringCalendarBookingId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns an ordered range of all the calendar bookings where recurringCalendarBookingId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      recurringCalendarBookingId - the recurring calendar booking ID
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching calendar bookings
    • findByC_S

      public static List<CalendarBooking> findByC_S(long calendarId, int status)
      Returns all the calendar bookings where calendarId = ? and status = ?.
      Parameters:
      calendarId - the calendar ID
      status - the status
      Returns:
      the matching calendar bookings
    • findByC_S

      public static List<CalendarBooking> findByC_S(long calendarId, int status, int start, int end)
      Returns a range of all the calendar bookings where calendarId = ? and status = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      calendarId - the calendar ID
      status - the status
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      Returns:
      the range of matching calendar bookings
    • findByC_S

      public static List<CalendarBooking> findByC_S(long calendarId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns an ordered range of all the calendar bookings where calendarId = ? and status = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      calendarId - the calendar ID
      status - the status
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching calendar bookings
    • findByC_S

      public static List<CalendarBooking> findByC_S(long calendarId, int[] statuses)
      Returns all the calendar bookings where calendarId = ? and status = any ?.
      Parameters:
      calendarId - the calendar ID
      statuses - the statuses
      Returns:
      the matching calendar bookings
    • findByC_S

      public static List<CalendarBooking> findByC_S(long calendarId, int[] statuses, int start, int end)
      Returns a range of all the calendar bookings where calendarId = ? and status = any ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      calendarId - the calendar ID
      statuses - the statuses
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      Returns:
      the range of matching calendar bookings
    • findByC_S

      public static List<CalendarBooking> findByC_S(long calendarId, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns an ordered range of all the calendar bookings where calendarId = ? and status = any ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      calendarId - the calendar ID
      statuses - the statuses
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching calendar bookings
    • findByP_S

      public static List<CalendarBooking> findByP_S(long parentCalendarBookingId, int status)
      Returns all the calendar bookings where parentCalendarBookingId = ? and status = ?.
      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
      status - the status
      Returns:
      the matching calendar bookings
    • findByP_S

      public static List<CalendarBooking> findByP_S(long parentCalendarBookingId, int status, int start, int end)
      Returns a range of all the calendar bookings where parentCalendarBookingId = ? and status = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
      status - the status
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      Returns:
      the range of matching calendar bookings
    • findByP_S

      public static List<CalendarBooking> findByP_S(long parentCalendarBookingId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarBooking> orderByComparator)
      Returns an ordered range of all the calendar bookings where parentCalendarBookingId = ? and status = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.calendar.model.impl.CalendarBookingModelImpl.

      Parameters:
      parentCalendarBookingId - the parent calendar booking ID
      status - the status
      start - the lower bound of the range of calendar bookings
      end - the upper bound of the range of calendar bookings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching calendar bookings
    • getPersistence

      public static CalendarBookingPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CalendarBookingPersistence persistence)