Class CalendarUtil

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

public class CalendarUtil extends Object
The persistence utility for the calendar service. This utility wraps com.liferay.calendar.service.persistence.impl.CalendarPersistenceImpl 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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Caches the calendar in the entity cache if it is enabled.
    static void
    Caches the calendars in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(Calendar calendar)
     
    static int
    Returns the number of calendars.
    static int
    countByG_C(long groupId, long calendarResourceId)
    Returns the number of calendars where groupId = ? and calendarResourceId = ?.
    static int
    countByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar)
    Returns the number of calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
    static int
    Returns the number of calendars where uuid = ?.
    static int
    countByUuid_C(String uuid, long companyId)
    Returns the number of calendars where uuid = ? and companyId = ?.
    static int
    countByUUID_G(String uuid, long groupId)
    Returns the number of calendars where uuid = ? and groupId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static Calendar
    create(long calendarId)
    Creates a new calendar with the primary key.
    static Calendar
    fetchByG_C_D_First(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
    static Calendar
    fetchByG_C_D_Last(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
    static Calendar
    fetchByG_C_First(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ?.
    static Calendar
    fetchByG_C_Last(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ?.
    static Calendar
    fetchByPrimaryKey(long calendarId)
    Returns the calendar with the primary key or returns null if it could not be found.
     
    static Calendar
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the first calendar in the ordered set where uuid = ? and companyId = ?.
    static Calendar
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the last calendar in the ordered set where uuid = ? and companyId = ?.
    static Calendar
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the first calendar in the ordered set where uuid = ?.
    static Calendar
    fetchByUUID_G(String uuid, long groupId)
    Returns the calendar where uuid = ? and groupId = ? or returns null if it could not be found.
    static Calendar
    fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
    Returns the calendar where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    static Calendar
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the last calendar in the ordered set where uuid = ?.
    static int
    filterCountByG_C(long groupId, long calendarResourceId)
    Returns the number of calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.
    static int
    filterCountByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar)
    Returns the number of calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
    static List<Calendar>
    filterFindByG_C(long groupId, long calendarResourceId)
    Returns all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.
    static List<Calendar>
    filterFindByG_C(long groupId, long calendarResourceId, int start, int end)
    Returns a range of all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.
    static List<Calendar>
    filterFindByG_C(long groupId, long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns an ordered range of all the calendars that the user has permissions to view where groupId = ? and calendarResourceId = ?.
    static List<Calendar>
    filterFindByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar)
    Returns all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
    static List<Calendar>
    filterFindByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end)
    Returns a range of all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
    static List<Calendar>
    filterFindByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns an ordered range of all the calendars that the user has permissions to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
    static Calendar[]
    filterFindByG_C_D_PrevAndNext(long calendarId, long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the calendars before and after the current calendar in the ordered set of calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
    static Calendar[]
    filterFindByG_C_PrevAndNext(long calendarId, long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the calendars before and after the current calendar in the ordered set of calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.
    static List<Calendar>
    Returns all the calendars.
    static List<Calendar>
    findAll(int start, int end)
    Returns a range of all the calendars.
    static List<Calendar>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns an ordered range of all the calendars.
    static List<Calendar>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the calendars.
    static List<Calendar>
    findByG_C(long groupId, long calendarResourceId)
    Returns all the calendars where groupId = ? and calendarResourceId = ?.
    static List<Calendar>
    findByG_C(long groupId, long calendarResourceId, int start, int end)
    Returns a range of all the calendars where groupId = ? and calendarResourceId = ?.
    static List<Calendar>
    findByG_C(long groupId, long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ?.
    static List<Calendar>
    findByG_C(long groupId, long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ?.
    static List<Calendar>
    findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar)
    Returns all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
    static List<Calendar>
    findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end)
    Returns a range of all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
    static List<Calendar>
    findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
    static List<Calendar>
    findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
    static Calendar
    findByG_C_D_First(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
    static Calendar
    findByG_C_D_Last(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
    static Calendar[]
    findByG_C_D_PrevAndNext(long calendarId, long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the calendars before and after the current calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
    static Calendar
    findByG_C_First(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ?.
    static Calendar
    findByG_C_Last(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ?.
    static Calendar[]
    findByG_C_PrevAndNext(long calendarId, long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the calendars before and after the current calendar in the ordered set where groupId = ? and calendarResourceId = ?.
    static Calendar
    findByPrimaryKey(long calendarId)
    Returns the calendar with the primary key or throws a NoSuchCalendarException if it could not be found.
    static List<Calendar>
    Returns all the calendars where uuid = ?.
    static List<Calendar>
    findByUuid(String uuid, int start, int end)
    Returns a range of all the calendars where uuid = ?.
    static List<Calendar>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns an ordered range of all the calendars where uuid = ?.
    static List<Calendar>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the calendars where uuid = ?.
    static List<Calendar>
    findByUuid_C(String uuid, long companyId)
    Returns all the calendars where uuid = ? and companyId = ?.
    static List<Calendar>
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the calendars where uuid = ? and companyId = ?.
    static List<Calendar>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns an ordered range of all the calendars where uuid = ? and companyId = ?.
    static List<Calendar>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the calendars where uuid = ? and companyId = ?.
    static Calendar
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the first calendar in the ordered set where uuid = ? and companyId = ?.
    static Calendar
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the last calendar in the ordered set where uuid = ? and companyId = ?.
    static Calendar[]
    findByUuid_C_PrevAndNext(long calendarId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the calendars before and after the current calendar in the ordered set where uuid = ? and companyId = ?.
    static Calendar
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the first calendar in the ordered set where uuid = ?.
    static Calendar
    findByUUID_G(String uuid, long groupId)
    Returns the calendar where uuid = ? and groupId = ? or throws a NoSuchCalendarException if it could not be found.
    static Calendar
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the last calendar in the ordered set where uuid = ?.
    static Calendar[]
    findByUuid_PrevAndNext(long calendarId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
    Returns the calendars before and after the current calendar in the ordered set where uuid = ?.
    static List<Calendar>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static List<Calendar>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    static List<Calendar>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
     
     
    static Calendar
    remove(long calendarId)
    Removes the calendar with the primary key from the database.
    static void
    Removes all the calendars from the database.
    static void
    removeByG_C(long groupId, long calendarResourceId)
    Removes all the calendars where groupId = ? and calendarResourceId = ? from the database.
    static void
    removeByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar)
    Removes all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ? from the database.
    static void
    Removes all the calendars where uuid = ? from the database.
    static void
    removeByUuid_C(String uuid, long companyId)
    Removes all the calendars where uuid = ? and companyId = ? from the database.
    static Calendar
    removeByUUID_G(String uuid, long groupId)
    Removes the calendar where uuid = ? and groupId = ? from the database.
    static void
     
    static Calendar
    update(Calendar calendar)
     
    static Calendar
    update(Calendar calendar, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static Calendar
    updateImpl(Calendar calendar)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CalendarUtil

      public CalendarUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(Calendar calendar)
      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,Calendar> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

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

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

      public static List<Calendar> findByUuid(String uuid, int start, int end)
      Returns a range of all the calendars 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 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 CalendarModelImpl.

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

      public static List<Calendar> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
      Returns an ordered range of all the calendars 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 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 CalendarModelImpl.

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

      public static List<Calendar> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendars 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 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 CalendarModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of calendars
      end - the upper bound of the range of calendars (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 calendars
    • findByUuid_First

      public static Calendar findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
      Returns the first calendar 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
      Throws:
      NoSuchCalendarException - if a matching calendar could not be found
      NoSuchCalendarException
    • fetchByUuid_First

      public static Calendar fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
      Returns the first calendar 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, or null if a matching calendar could not be found
    • findByUuid_Last

      public static Calendar findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
      Returns the last calendar in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching calendar
      Throws:
      NoSuchCalendarException - if a matching calendar could not be found
      NoSuchCalendarException
    • fetchByUuid_Last

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

      public static Calendar[] findByUuid_PrevAndNext(long calendarId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
      Returns the calendars before and after the current calendar in the ordered set where uuid = ?.
      Parameters:
      calendarId - the primary key of the current calendar
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next calendar
      Throws:
      NoSuchCalendarException - if a calendar with the primary key could not be found
      NoSuchCalendarException
    • removeByUuid

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

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

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

      public static Calendar fetchByUUID_G(String uuid, long groupId)
      Returns the calendar 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, or null if a matching calendar could not be found
    • fetchByUUID_G

      public static Calendar fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the calendar 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, or null if a matching calendar could not be found
    • removeByUUID_G

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

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

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

      public static List<Calendar> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the calendars 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 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 CalendarModelImpl.

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

      public static List<Calendar> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
      Returns an ordered range of all the calendars 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 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 CalendarModelImpl.

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

      public static List<Calendar> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendars 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 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 CalendarModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of calendars
      end - the upper bound of the range of calendars (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 calendars
    • findByUuid_C_First

      public static Calendar findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
      Returns the first calendar 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
      Throws:
      NoSuchCalendarException - if a matching calendar could not be found
      NoSuchCalendarException
    • fetchByUuid_C_First

      public static Calendar fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
      Returns the first calendar 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, or null if a matching calendar could not be found
    • findByUuid_C_Last

      public static Calendar findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
      Returns the last calendar 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 last matching calendar
      Throws:
      NoSuchCalendarException - if a matching calendar could not be found
      NoSuchCalendarException
    • fetchByUuid_C_Last

      public static Calendar fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
      Returns the last calendar 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 last matching calendar, or null if a matching calendar could not be found
    • findByUuid_C_PrevAndNext

      public static Calendar[] findByUuid_C_PrevAndNext(long calendarId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
      Returns the calendars before and after the current calendar in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      calendarId - the primary key of the current calendar
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next calendar
      Throws:
      NoSuchCalendarException - if a calendar with the primary key could not be found
      NoSuchCalendarException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the calendars 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 calendars where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching calendars
    • findByG_C

      public static List<Calendar> findByG_C(long groupId, long calendarResourceId)
      Returns all the calendars where groupId = ? and calendarResourceId = ?.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      Returns:
      the matching calendars
    • findByG_C

      public static List<Calendar> findByG_C(long groupId, long calendarResourceId, int start, int end)
      Returns a range of all the calendars where groupId = ? and 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 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 CalendarModelImpl.

      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      start - the lower bound of the range of calendars
      end - the upper bound of the range of calendars (not inclusive)
      Returns:
      the range of matching calendars
    • findByG_C

      public static List<Calendar> findByG_C(long groupId, long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
      Returns an ordered range of all the calendars where groupId = ? and 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 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 CalendarModelImpl.

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

      public static List<Calendar> findByG_C(long groupId, long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendars where groupId = ? and 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 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 CalendarModelImpl.

      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      start - the lower bound of the range of calendars
      end - the upper bound of the range of calendars (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 calendars
    • findByG_C_First

      public static Calendar findByG_C_First(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
      Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ?.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar
      Throws:
      NoSuchCalendarException - if a matching calendar could not be found
      NoSuchCalendarException
    • fetchByG_C_First

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

      public static Calendar findByG_C_Last(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
      Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ?.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching calendar
      Throws:
      NoSuchCalendarException - if a matching calendar could not be found
      NoSuchCalendarException
    • fetchByG_C_Last

      public static Calendar fetchByG_C_Last(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
      Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ?.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching calendar, or null if a matching calendar could not be found
    • findByG_C_PrevAndNext

      public static Calendar[] findByG_C_PrevAndNext(long calendarId, long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
      Returns the calendars before and after the current calendar in the ordered set where groupId = ? and calendarResourceId = ?.
      Parameters:
      calendarId - the primary key of the current calendar
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next calendar
      Throws:
      NoSuchCalendarException - if a calendar with the primary key could not be found
      NoSuchCalendarException
    • filterFindByG_C

      public static List<Calendar> filterFindByG_C(long groupId, long calendarResourceId)
      Returns all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      Returns:
      the matching calendars that the user has permission to view
    • filterFindByG_C

      public static List<Calendar> filterFindByG_C(long groupId, long calendarResourceId, int start, int end)
      Returns a range of all the calendars that the user has permission to view where groupId = ? and 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 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 CalendarModelImpl.

      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      start - the lower bound of the range of calendars
      end - the upper bound of the range of calendars (not inclusive)
      Returns:
      the range of matching calendars that the user has permission to view
    • filterFindByG_C

      public static List<Calendar> filterFindByG_C(long groupId, long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
      Returns an ordered range of all the calendars that the user has permissions to view where groupId = ? and 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 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 CalendarModelImpl.

      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      start - the lower bound of the range of calendars
      end - the upper bound of the range of calendars (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching calendars that the user has permission to view
    • filterFindByG_C_PrevAndNext

      public static Calendar[] filterFindByG_C_PrevAndNext(long calendarId, long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
      Returns the calendars before and after the current calendar in the ordered set of calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.
      Parameters:
      calendarId - the primary key of the current calendar
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next calendar
      Throws:
      NoSuchCalendarException - if a calendar with the primary key could not be found
      NoSuchCalendarException
    • removeByG_C

      public static void removeByG_C(long groupId, long calendarResourceId)
      Removes all the calendars where groupId = ? and calendarResourceId = ? from the database.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
    • countByG_C

      public static int countByG_C(long groupId, long calendarResourceId)
      Returns the number of calendars where groupId = ? and calendarResourceId = ?.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      Returns:
      the number of matching calendars
    • filterCountByG_C

      public static int filterCountByG_C(long groupId, long calendarResourceId)
      Returns the number of calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      Returns:
      the number of matching calendars that the user has permission to view
    • findByG_C_D

      public static List<Calendar> findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar)
      Returns all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
      Returns:
      the matching calendars
    • findByG_C_D

      public static List<Calendar> findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end)
      Returns a range of all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.

      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 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 CalendarModelImpl.

      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
      start - the lower bound of the range of calendars
      end - the upper bound of the range of calendars (not inclusive)
      Returns:
      the range of matching calendars
    • findByG_C_D

      public static List<Calendar> findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
      Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.

      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 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 CalendarModelImpl.

      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
      start - the lower bound of the range of calendars
      end - the upper bound of the range of calendars (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching calendars
    • findByG_C_D

      public static List<Calendar> findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.

      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 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 CalendarModelImpl.

      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
      start - the lower bound of the range of calendars
      end - the upper bound of the range of calendars (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 calendars
    • findByG_C_D_First

      public static Calendar findByG_C_D_First(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
      Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar
      Throws:
      NoSuchCalendarException - if a matching calendar could not be found
      NoSuchCalendarException
    • fetchByG_C_D_First

      public static Calendar fetchByG_C_D_First(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
      Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar, or null if a matching calendar could not be found
    • findByG_C_D_Last

      public static Calendar findByG_C_D_Last(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
      Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching calendar
      Throws:
      NoSuchCalendarException - if a matching calendar could not be found
      NoSuchCalendarException
    • fetchByG_C_D_Last

      public static Calendar fetchByG_C_D_Last(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
      Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching calendar, or null if a matching calendar could not be found
    • findByG_C_D_PrevAndNext

      public static Calendar[] findByG_C_D_PrevAndNext(long calendarId, long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
      Returns the calendars before and after the current calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
      Parameters:
      calendarId - the primary key of the current calendar
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next calendar
      Throws:
      NoSuchCalendarException - if a calendar with the primary key could not be found
      NoSuchCalendarException
    • filterFindByG_C_D

      public static List<Calendar> filterFindByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar)
      Returns all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
      Returns:
      the matching calendars that the user has permission to view
    • filterFindByG_C_D

      public static List<Calendar> filterFindByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end)
      Returns a range of all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.

      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 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 CalendarModelImpl.

      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
      start - the lower bound of the range of calendars
      end - the upper bound of the range of calendars (not inclusive)
      Returns:
      the range of matching calendars that the user has permission to view
    • filterFindByG_C_D

      public static List<Calendar> filterFindByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
      Returns an ordered range of all the calendars that the user has permissions to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.

      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 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 CalendarModelImpl.

      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
      start - the lower bound of the range of calendars
      end - the upper bound of the range of calendars (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching calendars that the user has permission to view
    • filterFindByG_C_D_PrevAndNext

      public static Calendar[] filterFindByG_C_D_PrevAndNext(long calendarId, long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
      Returns the calendars before and after the current calendar in the ordered set of calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
      Parameters:
      calendarId - the primary key of the current calendar
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next calendar
      Throws:
      NoSuchCalendarException - if a calendar with the primary key could not be found
      NoSuchCalendarException
    • removeByG_C_D

      public static void removeByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar)
      Removes all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ? from the database.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
    • countByG_C_D

      public static int countByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar)
      Returns the number of calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
      Returns:
      the number of matching calendars
    • filterCountByG_C_D

      public static int filterCountByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar)
      Returns the number of calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
      Parameters:
      groupId - the group ID
      calendarResourceId - the calendar resource ID
      defaultCalendar - the default calendar
      Returns:
      the number of matching calendars that the user has permission to view
    • cacheResult

      public static void cacheResult(Calendar calendar)
      Caches the calendar in the entity cache if it is enabled.
      Parameters:
      calendar - the calendar
    • cacheResult

      public static void cacheResult(List<Calendar> calendars)
      Caches the calendars in the entity cache if it is enabled.
      Parameters:
      calendars - the calendars
    • create

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

      public static Calendar remove(long calendarId) throws NoSuchCalendarException
      Removes the calendar with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      calendarId - the primary key of the calendar
      Returns:
      the calendar that was removed
      Throws:
      NoSuchCalendarException - if a calendar with the primary key could not be found
      NoSuchCalendarException
    • updateImpl

      public static Calendar updateImpl(Calendar calendar)
    • findByPrimaryKey

      public static Calendar findByPrimaryKey(long calendarId) throws NoSuchCalendarException
      Returns the calendar with the primary key or throws a NoSuchCalendarException if it could not be found.
      Parameters:
      calendarId - the primary key of the calendar
      Returns:
      the calendar
      Throws:
      NoSuchCalendarException - if a calendar with the primary key could not be found
      NoSuchCalendarException
    • fetchByPrimaryKey

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

      public static List<Calendar> findAll()
      Returns all the calendars.
      Returns:
      the calendars
    • findAll

      public static List<Calendar> findAll(int start, int end)
      Returns a range of all the calendars.

      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 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 CalendarModelImpl.

      Parameters:
      start - the lower bound of the range of calendars
      end - the upper bound of the range of calendars (not inclusive)
      Returns:
      the range of calendars
    • findAll

      public static List<Calendar> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
      Returns an ordered range of all the calendars.

      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 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 CalendarModelImpl.

      Parameters:
      start - the lower bound of the range of calendars
      end - the upper bound of the range of calendars (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of calendars
    • findAll

      public static List<Calendar> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendars.

      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 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 CalendarModelImpl.

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

      public static void removeAll()
      Removes all the calendars from the database.
    • countAll

      public static int countAll()
      Returns the number of calendars.
      Returns:
      the number of calendars
    • getPersistence

      public static CalendarPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CalendarPersistence persistence)