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 TypeMethodDescriptionvoidcacheResult(Calendar calendar) Caches the calendar in the entity cache if it is enabled.voidcacheResult(List<Calendar> calendars) Caches the calendars in the entity cache if it is enabled.intcountAll()Returns the number of calendars.intcountByG_C(long groupId, long calendarResourceId) Returns the number of calendars where groupId = ? and calendarResourceId = ?.intcountByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar) Returns the number of calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.intcountByUuid(String uuid) Returns the number of calendars where uuid = ?.intcountByUuid_C(String uuid, long companyId) Returns the number of calendars where uuid = ? and companyId = ?.intcountByUUID_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_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 = ?.fetchByPrimaryKey(long calendarId) Returns the calendar with the primary key or returnsnullif 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_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 returnsnullif it could not be found.fetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the calendar where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.intfilterCountByG_C(long groupId, long calendarResourceId) Returns the number of calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.intfilterCountByG_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 = ?.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_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 = ?.findByPrimaryKey(long calendarId) Returns the calendar with the primary key or throws aNoSuchCalendarExceptionif 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_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 aNoSuchCalendarExceptionif it could not be found.remove(long calendarId) Removes the calendar with the primary key from the database.voidRemoves all the calendars from the database.voidremoveByG_C(long groupId, long calendarResourceId) Removes all the calendars where groupId = ? and calendarResourceId = ? from the database.voidremoveByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar) Removes all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ? from the database.voidremoveByUuid(String uuid) Removes all the calendars where uuid = ? from the database.voidremoveByUuid_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, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, updateMethods 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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
nullif a matching calendar 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 aNoSuchCalendarExceptionif 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 returnsnullif it could not be found. Uses the finder cache.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching calendar, or
nullif a matching calendar could not be found
-
fetchByUUID_G
Returns the calendar where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
uuid- the uuidgroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching calendar, or
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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
nullif a matching calendar 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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
nullif a matching calendar 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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
nullif a matching calendar 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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
-
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 aNoSuchCalendarExceptionif 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 returnsnullif it could not be found.- Parameters:
calendarId- the primary key of the calendar- Returns:
- the calendar, or
nullif 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.calendar.model.impl.CalendarModelImpl.- 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
-