Class CalendarResourceUtil

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

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

    • CalendarResourceUtil

      public CalendarResourceUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

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

      public static List<CalendarResource> findByUuid(String uuid, int start, int end)
      Returns a range of all the calendar resources 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 CalendarResourceModelImpl.

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

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

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

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

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

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

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

      public static CalendarResource findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
      Returns the last calendar resource 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 resource
      Throws:
      NoSuchResourceException - if a matching calendar resource could not be found
      NoSuchResourceException
    • fetchByUuid_Last

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static List<CalendarResource> findByGroupId(long groupId)
      Returns all the calendar resources where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching calendar resources
    • findByGroupId

      public static List<CalendarResource> findByGroupId(long groupId, int start, int end)
      Returns a range of all the calendar resources where groupId = ?.

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of calendar resources
      end - the upper bound of the range of calendar resources (not inclusive)
      Returns:
      the range of matching calendar resources
    • findByGroupId

      public static List<CalendarResource> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
      Returns an ordered range of all the calendar resources where groupId = ?.

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

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

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

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

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

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

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

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

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

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

      public static List<CalendarResource> filterFindByGroupId(long groupId)
      Returns all the calendar resources that the user has permission to view where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching calendar resources that the user has permission to view
    • filterFindByGroupId

      public static List<CalendarResource> filterFindByGroupId(long groupId, int start, int end)
      Returns a range of all the calendar resources that the user has permission to view where groupId = ?.

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

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

      public static List<CalendarResource> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
      Returns an ordered range of all the calendar resources that the user has permissions to view where groupId = ?.

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

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

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

      public static void removeByGroupId(long groupId)
      Removes all the calendar resources where groupId = ? from the database.
      Parameters:
      groupId - the group ID
    • countByGroupId

      public static int countByGroupId(long groupId)
      Returns the number of calendar resources where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching calendar resources
    • filterCountByGroupId

      public static int filterCountByGroupId(long groupId)
      Returns the number of calendar resources that the user has permission to view where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching calendar resources that the user has permission to view
    • findByActive

      public static List<CalendarResource> findByActive(boolean active)
      Returns all the calendar resources where active = ?.
      Parameters:
      active - the active
      Returns:
      the matching calendar resources
    • findByActive

      public static List<CalendarResource> findByActive(boolean active, int start, int end)
      Returns a range of all the calendar resources where active = ?.

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

      Parameters:
      active - the active
      start - the lower bound of the range of calendar resources
      end - the upper bound of the range of calendar resources (not inclusive)
      Returns:
      the range of matching calendar resources
    • findByActive

      public static List<CalendarResource> findByActive(boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
      Returns an ordered range of all the calendar resources where active = ?.

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

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

      public static List<CalendarResource> findByActive(boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendar resources where active = ?.

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

      Parameters:
      active - the active
      start - the lower bound of the range of calendar resources
      end - the upper bound of the range of calendar resources (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 resources
    • findByActive_First

      public static CalendarResource findByActive_First(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
      Returns the first calendar resource in the ordered set where active = ?.
      Parameters:
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar resource
      Throws:
      NoSuchResourceException - if a matching calendar resource could not be found
      NoSuchResourceException
    • fetchByActive_First

      public static CalendarResource fetchByActive_First(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
      Returns the first calendar resource in the ordered set where active = ?.
      Parameters:
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar resource, or null if a matching calendar resource could not be found
    • findByActive_Last

      public static CalendarResource findByActive_Last(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
      Returns the last calendar resource in the ordered set where active = ?.
      Parameters:
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching calendar resource
      Throws:
      NoSuchResourceException - if a matching calendar resource could not be found
      NoSuchResourceException
    • fetchByActive_Last

      public static CalendarResource fetchByActive_Last(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
      Returns the last calendar resource in the ordered set where active = ?.
      Parameters:
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching calendar resource, or null if a matching calendar resource could not be found
    • findByActive_PrevAndNext

      public static CalendarResource[] findByActive_PrevAndNext(long calendarResourceId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
      Returns the calendar resources before and after the current calendar resource in the ordered set where active = ?.
      Parameters:
      calendarResourceId - the primary key of the current calendar resource
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next calendar resource
      Throws:
      NoSuchResourceException - if a calendar resource with the primary key could not be found
      NoSuchResourceException
    • removeByActive

      public static void removeByActive(boolean active)
      Removes all the calendar resources where active = ? from the database.
      Parameters:
      active - the active
    • countByActive

      public static int countByActive(boolean active)
      Returns the number of calendar resources where active = ?.
      Parameters:
      active - the active
      Returns:
      the number of matching calendar resources
    • findByG_C

      public static List<CalendarResource> findByG_C(long groupId, String code)
      Returns all the calendar resources where groupId = ? and code = ?.
      Parameters:
      groupId - the group ID
      code - the code
      Returns:
      the matching calendar resources
    • findByG_C

      public static List<CalendarResource> findByG_C(long groupId, String code, int start, int end)
      Returns a range of all the calendar resources where groupId = ? and code = ?.

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

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

      public static List<CalendarResource> findByG_C(long groupId, String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
      Returns an ordered range of all the calendar resources where groupId = ? and code = ?.

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

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

      public static List<CalendarResource> findByG_C(long groupId, String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendar resources where groupId = ? and code = ?.

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

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

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

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

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

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

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

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

      public static List<CalendarResource> filterFindByG_C(long groupId, String code, int start, int end)
      Returns a range of all the calendar resources that the user has permission to view where groupId = ? and code = ?.

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

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

      public static List<CalendarResource> filterFindByG_C(long groupId, String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
      Returns an ordered range of all the calendar resources that the user has permissions to view where groupId = ? and code = ?.

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

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

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

      public static List<CalendarResource> filterFindByG_C(long[] groupIds, String code)
      Returns all the calendar resources that the user has permission to view where groupId = any ? and code = ?.
      Parameters:
      groupIds - the group IDs
      code - the code
      Returns:
      the matching calendar resources that the user has permission to view
    • filterFindByG_C

      public static List<CalendarResource> filterFindByG_C(long[] groupIds, String code, int start, int end)
      Returns a range of all the calendar resources that the user has permission to view where groupId = any ? and code = ?.

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

      Parameters:
      groupIds - the group IDs
      code - the code
      start - the lower bound of the range of calendar resources
      end - the upper bound of the range of calendar resources (not inclusive)
      Returns:
      the range of matching calendar resources that the user has permission to view
    • filterFindByG_C

      public static List<CalendarResource> filterFindByG_C(long[] groupIds, String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
      Returns an ordered range of all the calendar resources that the user has permission to view where groupId = any ? and code = ?.

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

      Parameters:
      groupIds - the group IDs
      code - the code
      start - the lower bound of the range of calendar resources
      end - the upper bound of the range of calendar resources (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching calendar resources that the user has permission to view
    • findByG_C

      public static List<CalendarResource> findByG_C(long[] groupIds, String code)
      Returns all the calendar resources where groupId = any ? and code = ?.

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

      Parameters:
      groupIds - the group IDs
      code - the code
      Returns:
      the matching calendar resources
    • findByG_C

      public static List<CalendarResource> findByG_C(long[] groupIds, String code, int start, int end)
      Returns a range of all the calendar resources where groupId = any ? and code = ?.

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

      Parameters:
      groupIds - the group IDs
      code - the code
      start - the lower bound of the range of calendar resources
      end - the upper bound of the range of calendar resources (not inclusive)
      Returns:
      the range of matching calendar resources
    • findByG_C

      public static List<CalendarResource> findByG_C(long[] groupIds, String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
      Returns an ordered range of all the calendar resources where groupId = any ? and code = ?.

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

      Parameters:
      groupIds - the group IDs
      code - the code
      start - the lower bound of the range of calendar resources
      end - the upper bound of the range of calendar resources (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching calendar resources
    • findByG_C

      public static List<CalendarResource> findByG_C(long[] groupIds, String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendar resources where groupId = ? and code = ?, 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 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 CalendarResourceModelImpl.

      Parameters:
      groupIds - the group IDs
      code - the code
      start - the lower bound of the range of calendar resources
      end - the upper bound of the range of calendar resources (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 resources
    • removeByG_C

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

      public static int countByG_C(long groupId, String code)
      Returns the number of calendar resources where groupId = ? and code = ?.
      Parameters:
      groupId - the group ID
      code - the code
      Returns:
      the number of matching calendar resources
    • countByG_C

      public static int countByG_C(long[] groupIds, String code)
      Returns the number of calendar resources where groupId = any ? and code = ?.
      Parameters:
      groupIds - the group IDs
      code - the code
      Returns:
      the number of matching calendar resources
    • filterCountByG_C

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

      public static int filterCountByG_C(long[] groupIds, String code)
      Returns the number of calendar resources that the user has permission to view where groupId = any ? and code = ?.
      Parameters:
      groupIds - the group IDs
      code - the code
      Returns:
      the number of matching calendar resources that the user has permission to view
    • findByG_A

      public static List<CalendarResource> findByG_A(long groupId, boolean active)
      Returns all the calendar resources where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      Returns:
      the matching calendar resources
    • findByG_A

      public static List<CalendarResource> findByG_A(long groupId, boolean active, int start, int end)
      Returns a range of all the calendar resources where groupId = ? and active = ?.

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

      Parameters:
      groupId - the group ID
      active - the active
      start - the lower bound of the range of calendar resources
      end - the upper bound of the range of calendar resources (not inclusive)
      Returns:
      the range of matching calendar resources
    • findByG_A

      public static List<CalendarResource> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
      Returns an ordered range of all the calendar resources where groupId = ? and active = ?.

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

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

      public static List<CalendarResource> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendar resources where groupId = ? and active = ?.

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

      Parameters:
      groupId - the group ID
      active - the active
      start - the lower bound of the range of calendar resources
      end - the upper bound of the range of calendar resources (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 resources
    • findByG_A_First

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

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

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

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

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

      public static List<CalendarResource> filterFindByG_A(long groupId, boolean active)
      Returns all the calendar resources that the user has permission to view where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      Returns:
      the matching calendar resources that the user has permission to view
    • filterFindByG_A

      public static List<CalendarResource> filterFindByG_A(long groupId, boolean active, int start, int end)
      Returns a range of all the calendar resources that the user has permission to view where groupId = ? and active = ?.

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

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

      public static List<CalendarResource> filterFindByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
      Returns an ordered range of all the calendar resources that the user has permissions to view where groupId = ? and active = ?.

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

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

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

      public static void removeByG_A(long groupId, boolean active)
      Removes all the calendar resources where groupId = ? and active = ? from the database.
      Parameters:
      groupId - the group ID
      active - the active
    • countByG_A

      public static int countByG_A(long groupId, boolean active)
      Returns the number of calendar resources where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      Returns:
      the number of matching calendar resources
    • filterCountByG_A

      public static int filterCountByG_A(long groupId, boolean active)
      Returns the number of calendar resources that the user has permission to view where groupId = ? and active = ?.
      Parameters:
      groupId - the group ID
      active - the active
      Returns:
      the number of matching calendar resources that the user has permission to view
    • findByC_C

      public static CalendarResource findByC_C(long classNameId, long classPK) throws NoSuchResourceException
      Returns the calendar resource where classNameId = ? and classPK = ? or throws a NoSuchResourceException if it could not be found.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching calendar resource
      Throws:
      NoSuchResourceException - if a matching calendar resource could not be found
      NoSuchResourceException
    • fetchByC_C

      public static CalendarResource fetchByC_C(long classNameId, long classPK)
      Returns the calendar resource where classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching calendar resource, or null if a matching calendar resource could not be found
    • fetchByC_C

      public static CalendarResource fetchByC_C(long classNameId, long classPK, boolean useFinderCache)
      Returns the calendar resource where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      useFinderCache - whether to use the finder cache
      Returns:
      the matching calendar resource, or null if a matching calendar resource could not be found
    • removeByC_C

      public static CalendarResource removeByC_C(long classNameId, long classPK) throws NoSuchResourceException
      Removes the calendar resource where classNameId = ? and classPK = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the calendar resource that was removed
      Throws:
      NoSuchResourceException
    • countByC_C

      public static int countByC_C(long classNameId, long classPK)
      Returns the number of calendar resources where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching calendar resources
    • findByC_LikeC_A

      public static List<CalendarResource> findByC_LikeC_A(long companyId, String code, boolean active)
      Returns all the calendar resources where companyId = ? and code LIKE ? and active = ?.
      Parameters:
      companyId - the company ID
      code - the code
      active - the active
      Returns:
      the matching calendar resources
    • findByC_LikeC_A

      public static List<CalendarResource> findByC_LikeC_A(long companyId, String code, boolean active, int start, int end)
      Returns a range of all the calendar resources where companyId = ? and code LIKE ? and active = ?.

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

      Parameters:
      companyId - the company ID
      code - the code
      active - the active
      start - the lower bound of the range of calendar resources
      end - the upper bound of the range of calendar resources (not inclusive)
      Returns:
      the range of matching calendar resources
    • findByC_LikeC_A

      public static List<CalendarResource> findByC_LikeC_A(long companyId, String code, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
      Returns an ordered range of all the calendar resources where companyId = ? and code LIKE ? and active = ?.

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

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

      public static List<CalendarResource> findByC_LikeC_A(long companyId, String code, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the calendar resources where companyId = ? and code LIKE ? and active = ?.

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

      Parameters:
      companyId - the company ID
      code - the code
      active - the active
      start - the lower bound of the range of calendar resources
      end - the upper bound of the range of calendar resources (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 resources
    • findByC_LikeC_A_First

      public static CalendarResource findByC_LikeC_A_First(long companyId, String code, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
      Returns the first calendar resource in the ordered set where companyId = ? and code LIKE ? and active = ?.
      Parameters:
      companyId - the company ID
      code - the code
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar resource
      Throws:
      NoSuchResourceException - if a matching calendar resource could not be found
      NoSuchResourceException
    • fetchByC_LikeC_A_First

      public static CalendarResource fetchByC_LikeC_A_First(long companyId, String code, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
      Returns the first calendar resource in the ordered set where companyId = ? and code LIKE ? and active = ?.
      Parameters:
      companyId - the company ID
      code - the code
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching calendar resource, or null if a matching calendar resource could not be found
    • findByC_LikeC_A_Last

      public static CalendarResource findByC_LikeC_A_Last(long companyId, String code, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
      Returns the last calendar resource in the ordered set where companyId = ? and code LIKE ? and active = ?.
      Parameters:
      companyId - the company ID
      code - the code
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching calendar resource
      Throws:
      NoSuchResourceException - if a matching calendar resource could not be found
      NoSuchResourceException
    • fetchByC_LikeC_A_Last

      public static CalendarResource fetchByC_LikeC_A_Last(long companyId, String code, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
      Returns the last calendar resource in the ordered set where companyId = ? and code LIKE ? and active = ?.
      Parameters:
      companyId - the company ID
      code - the code
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching calendar resource, or null if a matching calendar resource could not be found
    • findByC_LikeC_A_PrevAndNext

      public static CalendarResource[] findByC_LikeC_A_PrevAndNext(long calendarResourceId, long companyId, String code, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
      Returns the calendar resources before and after the current calendar resource in the ordered set where companyId = ? and code LIKE ? and active = ?.
      Parameters:
      calendarResourceId - the primary key of the current calendar resource
      companyId - the company ID
      code - the code
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next calendar resource
      Throws:
      NoSuchResourceException - if a calendar resource with the primary key could not be found
      NoSuchResourceException
    • removeByC_LikeC_A

      public static void removeByC_LikeC_A(long companyId, String code, boolean active)
      Removes all the calendar resources where companyId = ? and code LIKE ? and active = ? from the database.
      Parameters:
      companyId - the company ID
      code - the code
      active - the active
    • countByC_LikeC_A

      public static int countByC_LikeC_A(long companyId, String code, boolean active)
      Returns the number of calendar resources where companyId = ? and code LIKE ? and active = ?.
      Parameters:
      companyId - the company ID
      code - the code
      active - the active
      Returns:
      the number of matching calendar resources
    • cacheResult

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

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

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

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

      public static CalendarResource updateImpl(CalendarResource calendarResource)
    • findByPrimaryKey

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

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

      public static List<CalendarResource> findAll()
      Returns all the calendar resources.
      Returns:
      the calendar resources
    • findAll

      public static List<CalendarResource> findAll(int start, int end)
      Returns a range of all the calendar resources.

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

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

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

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

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

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

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

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

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

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

      public static CalendarResourcePersistence getPersistence()
    • setPersistence

      public static void setPersistence(CalendarResourcePersistence persistence)