Interface CalendarResourcePersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CalendarResource>
,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CalendarResource>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CalendarResource calendarResource) Caches the calendar resource in the entity cache if it is enabled.void
cacheResult
(List<CalendarResource> calendarResources) Caches the calendar resources in the entity cache if it is enabled.int
countAll()
Returns the number of calendar resources.int
countByActive
(boolean active) Returns the number of calendar resources where active = ?.int
countByC_C
(long classNameId, long classPK) Returns the number of calendar resources where classNameId = ? and classPK = ?.int
countByC_LikeC_A
(long companyId, String code, boolean active) Returns the number of calendar resources where companyId = ? and code LIKE ? and active = ?.int
countByG_A
(long groupId, boolean active) Returns the number of calendar resources where groupId = ? and active = ?.int
countByG_C
(long[] groupIds, String code) Returns the number of calendar resources where groupId = any ? and code = ?.int
countByG_C
(long groupId, String code) Returns the number of calendar resources where groupId = ? and code = ?.int
countByGroupId
(long groupId) Returns the number of calendar resources where groupId = ?.int
countByUuid
(String uuid) Returns the number of calendar resources where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of calendar resources where uuid = ? and companyId = ?.int
countByUUID_G
(String uuid, long groupId) Returns the number of calendar resources where uuid = ? and groupId = ?.create
(long calendarResourceId) Creates a new calendar resource with the primary key.fetchByActive_First
(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the first calendar resource in the ordered set where active = ?.fetchByActive_Last
(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the last calendar resource in the ordered set where active = ?.fetchByC_C
(long classNameId, long classPK) Returns the calendar resource where classNameId = ? and classPK = ? or returnsnull
if it could not be found.fetchByC_C
(long classNameId, long classPK, boolean useFinderCache) Returns the calendar resource where classNameId = ? and classPK = ? or returnsnull
if it could not be found, optionally using the finder cache.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.fetchByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the first calendar resource in the ordered set where groupId = ?.fetchByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the last calendar resource in the ordered set where groupId = ?.fetchByPrimaryKey
(long calendarResourceId) Returns the calendar resource with the primary key or returnsnull
if it could not be found.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 = ?.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 = ?.fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the first calendar resource in the ordered set where uuid = ?.fetchByUUID_G
(String uuid, long groupId) Returns the calendar resource where uuid = ? and groupId = ? or returnsnull
if it could not be found.fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the calendar resource where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the last calendar resource in the ordered set where uuid = ?.int
filterCountByG_A
(long groupId, boolean active) Returns the number of calendar resources that the user has permission to view where groupId = ? and active = ?.int
filterCountByG_C
(long[] groupIds, String code) Returns the number of calendar resources that the user has permission to view where groupId = any ? and code = ?.int
filterCountByG_C
(long groupId, String code) Returns the number of calendar resources that the user has permission to view where groupId = ? and code = ?.int
filterCountByGroupId
(long groupId) Returns the number of calendar resources that the user has permission to view where groupId = ?.filterFindByG_A
(long groupId, boolean active) Returns all the calendar resources that the user has permission to view where groupId = ? and active = ?.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 = ?.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 = ?.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 = ?.filterFindByG_C
(long[] groupIds, String code) Returns all the calendar resources that the user has permission to view where groupId = any ? and code = ?.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 = ?.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 = ?.filterFindByG_C
(long groupId, String code) Returns all the calendar resources that the user has permission to view where groupId = ? and code = ?.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 = ?.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 = ?.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 = ?.filterFindByGroupId
(long groupId) Returns all the calendar resources that the user has permission to view where groupId = ?.filterFindByGroupId
(long groupId, int start, int end) Returns a range of all the calendar resources that the user has permission to view where groupId = ?.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 = ?.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 = ?.findAll()
Returns all the calendar resources.findAll
(int start, int end) Returns a range of all the calendar resources.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns an ordered range of all the calendar resources.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar resources.findByActive
(boolean active) Returns all the calendar resources where active = ?.findByActive
(boolean active, int start, int end) Returns a range of all the calendar resources where active = ?.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 = ?.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 = ?.findByActive_First
(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the first calendar resource in the ordered set where active = ?.findByActive_Last
(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the last calendar resource in the ordered set where active = ?.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 = ?.findByC_C
(long classNameId, long classPK) Returns the calendar resource where classNameId = ? and classPK = ? or throws aNoSuchResourceException
if it could not be found.findByC_LikeC_A
(long companyId, String code, boolean active) Returns all the calendar resources where companyId = ? and code LIKE ? and active = ?.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 = ?.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 = ?.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 = ?.findByC_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 = ?.findByC_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 = ?.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 = ?.findByG_A
(long groupId, boolean active) Returns all the calendar resources where groupId = ? and active = ?.findByG_A
(long groupId, boolean active, int start, int end) Returns a range of all the calendar resources where groupId = ? and active = ?.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 = ?.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 = ?.findByG_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 = ?.findByG_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 = ?.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 = ?.Returns all the calendar resources where groupId = any ? and code = ?.Returns a range of all the calendar resources where groupId = any ? and code = ?.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 = ?.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.Returns all the calendar resources where groupId = ? and code = ?.Returns a range of all the calendar resources where groupId = ? and code = ?.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 = ?.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 = ?.findByG_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 = ?.findByG_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 = ?.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 = ?.findByGroupId
(long groupId) Returns all the calendar resources where groupId = ?.findByGroupId
(long groupId, int start, int end) Returns a range of all the calendar resources where groupId = ?.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 = ?.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 = ?.findByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the first calendar resource in the ordered set where groupId = ?.findByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the last calendar resource in the ordered set where groupId = ?.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 = ?.findByPrimaryKey
(long calendarResourceId) Returns the calendar resource with the primary key or throws aNoSuchResourceException
if it could not be found.findByUuid
(String uuid) Returns all the calendar resources where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the calendar resources where uuid = ?.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 = ?.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 = ?.findByUuid_C
(String uuid, long companyId) Returns all the calendar resources where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the calendar resources where uuid = ? and companyId = ?.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 = ?.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 = ?.findByUuid_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 = ?.findByUuid_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 = ?.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 = ?.findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the first calendar resource in the ordered set where uuid = ?.findByUUID_G
(String uuid, long groupId) Returns the calendar resource where uuid = ? and groupId = ? or throws aNoSuchResourceException
if it could not be found.findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns the last calendar resource in the ordered set where uuid = ?.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 = ?.remove
(long calendarResourceId) Removes the calendar resource with the primary key from the database.void
Removes all the calendar resources from the database.void
removeByActive
(boolean active) Removes all the calendar resources where active = ? from the database.removeByC_C
(long classNameId, long classPK) Removes the calendar resource where classNameId = ? and classPK = ? from the database.void
removeByC_LikeC_A
(long companyId, String code, boolean active) Removes all the calendar resources where companyId = ? and code LIKE ? and active = ? from the database.void
removeByG_A
(long groupId, boolean active) Removes all the calendar resources where groupId = ? and active = ? from the database.void
removeByG_C
(long groupId, String code) Removes all the calendar resources where groupId = ? and code = ? from the database.void
removeByGroupId
(long groupId) Removes all the calendar resources where groupId = ? from the database.void
removeByUuid
(String uuid) Removes all the calendar resources where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the calendar resources where uuid = ? and companyId = ? from the database.removeByUUID_G
(String uuid, long groupId) Removes the calendar resource where uuid = ? and groupId = ? from the database.updateImpl
(CalendarResource calendarResource) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns an ordered range of all the calendar resources where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar resources where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
fetchByUuid_First
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
null
if a matching calendar resource could not be found
-
findByUuid_Last
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 found
-
fetchByUuid_Last
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
null
if a matching calendar resource could not be found
-
findByUuid_PrevAndNext
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 found
-
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
Returns the calendar resource where uuid = ? and groupId = ? or throws aNoSuchResourceException
if 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 found
-
fetchByUUID_G
Returns the calendar resource where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching calendar resource, or
null
if a matching calendar resource could not be found
-
fetchByUUID_G
Returns the calendar resource where uuid = ? and groupId = ? or returnsnull
if 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
null
if a matching calendar resource could not be found
-
removeByUUID_G
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns an ordered range of all the calendar resources where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar resources where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
fetchByUuid_C_First
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
null
if a matching calendar resource could not be found
-
findByUuid_C_Last
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 found
-
fetchByUuid_C_Last
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
null
if a matching calendar resource could not be found
-
findByUuid_C_PrevAndNext
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 found
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns an ordered range of all the calendar resources where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar resources where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
fetchByGroupId_First
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
null
if a matching calendar resource could not be found
-
findByGroupId_Last
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 found
-
fetchByGroupId_Last
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
null
if a matching calendar resource could not be found
-
findByGroupId_PrevAndNext
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 found
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns an ordered range of all the calendar resources that the user has permissions to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
removeByGroupId
void removeByGroupId(long groupId) Removes all the calendar resources where groupId = ? from the database.- Parameters:
groupId
- the group ID
-
countByGroupId
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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByActive(boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns an ordered range of all the calendar resources where active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByActive(boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar resources where active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
fetchByActive_First
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
null
if a matching calendar resource could not be found
-
findByActive_Last
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 found
-
fetchByActive_Last
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
null
if a matching calendar resource could not be found
-
findByActive_PrevAndNext
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 found
-
removeByActive
void removeByActive(boolean active) Removes all the calendar resources where active = ? from the database.- Parameters:
active
- the active
-
countByActive
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByG_C(long groupId, String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns an ordered range of all the calendar resources where groupId = ? and code = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByG_C(long groupId, String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar resources where groupId = ? and code = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
fetchByG_C_First
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
null
if a matching calendar resource could not be found
-
findByG_C_Last
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 found
-
fetchByG_C_Last
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
null
if a matching calendar resource could not be found
-
findByG_C_PrevAndNext
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 found
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> filterFindByG_C(long groupId, String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns an ordered range of all the calendar resources that the user has permissions to view where groupId = ? and code = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
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
Returns a range of all the calendar resources that the user has permission to view where groupId = any ? and code = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> filterFindByG_C(long[] groupIds, String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns an ordered range of all the calendar resources that the user has permission to view where groupId = any ? and code = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByG_C(long[] groupIds, String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns an ordered range of all the calendar resources where groupId = any ? and code = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByG_C(long[] groupIds, String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar resources where groupId = ? and code = ?, optionally using the finder cache.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns an ordered range of all the calendar resources where groupId = ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar resources where groupId = ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
fetchByG_A_First
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
null
if a matching calendar resource could not be found
-
findByG_A_Last
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 found
-
fetchByG_A_Last
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
null
if a matching calendar resource could not be found
-
findByG_A_PrevAndNext
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 found
-
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
Returns a range of all the calendar resources that the user has permission to view where groupId = ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> filterFindByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns an ordered range of all the calendar resources that the user has permissions to view where groupId = ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
removeByG_A
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
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
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
Returns the calendar resource where classNameId = ? and classPK = ? or throws aNoSuchResourceException
if 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 found
-
fetchByC_C
Returns the calendar resource where classNameId = ? and classPK = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching calendar resource, or
null
if a matching calendar resource could not be found
-
fetchByC_C
Returns the calendar resource where classNameId = ? and classPK = ? or returnsnull
if 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
null
if a matching calendar resource could not be found
-
removeByC_C
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
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
List<CalendarResource> findByC_LikeC_A(long companyId, String code, boolean active, int start, int end) Returns a range of all the calendar resources where companyId = ? and code LIKE ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByC_LikeC_A(long companyId, String code, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns an ordered range of all the calendar resources where companyId = ? and code LIKE ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findByC_LikeC_A(long companyId, String code, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar resources where companyId = ? and code LIKE ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
fetchByC_LikeC_A_First
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
null
if a matching calendar resource could not be found
-
findByC_LikeC_A_Last
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 found
-
fetchByC_LikeC_A_Last
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
null
if a matching calendar resource could not be found
-
findByC_LikeC_A_PrevAndNext
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 found
-
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 found
-
updateImpl
-
findByPrimaryKey
Returns the calendar resource with the primary key or throws aNoSuchResourceException
if it could not be found.- Parameters:
calendarResourceId
- the primary key of the calendar resource- Returns:
- the calendar resource
- Throws:
NoSuchResourceException
- if a calendar resource with the primary key could not be found
-
fetchByPrimaryKey
Returns the calendar resource with the primary key or returnsnull
if it could not be found.- Parameters:
calendarResourceId
- the primary key of the calendar resource- Returns:
- the calendar resource, or
null
if a calendar resource with the primary key could not be found
-
findAll
List<CalendarResource> 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) Returns an ordered range of all the calendar resources.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
List<CalendarResource> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar resources.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
void removeAll()Removes all the calendar resources from the database. -
countAll
int countAll()Returns the number of calendar resources.- Returns:
- the number of calendar resources
-