Interface CalendarPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<Calendar>
,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<Calendar>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(Calendar calendar) Caches the calendar in the entity cache if it is enabled.void
cacheResult
(List<Calendar> calendars) Caches the calendars in the entity cache if it is enabled.int
countAll()
Returns the number of calendars.int
countByG_C
(long groupId, long calendarResourceId) Returns the number of calendars where groupId = ? and calendarResourceId = ?.int
countByG_C_D
(long groupId, long calendarResourceId, boolean defaultCalendar) Returns the number of calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.int
countByUuid
(String uuid) Returns the number of calendars where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of calendars where uuid = ? and companyId = ?.int
countByUUID_G
(String uuid, long groupId) Returns the number of calendars where uuid = ? and groupId = ?.create
(long calendarId) Creates a new calendar with the primary key.fetchByG_C_D_First
(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.fetchByG_C_D_Last
(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.fetchByG_C_First
(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ?.fetchByG_C_Last
(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ?.fetchByPrimaryKey
(long calendarId) Returns the calendar 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<Calendar> orderByComparator) Returns the first calendar in the ordered set where uuid = ? and companyId = ?.fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the last calendar in the ordered set where uuid = ? and companyId = ?.fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the first calendar in the ordered set where uuid = ?.fetchByUUID_G
(String uuid, long groupId) Returns the calendar where uuid = ? and groupId = ? or returnsnull
if it could not be found.fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the calendar 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<Calendar> orderByComparator) Returns the last calendar in the ordered set where uuid = ?.int
filterCountByG_C
(long groupId, long calendarResourceId) Returns the number of calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.int
filterCountByG_C_D
(long groupId, long calendarResourceId, boolean defaultCalendar) Returns the number of calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.filterFindByG_C
(long groupId, long calendarResourceId) Returns all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.filterFindByG_C
(long groupId, long calendarResourceId, int start, int end) Returns a range of all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.filterFindByG_C
(long groupId, long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns an ordered range of all the calendars that the user has permissions to view where groupId = ? and calendarResourceId = ?.filterFindByG_C_D
(long groupId, long calendarResourceId, boolean defaultCalendar) Returns all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.filterFindByG_C_D
(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end) Returns a range of all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.filterFindByG_C_D
(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns an ordered range of all the calendars that the user has permissions to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.Calendar[]
filterFindByG_C_D_PrevAndNext
(long calendarId, long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the calendars before and after the current calendar in the ordered set of calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.Calendar[]
filterFindByG_C_PrevAndNext
(long calendarId, long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the calendars before and after the current calendar in the ordered set of calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.findAll()
Returns all the calendars.findAll
(int start, int end) Returns a range of all the calendars.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns an ordered range of all the calendars.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendars.findByG_C
(long groupId, long calendarResourceId) Returns all the calendars where groupId = ? and calendarResourceId = ?.findByG_C
(long groupId, long calendarResourceId, int start, int end) Returns a range of all the calendars where groupId = ? and calendarResourceId = ?.findByG_C
(long groupId, long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ?.findByG_C
(long groupId, long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ?.findByG_C_D
(long groupId, long calendarResourceId, boolean defaultCalendar) Returns all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.findByG_C_D
(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end) Returns a range of all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.findByG_C_D
(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.findByG_C_D
(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.findByG_C_D_First
(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.findByG_C_D_Last
(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.Calendar[]
findByG_C_D_PrevAndNext
(long calendarId, long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the calendars before and after the current calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.findByG_C_First
(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ?.findByG_C_Last
(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ?.Calendar[]
findByG_C_PrevAndNext
(long calendarId, long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the calendars before and after the current calendar in the ordered set where groupId = ? and calendarResourceId = ?.findByPrimaryKey
(long calendarId) Returns the calendar with the primary key or throws aNoSuchCalendarException
if it could not be found.findByUuid
(String uuid) Returns all the calendars where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the calendars where uuid = ?.findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns an ordered range of all the calendars where uuid = ?.findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendars where uuid = ?.findByUuid_C
(String uuid, long companyId) Returns all the calendars where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the calendars where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns an ordered range of all the calendars where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendars where uuid = ? and companyId = ?.findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the first calendar in the ordered set where uuid = ? and companyId = ?.findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the last calendar in the ordered set where uuid = ? and companyId = ?.Calendar[]
findByUuid_C_PrevAndNext
(long calendarId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the calendars before and after the current calendar in the ordered set where uuid = ? and companyId = ?.findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the first calendar in the ordered set where uuid = ?.findByUUID_G
(String uuid, long groupId) Returns the calendar where uuid = ? and groupId = ? or throws aNoSuchCalendarException
if it could not be found.findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the last calendar in the ordered set where uuid = ?.Calendar[]
findByUuid_PrevAndNext
(long calendarId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the calendars before and after the current calendar in the ordered set where uuid = ?.remove
(long calendarId) Removes the calendar with the primary key from the database.void
Removes all the calendars from the database.void
removeByG_C
(long groupId, long calendarResourceId) Removes all the calendars where groupId = ? and calendarResourceId = ? from the database.void
removeByG_C_D
(long groupId, long calendarResourceId, boolean defaultCalendar) Removes all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ? from the database.void
removeByUuid
(String uuid) Removes all the calendars where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the calendars where uuid = ? and companyId = ? from the database.removeByUUID_G
(String uuid, long groupId) Removes the calendar where uuid = ? and groupId = ? from the database.updateImpl
(Calendar calendar) 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 calendars where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching calendars
-
findByUuid
Returns a range of all the calendars 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 fromCalendarModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)- Returns:
- the range of matching calendars
-
findByUuid
List<Calendar> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns an ordered range of all the calendars where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
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 fromCalendarModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching calendars
-
findByUuid
List<Calendar> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendars where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
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 fromCalendarModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching calendars
-
findByUuid_First
Calendar findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException Returns the first calendar in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching calendar
- Throws:
NoSuchCalendarException
- if a matching calendar could not be found
-
fetchByUuid_First
Calendar fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the first calendar in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching calendar, or
null
if a matching calendar could not be found
-
findByUuid_Last
Calendar findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException Returns the last calendar in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching calendar
- Throws:
NoSuchCalendarException
- if a matching calendar could not be found
-
fetchByUuid_Last
Calendar fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the last calendar in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching calendar, or
null
if a matching calendar could not be found
-
findByUuid_PrevAndNext
Calendar[] findByUuid_PrevAndNext(long calendarId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException Returns the calendars before and after the current calendar in the ordered set where uuid = ?.- Parameters:
calendarId
- the primary key of the current calendaruuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next calendar
- Throws:
NoSuchCalendarException
- if a calendar with the primary key could not be found
-
removeByUuid
Removes all the calendars where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of calendars where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching calendars
-
findByUUID_G
Returns the calendar where uuid = ? and groupId = ? or throws aNoSuchCalendarException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching calendar
- Throws:
NoSuchCalendarException
- if a matching calendar could not be found
-
fetchByUUID_G
Returns the calendar 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, or
null
if a matching calendar could not be found
-
fetchByUUID_G
Returns the calendar 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, or
null
if a matching calendar could not be found
-
removeByUUID_G
Removes the calendar where uuid = ? and groupId = ? from the database.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the calendar that was removed
- Throws:
NoSuchCalendarException
-
countByUUID_G
Returns the number of calendars where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching calendars
-
findByUuid_C
Returns all the calendars where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching calendars
-
findByUuid_C
Returns a range of all the calendars 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 fromCalendarModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)- Returns:
- the range of matching calendars
-
findByUuid_C
List<Calendar> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns an ordered range of all the calendars where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
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 fromCalendarModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching calendars
-
findByUuid_C
List<Calendar> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendars where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
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 fromCalendarModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching calendars
-
findByUuid_C_First
Calendar findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException Returns the first calendar in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching calendar
- Throws:
NoSuchCalendarException
- if a matching calendar could not be found
-
fetchByUuid_C_First
Calendar fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the first calendar in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching calendar, or
null
if a matching calendar could not be found
-
findByUuid_C_Last
Calendar findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException Returns the last calendar in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching calendar
- Throws:
NoSuchCalendarException
- if a matching calendar could not be found
-
fetchByUuid_C_Last
Calendar fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the last calendar in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching calendar, or
null
if a matching calendar could not be found
-
findByUuid_C_PrevAndNext
Calendar[] findByUuid_C_PrevAndNext(long calendarId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException Returns the calendars before and after the current calendar in the ordered set where uuid = ? and companyId = ?.- Parameters:
calendarId
- the primary key of the current calendaruuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next calendar
- Throws:
NoSuchCalendarException
- if a calendar with the primary key could not be found
-
removeByUuid_C
Removes all the calendars where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of calendars where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching calendars
-
findByG_C
Returns all the calendars where groupId = ? and calendarResourceId = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource ID- Returns:
- the matching calendars
-
findByG_C
Returns a range of all the calendars where groupId = ? and calendarResourceId = ?.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 fromCalendarModelImpl
.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)- Returns:
- the range of matching calendars
-
findByG_C
List<Calendar> findByG_C(long groupId, long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
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 fromCalendarModelImpl
.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching calendars
-
findByG_C
List<Calendar> findByG_C(long groupId, long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
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 fromCalendarModelImpl
.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching calendars
-
findByG_C_First
Calendar findByG_C_First(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching calendar
- Throws:
NoSuchCalendarException
- if a matching calendar could not be found
-
fetchByG_C_First
Calendar fetchByG_C_First(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching calendar, or
null
if a matching calendar could not be found
-
findByG_C_Last
Calendar findByG_C_Last(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching calendar
- Throws:
NoSuchCalendarException
- if a matching calendar could not be found
-
fetchByG_C_Last
Calendar fetchByG_C_Last(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching calendar, or
null
if a matching calendar could not be found
-
findByG_C_PrevAndNext
Calendar[] findByG_C_PrevAndNext(long calendarId, long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException Returns the calendars before and after the current calendar in the ordered set where groupId = ? and calendarResourceId = ?.- Parameters:
calendarId
- the primary key of the current calendargroupId
- the group IDcalendarResourceId
- the calendar resource IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next calendar
- Throws:
NoSuchCalendarException
- if a calendar with the primary key could not be found
-
filterFindByG_C
Returns all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource ID- Returns:
- the matching calendars that the user has permission to view
-
filterFindByG_C
Returns a range of all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
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 fromCalendarModelImpl
.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)- Returns:
- the range of matching calendars that the user has permission to view
-
filterFindByG_C
List<Calendar> filterFindByG_C(long groupId, long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns an ordered range of all the calendars that the user has permissions to view where groupId = ? and calendarResourceId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
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 fromCalendarModelImpl
.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching calendars that the user has permission to view
-
filterFindByG_C_PrevAndNext
Calendar[] filterFindByG_C_PrevAndNext(long calendarId, long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException Returns the calendars before and after the current calendar in the ordered set of calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.- Parameters:
calendarId
- the primary key of the current calendargroupId
- the group IDcalendarResourceId
- the calendar resource IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next calendar
- Throws:
NoSuchCalendarException
- if a calendar with the primary key could not be found
-
removeByG_C
void removeByG_C(long groupId, long calendarResourceId) Removes all the calendars where groupId = ? and calendarResourceId = ? from the database.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource ID
-
countByG_C
int countByG_C(long groupId, long calendarResourceId) Returns the number of calendars where groupId = ? and calendarResourceId = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource ID- Returns:
- the number of matching calendars
-
filterCountByG_C
int filterCountByG_C(long groupId, long calendarResourceId) Returns the number of calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource ID- Returns:
- the number of matching calendars that the user has permission to view
-
findByG_C_D
Returns all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendar- Returns:
- the matching calendars
-
findByG_C_D
List<Calendar> findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end) Returns a range of all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
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 fromCalendarModelImpl
.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)- Returns:
- the range of matching calendars
-
findByG_C_D
List<Calendar> findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
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 fromCalendarModelImpl
.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching calendars
-
findByG_C_D
List<Calendar> findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
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 fromCalendarModelImpl
.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching calendars
-
findByG_C_D_First
Calendar findByG_C_D_First(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching calendar
- Throws:
NoSuchCalendarException
- if a matching calendar could not be found
-
fetchByG_C_D_First
Calendar fetchByG_C_D_First(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching calendar, or
null
if a matching calendar could not be found
-
findByG_C_D_Last
Calendar findByG_C_D_Last(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching calendar
- Throws:
NoSuchCalendarException
- if a matching calendar could not be found
-
fetchByG_C_D_Last
Calendar fetchByG_C_D_Last(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching calendar, or
null
if a matching calendar could not be found
-
findByG_C_D_PrevAndNext
Calendar[] findByG_C_D_PrevAndNext(long calendarId, long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException Returns the calendars before and after the current calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.- Parameters:
calendarId
- the primary key of the current calendargroupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next calendar
- Throws:
NoSuchCalendarException
- if a calendar with the primary key could not be found
-
filterFindByG_C_D
Returns all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendar- Returns:
- the matching calendars that the user has permission to view
-
filterFindByG_C_D
List<Calendar> filterFindByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end) Returns a range of all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
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 fromCalendarModelImpl
.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)- Returns:
- the range of matching calendars that the user has permission to view
-
filterFindByG_C_D
List<Calendar> filterFindByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns an ordered range of all the calendars that the user has permissions to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
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 fromCalendarModelImpl
.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching calendars that the user has permission to view
-
filterFindByG_C_D_PrevAndNext
Calendar[] filterFindByG_C_D_PrevAndNext(long calendarId, long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException Returns the calendars before and after the current calendar in the ordered set of calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.- Parameters:
calendarId
- the primary key of the current calendargroupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next calendar
- Throws:
NoSuchCalendarException
- if a calendar with the primary key could not be found
-
removeByG_C_D
void removeByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar) Removes all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ? from the database.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendar
-
countByG_C_D
int countByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar) Returns the number of calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendar- Returns:
- the number of matching calendars
-
filterCountByG_C_D
int filterCountByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar) Returns the number of calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.- Parameters:
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendar- Returns:
- the number of matching calendars that the user has permission to view
-
cacheResult
Caches the calendar in the entity cache if it is enabled.- Parameters:
calendar
- the calendar
-
cacheResult
Caches the calendars in the entity cache if it is enabled.- Parameters:
calendars
- the calendars
-
create
Creates a new calendar with the primary key. Does not add the calendar to the database.- Parameters:
calendarId
- the primary key for the new calendar- Returns:
- the new calendar
-
remove
Removes the calendar with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
calendarId
- the primary key of the calendar- Returns:
- the calendar that was removed
- Throws:
NoSuchCalendarException
- if a calendar with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the calendar with the primary key or throws aNoSuchCalendarException
if it could not be found.- Parameters:
calendarId
- the primary key of the calendar- Returns:
- the calendar
- Throws:
NoSuchCalendarException
- if a calendar with the primary key could not be found
-
fetchByPrimaryKey
Returns the calendar with the primary key or returnsnull
if it could not be found.- Parameters:
calendarId
- the primary key of the calendar- Returns:
- the calendar, or
null
if a calendar with the primary key could not be found
-
findAll
Returns all the calendars.- Returns:
- the calendars
-
findAll
Returns a range of all the calendars.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 fromCalendarModelImpl
.- Parameters:
start
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)- Returns:
- the range of calendars
-
findAll
List<Calendar> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns an ordered range of all the calendars.Useful when paginating results. Returns a maximum of
end - start
instances.start
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 fromCalendarModelImpl
.- Parameters:
start
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of calendars
-
findAll
List<Calendar> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendars.Useful when paginating results. Returns a maximum of
end - start
instances.start
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 fromCalendarModelImpl
.- Parameters:
start
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of calendars
-
removeAll
void removeAll()Removes all the calendars from the database. -
countAll
int countAll()Returns the number of calendars.- Returns:
- the number of calendars
-