Class CalendarResourceUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(CalendarResource calendarResource) Caches the calendar resource in the entity cache if it is enabled.static voidcacheResult(List<CalendarResource> calendarResources) Caches the calendar resources in the entity cache if it is enabled.static voidstatic voidclearCache(CalendarResource calendarResource) static intcountAll()Returns the number of calendar resources.static intcountByActive(boolean active) Returns the number of calendar resources where active = ?.static intcountByC_C(long classNameId, long classPK) Returns the number of calendar resources where classNameId = ? and classPK = ?.static intcountByC_LikeC_A(long companyId, String code, boolean active) Returns the number of calendar resources where companyId = ? and code LIKE ? and active = ?.static intcountByG_A(long groupId, boolean active) Returns the number of calendar resources where groupId = ? and active = ?.static intcountByG_C(long[] groupIds, String code) Returns the number of calendar resources where groupId = any ? and code = ?.static intcountByG_C(long groupId, String code) Returns the number of calendar resources where groupId = ? and code = ?.static intcountByGroupId(long groupId) Returns the number of calendar resources where groupId = ?.static intcountByUuid(String uuid) Returns the number of calendar resources where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of calendar resources where uuid = ? and companyId = ?.static intcountByUUID_G(String uuid, long groupId) Returns the number of calendar resources where uuid = ? and groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CalendarResourcecreate(long calendarResourceId) Creates a new calendar resource with the primary key.static CalendarResourcefetchByActive_First(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the first calendar resource in the ordered set where active = ?.static CalendarResourcefetchByActive_Last(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the last calendar resource in the ordered set where active = ?.static CalendarResourcefetchByC_C(long classNameId, long classPK) Returns the calendar resource where classNameId = ? and classPK = ? or returnsnullif it could not be found.static CalendarResourcefetchByC_C(long classNameId, long classPK, boolean useFinderCache) Returns the calendar resource where classNameId = ? and classPK = ? or returnsnullif it could not be found, optionally using the finder cache.static CalendarResourcefetchByC_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 = ?.static CalendarResourcefetchByC_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 = ?.static CalendarResourcefetchByG_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 = ?.static CalendarResourcefetchByG_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 = ?.static CalendarResourcefetchByG_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 = ?.static CalendarResourcefetchByG_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 = ?.static CalendarResourcefetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the first calendar resource in the ordered set where groupId = ?.static CalendarResourcefetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the last calendar resource in the ordered set where groupId = ?.static CalendarResourcefetchByPrimaryKey(long calendarResourceId) Returns the calendar resource with the primary key or returnsnullif it could not be found.static Map<Serializable,CalendarResource> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static CalendarResourcefetchByUuid_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 = ?.static CalendarResourcefetchByUuid_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 = ?.static CalendarResourcefetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the first calendar resource in the ordered set where uuid = ?.static CalendarResourcefetchByUUID_G(String uuid, long groupId) Returns the calendar resource where uuid = ? and groupId = ? or returnsnullif it could not be found.static CalendarResourcefetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the calendar resource where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static CalendarResourcefetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the last calendar resource in the ordered set where uuid = ?.static intfilterCountByG_A(long groupId, boolean active) Returns the number of calendar resources that the user has permission to view where groupId = ? and active = ?.static intfilterCountByG_C(long[] groupIds, String code) Returns the number of calendar resources that the user has permission to view where groupId = any ? and code = ?.static intfilterCountByG_C(long groupId, String code) Returns the number of calendar resources that the user has permission to view where groupId = ? and code = ?.static intfilterCountByGroupId(long groupId) Returns the number of calendar resources that the user has permission to view where groupId = ?.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 = ?.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 = ?.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 = ?.static CalendarResource[]filterFindByG_A_PrevAndNext(long calendarResourceId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) 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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.static CalendarResource[]filterFindByG_C_PrevAndNext(long calendarResourceId, long groupId, String code, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) 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 = ?.static List<CalendarResource>filterFindByGroupId(long groupId) Returns all the calendar resources that the user has permission to view where groupId = ?.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 = ?.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 = ?.static CalendarResource[]filterFindByGroupId_PrevAndNext(long calendarResourceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) 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 = ?.static List<CalendarResource>findAll()Returns all the calendar resources.static List<CalendarResource>findAll(int start, int end) Returns a range of all the calendar resources.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.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.static List<CalendarResource>findByActive(boolean active) Returns all the calendar resources where active = ?.static List<CalendarResource>findByActive(boolean active, int start, int end) Returns a range of all the calendar resources where active = ?.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 = ?.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 = ?.static CalendarResourcefindByActive_First(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the first calendar resource in the ordered set where active = ?.static CalendarResourcefindByActive_Last(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the last calendar resource in the ordered set where active = ?.static CalendarResource[]findByActive_PrevAndNext(long calendarResourceId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the calendar resources before and after the current calendar resource in the ordered set where active = ?.static CalendarResourcefindByC_C(long classNameId, long classPK) Returns the calendar resource where classNameId = ? and classPK = ? or throws aNoSuchResourceExceptionif it could not be found.static List<CalendarResource>findByC_LikeC_A(long companyId, String code, boolean active) Returns all the calendar resources where companyId = ? and code LIKE ? and active = ?.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 = ?.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 = ?.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 = ?.static CalendarResourcefindByC_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 = ?.static CalendarResourcefindByC_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 = ?.static CalendarResource[]findByC_LikeC_A_PrevAndNext(long calendarResourceId, long companyId, String code, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the calendar resources before and after the current calendar resource in the ordered set where companyId = ? and code LIKE ? and active = ?.static List<CalendarResource>findByG_A(long groupId, boolean active) Returns all the calendar resources where groupId = ? and active = ?.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 = ?.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 = ?.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 = ?.static CalendarResourcefindByG_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 = ?.static CalendarResourcefindByG_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 = ?.static CalendarResource[]findByG_A_PrevAndNext(long calendarResourceId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the calendar resources before and after the current calendar resource in the ordered set where groupId = ? and active = ?.static List<CalendarResource>Returns all the calendar resources where groupId = any ? and code = ?.static List<CalendarResource>Returns a range of all the calendar resources where groupId = any ? and code = ?.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 = ?.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.static List<CalendarResource>Returns all the calendar resources where groupId = ? and code = ?.static List<CalendarResource>Returns a range of all the calendar resources where groupId = ? and code = ?.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 = ?.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 = ?.static CalendarResourcefindByG_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 = ?.static CalendarResourcefindByG_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 = ?.static CalendarResource[]findByG_C_PrevAndNext(long calendarResourceId, long groupId, String code, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the calendar resources before and after the current calendar resource in the ordered set where groupId = ? and code = ?.static List<CalendarResource>findByGroupId(long groupId) Returns all the calendar resources where groupId = ?.static List<CalendarResource>findByGroupId(long groupId, int start, int end) Returns a range of all the calendar resources where groupId = ?.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 = ?.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 = ?.static CalendarResourcefindByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the first calendar resource in the ordered set where groupId = ?.static CalendarResourcefindByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the last calendar resource in the ordered set where groupId = ?.static CalendarResource[]findByGroupId_PrevAndNext(long calendarResourceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the calendar resources before and after the current calendar resource in the ordered set where groupId = ?.static CalendarResourcefindByPrimaryKey(long calendarResourceId) Returns the calendar resource with the primary key or throws aNoSuchResourceExceptionif it could not be found.static List<CalendarResource>findByUuid(String uuid) Returns all the calendar resources where uuid = ?.static List<CalendarResource>findByUuid(String uuid, int start, int end) Returns a range of all the calendar resources where uuid = ?.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 = ?.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 = ?.static List<CalendarResource>findByUuid_C(String uuid, long companyId) Returns all the calendar resources where uuid = ? and companyId = ?.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 = ?.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 = ?.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 = ?.static CalendarResourcefindByUuid_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 = ?.static CalendarResourcefindByUuid_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 = ?.static CalendarResource[]findByUuid_C_PrevAndNext(long calendarResourceId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the calendar resources before and after the current calendar resource in the ordered set where uuid = ? and companyId = ?.static CalendarResourcefindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the first calendar resource in the ordered set where uuid = ?.static CalendarResourcefindByUUID_G(String uuid, long groupId) Returns the calendar resource where uuid = ? and groupId = ? or throws aNoSuchResourceExceptionif it could not be found.static CalendarResourcefindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the last calendar resource in the ordered set where uuid = ?.static CalendarResource[]findByUuid_PrevAndNext(long calendarResourceId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the calendar resources before and after the current calendar resource in the ordered set where uuid = ?.static List<CalendarResource>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CalendarResource>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CalendarResource>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) static CalendarResourcePersistencestatic CalendarResourceremove(long calendarResourceId) Removes the calendar resource with the primary key from the database.static voidRemoves all the calendar resources from the database.static voidremoveByActive(boolean active) Removes all the calendar resources where active = ? from the database.static CalendarResourceremoveByC_C(long classNameId, long classPK) Removes the calendar resource where classNameId = ? and classPK = ? from the database.static voidremoveByC_LikeC_A(long companyId, String code, boolean active) Removes all the calendar resources where companyId = ? and code LIKE ? and active = ? from the database.static voidremoveByG_A(long groupId, boolean active) Removes all the calendar resources where groupId = ? and active = ? from the database.static voidremoveByG_C(long groupId, String code) Removes all the calendar resources where groupId = ? and code = ? from the database.static voidremoveByGroupId(long groupId) Removes all the calendar resources where groupId = ? from the database.static voidremoveByUuid(String uuid) Removes all the calendar resources where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the calendar resources where uuid = ? and companyId = ? from the database.static CalendarResourceremoveByUUID_G(String uuid, long groupId) Removes the calendar resource where uuid = ? and groupId = ? from the database.static voidsetPersistence(CalendarResourcePersistence persistence) static CalendarResourceupdate(CalendarResource calendarResource) static CalendarResourceupdate(CalendarResource calendarResource, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CalendarResourceupdateImpl(CalendarResource calendarResource)
-
Constructor Details
-
CalendarResourceUtil
public CalendarResourceUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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
- 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
- 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
Returns all the calendar resources where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching calendar resources
-
findByUuid
Returns a range of all the calendar resources where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of calendar resourcesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
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 uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching calendar resource, or
nullif 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 uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
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 uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching calendar resource, or
nullif 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 resourceuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next calendar resource
- Throws:
NoSuchResourceException- if a calendar resource with the primary key could not be foundNoSuchResourceException
-
removeByUuid
Removes all the calendar resources where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
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 aNoSuchResourceExceptionif it could not be found.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
fetchByUUID_G
Returns the calendar resource where uuid = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching calendar resource, or
nullif a matching calendar resource could not be found
-
fetchByUUID_G
Returns the calendar resource where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
uuid- the uuidgroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching calendar resource, or
nullif 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 uuidgroupId- the group ID- Returns:
- the calendar resource that was removed
- Throws:
NoSuchResourceException
-
countByUUID_G
Returns the number of calendar resources where uuid = ? and groupId = ?.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching calendar resources
-
findByUuid_C
Returns all the calendar resources where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching calendar resources
-
findByUuid_C
Returns a range of all the calendar resources where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of calendar resourcesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
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 uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching calendar resource, or
nullif 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 uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
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 uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching calendar resource, or
nullif 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 resourceuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next calendar resource
- Throws:
NoSuchResourceException- if a calendar resource with the primary key could not be foundNoSuchResourceException
-
removeByUuid_C
Removes all the calendar resources where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of calendar resources where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching calendar resources
-
findByGroupId
Returns all the calendar resources where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching calendar resources
-
findByGroupId
Returns a range of all the calendar resources where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of calendar resourcesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching calendar resource, or
nullif 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching calendar resource, or
nullif 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 resourcegroupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next calendar resource
- Throws:
NoSuchResourceException- if a calendar resource with the primary key could not be foundNoSuchResourceException
-
filterFindByGroupId
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
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of calendar resourcesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 resourcegroupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next calendar resource
- Throws:
NoSuchResourceException- if a calendar resource with the primary key could not be foundNoSuchResourceException
-
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
Returns all the calendar resources where active = ?.- Parameters:
active- the active- Returns:
- the matching calendar resources
-
findByActive
Returns a range of all the calendar resources where active = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
active- the activestart- the lower bound of the range of calendar resourcesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
active- the activestart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
active- the activestart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
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 activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching calendar resource, or
nullif 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 activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
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 activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching calendar resource, or
nullif 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 resourceactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next calendar resource
- Throws:
NoSuchResourceException- if a calendar resource with the primary key could not be foundNoSuchResourceException
-
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
Returns all the calendar resources where groupId = ? and code = ?.- Parameters:
groupId- the group IDcode- the code- Returns:
- the matching calendar resources
-
findByG_C
Returns a range of all the calendar resources where groupId = ? and code = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupId- the group IDcode- the codestart- the lower bound of the range of calendar resourcesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupId- the group IDcode- the codestart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupId- the group IDcode- the codestart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDcode- the codeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
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 IDcode- the codeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching calendar resource, or
nullif 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 IDcode- the codeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
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 IDcode- the codeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching calendar resource, or
nullif 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 resourcegroupId- the group IDcode- the codeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next calendar resource
- Throws:
NoSuchResourceException- if a calendar resource with the primary key could not be foundNoSuchResourceException
-
filterFindByG_C
Returns all the calendar resources that the user has permission to view where groupId = ? and code = ?.- Parameters:
groupId- the group IDcode- the code- Returns:
- the matching calendar resources that the user has permission to view
-
filterFindByG_C
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupId- the group IDcode- the codestart- the lower bound of the range of calendar resourcesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupId- the group IDcode- the codestart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 resourcegroupId- the group IDcode- the codeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next calendar resource
- Throws:
NoSuchResourceException- if a calendar resource with the primary key could not be foundNoSuchResourceException
-
filterFindByG_C
Returns all the calendar resources that the user has permission to view where groupId = any ? and code = ?.- Parameters:
groupIds- the group IDscode- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupIds- the group IDscode- the codestart- the lower bound of the range of calendar resourcesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupIds- the group IDscode- the codestart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching calendar resources that the user has permission to view
-
findByG_C
Returns all the calendar resources where groupId = any ? and code = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupIds- the group IDscode- the code- Returns:
- the matching calendar resources
-
findByG_C
Returns a range of all the calendar resources where groupId = any ? and code = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupIds- the group IDscode- the codestart- the lower bound of the range of calendar resourcesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupIds- the group IDscode- the codestart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupIds- the group IDscode- the codestart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching calendar resources
-
removeByG_C
Removes all the calendar resources where groupId = ? and code = ? from the database.- Parameters:
groupId- the group IDcode- the code
-
countByG_C
Returns the number of calendar resources where groupId = ? and code = ?.- Parameters:
groupId- the group IDcode- the code- Returns:
- the number of matching calendar resources
-
countByG_C
Returns the number of calendar resources where groupId = any ? and code = ?.- Parameters:
groupIds- the group IDscode- the code- Returns:
- the number of matching calendar resources
-
filterCountByG_C
Returns the number of calendar resources that the user has permission to view where groupId = ? and code = ?.- Parameters:
groupId- the group IDcode- the code- Returns:
- the number of matching calendar resources that the user has permission to view
-
filterCountByG_C
Returns the number of calendar resources that the user has permission to view where groupId = any ? and code = ?.- Parameters:
groupIds- the group IDscode- the code- Returns:
- the number of matching calendar resources that the user has permission to view
-
findByG_A
Returns all the calendar resources where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- the active- Returns:
- the matching calendar resources
-
findByG_A
Returns a range of all the calendar resources where groupId = ? and active = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of calendar resourcesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
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 IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching calendar resource, or
nullif 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 IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
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 IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching calendar resource, or
nullif 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 resourcegroupId- the group IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next calendar resource
- Throws:
NoSuchResourceException- if a calendar resource with the primary key could not be foundNoSuchResourceException
-
filterFindByG_A
Returns all the calendar resources that the user has permission to view where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of calendar resourcesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 resourcegroupId- the group IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next calendar resource
- Throws:
NoSuchResourceException- if a calendar resource with the primary key could not be foundNoSuchResourceException
-
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 IDactive- 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 IDactive- 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 IDactive- 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 aNoSuchResourceExceptionif it could not be found.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
fetchByC_C
Returns the calendar resource where classNameId = ? and classPK = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the matching calendar resource, or
nullif a matching calendar resource could not be found
-
fetchByC_C
Returns the calendar resource where classNameId = ? and classPK = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
classNameId- the class name IDclassPK- the class pkuseFinderCache- whether to use the finder cache- Returns:
- the matching calendar resource, or
nullif 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 IDclassPK- 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 IDclassPK- the class pk- Returns:
- the number of matching calendar resources
-
findByC_LikeC_A
Returns all the calendar resources where companyId = ? and code LIKE ? and active = ?.- Parameters:
companyId- the company IDcode- the codeactive- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
companyId- the company IDcode- the codeactive- the activestart- the lower bound of the range of calendar resourcesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
companyId- the company IDcode- the codeactive- the activestart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
companyId- the company IDcode- the codeactive- the activestart- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDcode- the codeactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
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 IDcode- the codeactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching calendar resource, or
nullif 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 IDcode- the codeactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching calendar resource
- Throws:
NoSuchResourceException- if a matching calendar resource could not be foundNoSuchResourceException
-
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 IDcode- the codeactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching calendar resource, or
nullif 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 resourcecompanyId- the company IDcode- the codeactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next calendar resource
- Throws:
NoSuchResourceException- if a calendar resource with the primary key could not be foundNoSuchResourceException
-
removeByC_LikeC_A
Removes all the calendar resources where companyId = ? and code LIKE ? and active = ? from the database.- Parameters:
companyId- the company IDcode- the codeactive- the active
-
countByC_LikeC_A
Returns the number of calendar resources where companyId = ? and code LIKE ? and active = ?.- Parameters:
companyId- the company IDcode- the codeactive- the active- Returns:
- the number of matching calendar resources
-
cacheResult
Caches the calendar resource in the entity cache if it is enabled.- Parameters:
calendarResource- the calendar resource
-
cacheResult
Caches the calendar resources in the entity cache if it is enabled.- Parameters:
calendarResources- the calendar resources
-
create
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
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 foundNoSuchResourceException
-
updateImpl
-
findByPrimaryKey
public static CalendarResource findByPrimaryKey(long calendarResourceId) throws NoSuchResourceException Returns the calendar resource with the primary key or throws aNoSuchResourceExceptionif 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 foundNoSuchResourceException
-
fetchByPrimaryKey
Returns the calendar resource with the primary key or returnsnullif it could not be found.- Parameters:
calendarResourceId- the primary key of the calendar resource- Returns:
- the calendar resource, or
nullif a calendar resource with the primary key could not be found
-
findAll
Returns all the calendar resources.- Returns:
- the calendar resources
-
findAll
Returns a range of all the calendar resources.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
start- the lower bound of the range of calendar resourcesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
start- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCalendarResourceModelImpl.- Parameters:
start- the lower bound of the range of calendar resourcesend- the upper bound of the range of calendar resources (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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
-
setPersistence
-