![JAR search and dependency download from the Maven repository](/logo.png)
com.liferay.calendar.service.persistence.CalendarPersistence Maven / Gradle / Ivy
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.calendar.service.persistence;
import com.liferay.calendar.exception.NoSuchCalendarException;
import com.liferay.calendar.model.Calendar;
import com.liferay.portal.kernel.service.persistence.BasePersistence;
import com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence;
import org.osgi.annotation.versioning.ProviderType;
/**
* The persistence interface for the calendar service.
*
*
* Caching information and settings can be found in portal.properties
*
*
* @author Eduardo Lundgren
* @see CalendarUtil
* @generated
*/
@ProviderType
public interface CalendarPersistence
extends BasePersistence, CTPersistence {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link CalendarUtil} to access the calendar persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this interface.
*/
/**
* Returns all the calendars where uuid = ?.
*
* @param uuid the uuid
* @return the matching calendars
*/
public java.util.List findByUuid(String uuid);
/**
* Returns a range of all the calendars where uuid = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param uuid the uuid
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @return the range of matching calendars
*/
public java.util.List findByUuid(String uuid, int start, int end);
/**
* Returns an ordered range of all the calendars where uuid = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param uuid the uuid
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching calendars
*/
public java.util.List findByUuid(
String uuid, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns an ordered range of all the calendars where uuid = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param uuid the uuid
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @param useFinderCache whether to use the finder cache
* @return the ordered range of matching calendars
*/
public java.util.List findByUuid(
String uuid, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator,
boolean useFinderCache);
/**
* Returns the first calendar in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching calendar
* @throws NoSuchCalendarException if a matching calendar could not be found
*/
public Calendar findByUuid_First(
String uuid,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchCalendarException;
/**
* Returns the first calendar in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching calendar, or null
if a matching calendar could not be found
*/
public Calendar fetchByUuid_First(
String uuid,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the last calendar in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching calendar
* @throws NoSuchCalendarException if a matching calendar could not be found
*/
public Calendar findByUuid_Last(
String uuid,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchCalendarException;
/**
* Returns the last calendar in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching calendar, or null
if a matching calendar could not be found
*/
public Calendar fetchByUuid_Last(
String uuid,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the calendars before and after the current calendar in the ordered set where uuid = ?.
*
* @param calendarId the primary key of the current calendar
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next calendar
* @throws NoSuchCalendarException if a calendar with the primary key could not be found
*/
public Calendar[] findByUuid_PrevAndNext(
long calendarId, String uuid,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchCalendarException;
/**
* Removes all the calendars where uuid = ? from the database.
*
* @param uuid the uuid
*/
public void removeByUuid(String uuid);
/**
* Returns the number of calendars where uuid = ?.
*
* @param uuid the uuid
* @return the number of matching calendars
*/
public int countByUuid(String uuid);
/**
* Returns the calendar where uuid = ? and groupId = ? or throws a NoSuchCalendarException
if it could not be found.
*
* @param uuid the uuid
* @param groupId the group ID
* @return the matching calendar
* @throws NoSuchCalendarException if a matching calendar could not be found
*/
public Calendar findByUUID_G(String uuid, long groupId)
throws NoSuchCalendarException;
/**
* Returns the calendar where uuid = ? and groupId = ? or returns null
if it could not be found. Uses the finder cache.
*
* @param uuid the uuid
* @param groupId the group ID
* @return the matching calendar, or null
if a matching calendar could not be found
*/
public Calendar fetchByUUID_G(String uuid, long groupId);
/**
* Returns the calendar where uuid = ? and groupId = ? or returns null
if it could not be found, optionally using the finder cache.
*
* @param uuid the uuid
* @param groupId the group ID
* @param useFinderCache whether to use the finder cache
* @return the matching calendar, or null
if a matching calendar could not be found
*/
public Calendar fetchByUUID_G(
String uuid, long groupId, boolean useFinderCache);
/**
* Removes the calendar where uuid = ? and groupId = ? from the database.
*
* @param uuid the uuid
* @param groupId the group ID
* @return the calendar that was removed
*/
public Calendar removeByUUID_G(String uuid, long groupId)
throws NoSuchCalendarException;
/**
* Returns the number of calendars where uuid = ? and groupId = ?.
*
* @param uuid the uuid
* @param groupId the group ID
* @return the number of matching calendars
*/
public int countByUUID_G(String uuid, long groupId);
/**
* Returns all the calendars where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @return the matching calendars
*/
public java.util.List findByUuid_C(String uuid, long companyId);
/**
* Returns a range of all the calendars where uuid = ? and companyId = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param uuid the uuid
* @param companyId the company ID
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @return the range of matching calendars
*/
public java.util.List findByUuid_C(
String uuid, long companyId, int start, int end);
/**
* Returns an ordered range of all the calendars where uuid = ? and companyId = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param uuid the uuid
* @param companyId the company ID
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching calendars
*/
public java.util.List findByUuid_C(
String uuid, long companyId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
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
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param uuid the uuid
* @param companyId the company ID
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @param useFinderCache whether to use the finder cache
* @return the ordered range of matching calendars
*/
public java.util.List findByUuid_C(
String uuid, long companyId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator,
boolean useFinderCache);
/**
* Returns the first calendar in the ordered set where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching calendar
* @throws NoSuchCalendarException if a matching calendar could not be found
*/
public Calendar findByUuid_C_First(
String uuid, long companyId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchCalendarException;
/**
* Returns the first calendar in the ordered set where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching calendar, or null
if a matching calendar could not be found
*/
public Calendar fetchByUuid_C_First(
String uuid, long companyId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the last calendar in the ordered set where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching calendar
* @throws NoSuchCalendarException if a matching calendar could not be found
*/
public Calendar findByUuid_C_Last(
String uuid, long companyId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchCalendarException;
/**
* Returns the last calendar in the ordered set where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching calendar, or null
if a matching calendar could not be found
*/
public Calendar fetchByUuid_C_Last(
String uuid, long companyId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the calendars before and after the current calendar in the ordered set where uuid = ? and companyId = ?.
*
* @param calendarId the primary key of the current calendar
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next calendar
* @throws NoSuchCalendarException if a calendar with the primary key could not be found
*/
public Calendar[] findByUuid_C_PrevAndNext(
long calendarId, String uuid, long companyId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchCalendarException;
/**
* Removes all the calendars where uuid = ? and companyId = ? from the database.
*
* @param uuid the uuid
* @param companyId the company ID
*/
public void removeByUuid_C(String uuid, long companyId);
/**
* Returns the number of calendars where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @return the number of matching calendars
*/
public int countByUuid_C(String uuid, long companyId);
/**
* Returns all the calendars where groupId = ? and calendarResourceId = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @return the matching calendars
*/
public java.util.List findByG_C(
long groupId, long calendarResourceId);
/**
* Returns a range of all the calendars where groupId = ? and calendarResourceId = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @return the range of matching calendars
*/
public java.util.List findByG_C(
long groupId, long calendarResourceId, int start, int end);
/**
* Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ?.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching calendars
*/
public java.util.List findByG_C(
long groupId, long calendarResourceId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
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
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @param useFinderCache whether to use the finder cache
* @return the ordered range of matching calendars
*/
public java.util.List findByG_C(
long groupId, long calendarResourceId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator,
boolean useFinderCache);
/**
* Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching calendar
* @throws NoSuchCalendarException if a matching calendar could not be found
*/
public Calendar findByG_C_First(
long groupId, long calendarResourceId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchCalendarException;
/**
* Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching calendar, or null
if a matching calendar could not be found
*/
public Calendar fetchByG_C_First(
long groupId, long calendarResourceId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching calendar
* @throws NoSuchCalendarException if a matching calendar could not be found
*/
public Calendar findByG_C_Last(
long groupId, long calendarResourceId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchCalendarException;
/**
* Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching calendar, or null
if a matching calendar could not be found
*/
public Calendar fetchByG_C_Last(
long groupId, long calendarResourceId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the calendars before and after the current calendar in the ordered set where groupId = ? and calendarResourceId = ?.
*
* @param calendarId the primary key of the current calendar
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next calendar
* @throws NoSuchCalendarException if a calendar with the primary key could not be found
*/
public Calendar[] findByG_C_PrevAndNext(
long calendarId, long groupId, long calendarResourceId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchCalendarException;
/**
* Returns all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @return the matching calendars that the user has permission to view
*/
public java.util.List filterFindByG_C(
long groupId, long calendarResourceId);
/**
* 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
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @return the range of matching calendars that the user has permission to view
*/
public java.util.List filterFindByG_C(
long groupId, long calendarResourceId, int start, int end);
/**
* 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
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching calendars that the user has permission to view
*/
public java.util.List filterFindByG_C(
long groupId, long calendarResourceId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
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 = ?.
*
* @param calendarId the primary key of the current calendar
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next calendar
* @throws NoSuchCalendarException if a calendar with the primary key could not be found
*/
public Calendar[] filterFindByG_C_PrevAndNext(
long calendarId, long groupId, long calendarResourceId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchCalendarException;
/**
* Removes all the calendars where groupId = ? and calendarResourceId = ? from the database.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
*/
public void removeByG_C(long groupId, long calendarResourceId);
/**
* Returns the number of calendars where groupId = ? and calendarResourceId = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @return the number of matching calendars
*/
public int countByG_C(long groupId, long calendarResourceId);
/**
* Returns the number of calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @return the number of matching calendars that the user has permission to view
*/
public int filterCountByG_C(long groupId, long calendarResourceId);
/**
* Returns all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
* @return the matching calendars
*/
public java.util.List findByG_C_D(
long groupId, long calendarResourceId, boolean defaultCalendar);
/**
* 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
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @return the range of matching calendars
*/
public java.util.List findByG_C_D(
long groupId, long calendarResourceId, boolean defaultCalendar,
int start, int end);
/**
* 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
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching calendars
*/
public java.util.List findByG_C_D(
long groupId, long calendarResourceId, boolean defaultCalendar,
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
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
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @param useFinderCache whether to use the finder cache
* @return the ordered range of matching calendars
*/
public java.util.List findByG_C_D(
long groupId, long calendarResourceId, boolean defaultCalendar,
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator,
boolean useFinderCache);
/**
* Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching calendar
* @throws NoSuchCalendarException if a matching calendar could not be found
*/
public Calendar findByG_C_D_First(
long groupId, long calendarResourceId, boolean defaultCalendar,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchCalendarException;
/**
* Returns the first calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching calendar, or null
if a matching calendar could not be found
*/
public Calendar fetchByG_C_D_First(
long groupId, long calendarResourceId, boolean defaultCalendar,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching calendar
* @throws NoSuchCalendarException if a matching calendar could not be found
*/
public Calendar findByG_C_D_Last(
long groupId, long calendarResourceId, boolean defaultCalendar,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchCalendarException;
/**
* Returns the last calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching calendar, or null
if a matching calendar could not be found
*/
public Calendar fetchByG_C_D_Last(
long groupId, long calendarResourceId, boolean defaultCalendar,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the calendars before and after the current calendar in the ordered set where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
*
* @param calendarId the primary key of the current calendar
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next calendar
* @throws NoSuchCalendarException if a calendar with the primary key could not be found
*/
public Calendar[] findByG_C_D_PrevAndNext(
long calendarId, long groupId, long calendarResourceId,
boolean defaultCalendar,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchCalendarException;
/**
* Returns all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
* @return the matching calendars that the user has permission to view
*/
public java.util.List filterFindByG_C_D(
long groupId, long calendarResourceId, boolean defaultCalendar);
/**
* 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
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @return the range of matching calendars that the user has permission to view
*/
public java.util.List filterFindByG_C_D(
long groupId, long calendarResourceId, boolean defaultCalendar,
int start, int end);
/**
* 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
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching calendars that the user has permission to view
*/
public java.util.List filterFindByG_C_D(
long groupId, long calendarResourceId, boolean defaultCalendar,
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
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 = ?.
*
* @param calendarId the primary key of the current calendar
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next calendar
* @throws NoSuchCalendarException if a calendar with the primary key could not be found
*/
public Calendar[] filterFindByG_C_D_PrevAndNext(
long calendarId, long groupId, long calendarResourceId,
boolean defaultCalendar,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchCalendarException;
/**
* Removes all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ? from the database.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
*/
public void removeByG_C_D(
long groupId, long calendarResourceId, boolean defaultCalendar);
/**
* Returns the number of calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
* @return the number of matching calendars
*/
public int countByG_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 = ?.
*
* @param groupId the group ID
* @param calendarResourceId the calendar resource ID
* @param defaultCalendar the default calendar
* @return the number of matching calendars that the user has permission to view
*/
public int filterCountByG_C_D(
long groupId, long calendarResourceId, boolean defaultCalendar);
/**
* Caches the calendar in the entity cache if it is enabled.
*
* @param calendar the calendar
*/
public void cacheResult(Calendar calendar);
/**
* Caches the calendars in the entity cache if it is enabled.
*
* @param calendars the calendars
*/
public void cacheResult(java.util.List calendars);
/**
* Creates a new calendar with the primary key. Does not add the calendar to the database.
*
* @param calendarId the primary key for the new calendar
* @return the new calendar
*/
public Calendar create(long calendarId);
/**
* Removes the calendar with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param calendarId the primary key of the calendar
* @return the calendar that was removed
* @throws NoSuchCalendarException if a calendar with the primary key could not be found
*/
public Calendar remove(long calendarId) throws NoSuchCalendarException;
public Calendar updateImpl(Calendar calendar);
/**
* Returns the calendar with the primary key or throws a NoSuchCalendarException
if it could not be found.
*
* @param calendarId the primary key of the calendar
* @return the calendar
* @throws NoSuchCalendarException if a calendar with the primary key could not be found
*/
public Calendar findByPrimaryKey(long calendarId)
throws NoSuchCalendarException;
/**
* Returns the calendar with the primary key or returns null
if it could not be found.
*
* @param calendarId the primary key of the calendar
* @return the calendar, or null
if a calendar with the primary key could not be found
*/
public Calendar fetchByPrimaryKey(long calendarId);
/**
* Returns all the calendars.
*
* @return the calendars
*/
public java.util.List findAll();
/**
* Returns a range of all the calendars.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @return the range of calendars
*/
public java.util.List findAll(int start, int end);
/**
* Returns an ordered range of all the calendars.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of calendars
*/
public java.util.List findAll(
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns an ordered range of all the calendars.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CalendarModelImpl
.
*
*
* @param start the lower bound of the range of calendars
* @param end the upper bound of the range of calendars (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @param useFinderCache whether to use the finder cache
* @return the ordered range of calendars
*/
public java.util.List findAll(
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator,
boolean useFinderCache);
/**
* Removes all the calendars from the database.
*/
public void removeAll();
/**
* Returns the number of calendars.
*
* @return the number of calendars
*/
public int countAll();
}