Class CalendarUtil
com.liferay.calendar.service.persistence.impl.CalendarPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(Calendar calendar) Caches the calendar in the entity cache if it is enabled.static void
cacheResult
(List<Calendar> calendars) Caches the calendars in the entity cache if it is enabled.static void
static void
clearCache
(Calendar calendar) static int
countAll()
Returns the number of calendars.static int
countByG_C
(long groupId, long calendarResourceId) Returns the number of calendars where groupId = ? and calendarResourceId = ?.static int
countByG_C_D
(long groupId, long calendarResourceId, boolean defaultCalendar) Returns the number of calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.static int
countByUuid
(String uuid) Returns the number of calendars where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of calendars where uuid = ? and companyId = ?.static int
countByUUID_G
(String uuid, long groupId) Returns the number of calendars where uuid = ? and groupId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static Calendar
create
(long calendarId) Creates a new calendar with the primary key.static 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 = ?.static 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 = ?.static 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 = ?.static 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 = ?.static Calendar
fetchByPrimaryKey
(long calendarId) Returns the calendar with the primary key or returnsnull
if it could not be found.static Map<Serializable,
Calendar> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static 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 = ?.static 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 = ?.static Calendar
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the first calendar in the ordered set where uuid = ?.static Calendar
fetchByUUID_G
(String uuid, long groupId) Returns the calendar where uuid = ? and groupId = ? or returnsnull
if it could not be found.static Calendar
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.static Calendar
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the last calendar in the ordered set where uuid = ?.static int
filterCountByG_C
(long groupId, long calendarResourceId) Returns the number of calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.static 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 = ?.static 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 = ?.static 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 = ?.static Calendar
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 = ?.static Calendar
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 = ?.static 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 = ?.static Calendar
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 = ?.static Calendar
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 = ?.static 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 = ?.static Calendar
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 = ?.static Calendar
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 = ?.static Calendar
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 = ?.static 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 = ?.static Calendar
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the first calendar in the ordered set where uuid = ?.static Calendar
findByUUID_G
(String uuid, long groupId) Returns the calendar where uuid = ? and groupId = ? or throws aNoSuchCalendarException
if it could not be found.static Calendar
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) Returns the last calendar in the ordered set where uuid = ?.static 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 = ?.findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) static CalendarPersistence
static Calendar
remove
(long calendarId) Removes the calendar with the primary key from the database.static void
Removes all the calendars from the database.static void
removeByG_C
(long groupId, long calendarResourceId) Removes all the calendars where groupId = ? and calendarResourceId = ? from the database.static void
removeByG_C_D
(long groupId, long calendarResourceId, boolean defaultCalendar) Removes all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ? from the database.static void
removeByUuid
(String uuid) Removes all the calendars where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the calendars where uuid = ? and companyId = ? from the database.static Calendar
removeByUUID_G
(String uuid, long groupId) Removes the calendar where uuid = ? and groupId = ? from the database.static void
setPersistence
(CalendarPersistence persistence) static Calendar
static Calendar
static Calendar
updateImpl
(Calendar calendar)
-
Constructor Details
-
CalendarUtil
public CalendarUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<Calendar> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<Calendar> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<Calendar> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static Calendar update(Calendar calendar, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
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
public static 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
public static 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
public static 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 foundNoSuchCalendarException
-
fetchByUuid_First
public static 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
public static 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 foundNoSuchCalendarException
-
fetchByUuid_Last
public static 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
public static 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 foundNoSuchCalendarException
-
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 foundNoSuchCalendarException
-
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
public static 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
public static 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
public static 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 foundNoSuchCalendarException
-
fetchByUuid_C_First
public static 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
public static 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 foundNoSuchCalendarException
-
fetchByUuid_C_Last
public static 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
public static 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 foundNoSuchCalendarException
-
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
public static 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
public static 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
public static 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 foundNoSuchCalendarException
-
fetchByG_C_First
public static 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
public static 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 foundNoSuchCalendarException
-
fetchByG_C_Last
public static 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
public static 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 foundNoSuchCalendarException
-
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
public static List<Calendar> 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 = ?.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
public static 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
public static 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 foundNoSuchCalendarException
-
removeByG_C
public static 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
public static 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
public static 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
public static List<Calendar> findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar) 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
public static 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
public static 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
public static 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
public static 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 foundNoSuchCalendarException
-
fetchByG_C_D_First
public static 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
public static 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 foundNoSuchCalendarException
-
fetchByG_C_D_Last
public static 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
public static 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 foundNoSuchCalendarException
-
filterFindByG_C_D
public static List<Calendar> 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 = ?.- 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
public static 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
public static 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
public static 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 foundNoSuchCalendarException
-
removeByG_C_D
public static 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
public static 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
public static 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 foundNoSuchCalendarException
-
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 foundNoSuchCalendarException
-
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
public static 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
public static 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
public static void removeAll()Removes all the calendars from the database. -
countAll
public static int countAll()Returns the number of calendars.- Returns:
- the number of calendars
-
getPersistence
-
setPersistence
-