All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.calendar.service.persistence.CalendarPersistence Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.calendar.service.persistence;

import aQute.bnd.annotation.ProviderType;

import com.liferay.calendar.exception.NoSuchCalendarException;
import com.liferay.calendar.model.Calendar;
import com.liferay.portal.kernel.service.persistence.BasePersistence;

import java.io.Serializable;

import java.util.Map;
import java.util.Set;

/**
 * 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 { /* * 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. */ @Override public Map fetchByPrimaryKeys( Set primaryKeys); /** * 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 retrieveFromCache whether to retrieve from 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 retrieveFromCache); /** * 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 retrieveFromCache whether to retrieve from 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 retrieveFromCache); /** * 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 retrieveFromCache whether to retrieve from 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 retrieveFromCache); /** * 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 retrieveFromCache whether to retrieve from 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 retrieveFromCache); /** * 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 retrieveFromCache whether to retrieve from 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 retrieveFromCache); /** * 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CalendarModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @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 retrieveFromCache whether to retrieve from 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 retrieveFromCache); /** * Removes all the calendars from the database. */ public void removeAll(); /** * Returns the number of calendars. * * @return the number of calendars */ public int countAll(); @Override public Set getBadColumnNames(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy