@ProviderType
public class CalendarUtil
extends java.lang.Object
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
CalendarPersistence
,
com.liferay.calendar.service.persistence.impl.CalendarPersistenceImpl
Constructor and Description |
---|
CalendarUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(Calendar calendar)
Caches the calendar in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<Calendar> calendars)
Caches the calendars in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(Calendar calendar) |
static int |
countAll()
Returns the number of calendars.
|
static int |
countByG_C_D(long groupId,
long calendarResourceId,
boolean defaultCalendar)
Returns the number of calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
|
static int |
countByG_C(long groupId,
long calendarResourceId)
Returns the number of calendars where groupId = ? and calendarResourceId = ?.
|
static int |
countByResourceBlockId(long resourceBlockId)
Returns the number of calendars where resourceBlockId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of calendars where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of calendars where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of calendars where uuid = ?.
|
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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,Calendar> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static Calendar |
fetchByResourceBlockId_First(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
Returns the first calendar in the ordered set where resourceBlockId = ?.
|
static Calendar |
fetchByResourceBlockId_Last(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
Returns the last calendar in the ordered set where resourceBlockId = ?.
|
static Calendar |
fetchByUuid_C_First(java.lang.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(java.lang.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(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
Returns the first calendar in the ordered set where uuid = ?.
|
static Calendar |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the calendar where uuid = ? and groupId = ? or returns
null if it could not be found. |
static Calendar |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
Returns the calendar where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static Calendar |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
Returns the last calendar in the ordered set where uuid = ?.
|
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 = ?.
|
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 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 java.util.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 = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
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 = ?.
|
static java.util.List<Calendar> |
filterFindByG_C(long groupId,
long calendarResourceId)
Returns all the calendars that the user has permission to view where groupId = ? and calendarResourceId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static java.util.List<Calendar> |
findAll()
Returns all the calendars.
|
static java.util.List<Calendar> |
findAll(int start,
int end)
Returns a range of all the calendars.
|
static java.util.List<Calendar> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
Returns an ordered range of all the calendars.
|
static java.util.List<Calendar> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendars.
|
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 java.util.List<Calendar> |
findByG_C_D(long groupId,
long calendarResourceId,
boolean defaultCalendar)
Returns all the calendars where groupId = ? and calendarResourceId = ? and defaultCalendar = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static java.util.List<Calendar> |
findByG_C_D(long groupId,
long calendarResourceId,
boolean defaultCalendar,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendars 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 java.util.List<Calendar> |
findByG_C(long groupId,
long calendarResourceId)
Returns all the calendars where groupId = ? and calendarResourceId = ?.
|
static java.util.List<Calendar> |
findByG_C(long groupId,
long calendarResourceId,
int start,
int end)
Returns a range of all the calendars where groupId = ? and calendarResourceId = ?.
|
static java.util.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 = ?.
|
static java.util.List<Calendar> |
findByG_C(long groupId,
long calendarResourceId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendars where groupId = ? and calendarResourceId = ?.
|
static Calendar |
findByPrimaryKey(long calendarId)
Returns the calendar with the primary key or throws a
NoSuchCalendarException if it could not be found. |
static Calendar |
findByResourceBlockId_First(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
Returns the first calendar in the ordered set where resourceBlockId = ?.
|
static Calendar |
findByResourceBlockId_Last(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
Returns the last calendar in the ordered set where resourceBlockId = ?.
|
static Calendar[] |
findByResourceBlockId_PrevAndNext(long calendarId,
long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
Returns the calendars before and after the current calendar in the ordered set where resourceBlockId = ?.
|
static java.util.List<Calendar> |
findByResourceBlockId(long resourceBlockId)
Returns all the calendars where resourceBlockId = ?.
|
static java.util.List<Calendar> |
findByResourceBlockId(long resourceBlockId,
int start,
int end)
Returns a range of all the calendars where resourceBlockId = ?.
|
static java.util.List<Calendar> |
findByResourceBlockId(long resourceBlockId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
Returns an ordered range of all the calendars where resourceBlockId = ?.
|
static java.util.List<Calendar> |
findByResourceBlockId(long resourceBlockId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendars where resourceBlockId = ?.
|
static Calendar |
findByUuid_C_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<Calendar> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the calendars where uuid = ? and companyId = ?.
|
static java.util.List<Calendar> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the calendars where uuid = ? and companyId = ?.
|
static java.util.List<Calendar> |
findByUuid_C(java.lang.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 = ?.
|
static java.util.List<Calendar> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendars where uuid = ? and companyId = ?.
|
static Calendar |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
Returns the first calendar in the ordered set where uuid = ?.
|
static Calendar |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the calendar where uuid = ? and groupId = ? or throws a
NoSuchCalendarException if it could not be found. |
static Calendar |
findByUuid_Last(java.lang.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,
java.lang.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 = ?.
|
static java.util.List<Calendar> |
findByUuid(java.lang.String uuid)
Returns all the calendars where uuid = ?.
|
static java.util.List<Calendar> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the calendars where uuid = ?.
|
static java.util.List<Calendar> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
Returns an ordered range of all the calendars where uuid = ?.
|
static java.util.List<Calendar> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendars where uuid = ?.
|
static java.util.List<Calendar> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<Calendar> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<Calendar> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static CalendarPersistence |
getPersistence() |
static Calendar |
remove(long calendarId)
Removes the calendar with the primary key from the database.
|
static void |
removeAll()
Removes all the calendars 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 |
removeByG_C(long groupId,
long calendarResourceId)
Removes all the calendars where groupId = ? and calendarResourceId = ? from the database.
|
static void |
removeByResourceBlockId(long resourceBlockId)
Removes all the calendars where resourceBlockId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the calendars where uuid = ? and companyId = ? from the database.
|
static Calendar |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the calendar where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the calendars where uuid = ? from the database.
|
static Calendar |
update(Calendar calendar) |
static Calendar |
update(Calendar calendar,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static Calendar |
updateImpl(Calendar calendar) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(Calendar calendar)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.List<Calendar> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<Calendar> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<Calendar> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static Calendar update(Calendar calendar)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static Calendar update(Calendar calendar, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<Calendar> findByResourceBlockId(long resourceBlockId)
resourceBlockId
- the resource block IDpublic static java.util.List<Calendar> findByResourceBlockId(long resourceBlockId, int start, int end)
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.
resourceBlockId
- the resource block IDstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)public static java.util.List<Calendar> findByResourceBlockId(long resourceBlockId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
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.
resourceBlockId
- the resource block 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 (optionally null
)public static java.util.List<Calendar> findByResourceBlockId(long resourceBlockId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean retrieveFromCache)
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.
resourceBlockId
- the resource block 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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static Calendar findByResourceBlockId_First(long resourceBlockId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
resourceBlockId
- the resource block IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCalendarException
- if a matching calendar could not be foundpublic static Calendar fetchByResourceBlockId_First(long resourceBlockId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
resourceBlockId
- the resource block IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar could not be foundpublic static Calendar findByResourceBlockId_Last(long resourceBlockId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
resourceBlockId
- the resource block IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCalendarException
- if a matching calendar could not be foundpublic static Calendar fetchByResourceBlockId_Last(long resourceBlockId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
resourceBlockId
- the resource block IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar could not be foundpublic static Calendar[] findByResourceBlockId_PrevAndNext(long calendarId, long resourceBlockId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
calendarId
- the primary key of the current calendarresourceBlockId
- the resource block IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCalendarException
- if a calendar with the primary key could not be foundpublic static void removeByResourceBlockId(long resourceBlockId)
resourceBlockId
- the resource block IDpublic static int countByResourceBlockId(long resourceBlockId)
resourceBlockId
- the resource block IDpublic static java.util.List<Calendar> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<Calendar> findByUuid(java.lang.String uuid, int start, int end)
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.
uuid
- the uuidstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)public static java.util.List<Calendar> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
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.
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 (optionally null
)public static java.util.List<Calendar> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean retrieveFromCache)
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.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static Calendar findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCalendarException
- if a matching calendar could not be foundpublic static Calendar fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar could not be foundpublic static Calendar findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCalendarException
- if a matching calendar could not be foundpublic static Calendar fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar could not be foundpublic static Calendar[] findByUuid_PrevAndNext(long calendarId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
calendarId
- the primary key of the current calendaruuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCalendarException
- if a calendar with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static Calendar findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCalendarException
NoSuchCalendarException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchCalendarException
- if a matching calendar could not be foundpublic static Calendar fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching calendar could not be foundpublic static Calendar fetchByUUID_G(java.lang.String uuid, long groupId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching calendar could not be foundpublic static Calendar removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchCalendarException
uuid
- the uuidgroupId
- the group IDNoSuchCalendarException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<Calendar> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<Calendar> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
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.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)public static java.util.List<Calendar> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
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.
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 (optionally null
)public static java.util.List<Calendar> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean retrieveFromCache)
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.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static Calendar findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCalendarException
- if a matching calendar could not be foundpublic static Calendar fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar could not be foundpublic static Calendar findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCalendarException
- if a matching calendar could not be foundpublic static Calendar fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar could not be foundpublic static Calendar[] findByUuid_C_PrevAndNext(long calendarId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
calendarId
- the primary key of the current calendaruuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCalendarException
- if a calendar with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<Calendar> findByG_C(long groupId, long calendarResourceId)
groupId
- the group IDcalendarResourceId
- the calendar resource IDpublic static java.util.List<Calendar> findByG_C(long groupId, long calendarResourceId, int start, int end)
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.
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)public static java.util.List<Calendar> findByG_C(long groupId, long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
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.
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 (optionally null
)public static java.util.List<Calendar> findByG_C(long groupId, long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean retrieveFromCache)
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.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static Calendar findByG_C_First(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
groupId
- the group IDcalendarResourceId
- the calendar resource IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCalendarException
- if a matching calendar could not be foundpublic static Calendar fetchByG_C_First(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
groupId
- the group IDcalendarResourceId
- the calendar resource IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar could not be foundpublic static Calendar findByG_C_Last(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
groupId
- the group IDcalendarResourceId
- the calendar resource IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCalendarException
- if a matching calendar could not be foundpublic static Calendar fetchByG_C_Last(long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
groupId
- the group IDcalendarResourceId
- the calendar resource IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar could not be foundpublic static Calendar[] findByG_C_PrevAndNext(long calendarId, long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
calendarId
- the primary key of the current calendargroupId
- the group IDcalendarResourceId
- the calendar resource IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCalendarException
- if a calendar with the primary key could not be foundpublic static java.util.List<Calendar> filterFindByG_C(long groupId, long calendarResourceId)
groupId
- the group IDcalendarResourceId
- the calendar resource IDpublic static java.util.List<Calendar> filterFindByG_C(long groupId, long calendarResourceId, int start, int end)
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.
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)public static java.util.List<Calendar> filterFindByG_C(long groupId, long calendarResourceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
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.
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 (optionally null
)public static Calendar[] filterFindByG_C_PrevAndNext(long calendarId, long groupId, long calendarResourceId, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
calendarId
- the primary key of the current calendargroupId
- the group IDcalendarResourceId
- the calendar resource IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCalendarException
- if a calendar with the primary key could not be foundpublic static void removeByG_C(long groupId, long calendarResourceId)
groupId
- the group IDcalendarResourceId
- the calendar resource IDpublic static int countByG_C(long groupId, long calendarResourceId)
groupId
- the group IDcalendarResourceId
- the calendar resource IDpublic static int filterCountByG_C(long groupId, long calendarResourceId)
groupId
- the group IDcalendarResourceId
- the calendar resource IDpublic static java.util.List<Calendar> findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar)
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarpublic static java.util.List<Calendar> findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end)
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.
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)public static java.util.List<Calendar> findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
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.
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 (optionally null
)public static java.util.List<Calendar> findByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean retrieveFromCache)
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.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static Calendar findByG_C_D_First(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCalendarException
- if a matching calendar could not be foundpublic static Calendar fetchByG_C_D_First(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar could not be foundpublic static Calendar findByG_C_D_Last(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCalendarException
- if a matching calendar could not be foundpublic static Calendar fetchByG_C_D_Last(long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar could not be foundpublic static Calendar[] findByG_C_D_PrevAndNext(long calendarId, long groupId, long calendarResourceId, boolean defaultCalendar, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator) throws NoSuchCalendarException
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 (optionally null
)NoSuchCalendarException
- if a calendar with the primary key could not be foundpublic static java.util.List<Calendar> filterFindByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar)
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarpublic static java.util.List<Calendar> filterFindByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end)
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.
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)public static java.util.List<Calendar> filterFindByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
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.
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 (optionally null
)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
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 (optionally null
)NoSuchCalendarException
- if a calendar with the primary key could not be foundpublic static void removeByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar)
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarpublic static int countByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar)
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarpublic static int filterCountByG_C_D(long groupId, long calendarResourceId, boolean defaultCalendar)
groupId
- the group IDcalendarResourceId
- the calendar resource IDdefaultCalendar
- the default calendarpublic static void cacheResult(Calendar calendar)
calendar
- the calendarpublic static void cacheResult(java.util.List<Calendar> calendars)
calendars
- the calendarspublic static Calendar create(long calendarId)
calendarId
- the primary key for the new calendarpublic static Calendar remove(long calendarId) throws NoSuchCalendarException
calendarId
- the primary key of the calendarNoSuchCalendarException
- if a calendar with the primary key could not be foundpublic static Calendar findByPrimaryKey(long calendarId) throws NoSuchCalendarException
NoSuchCalendarException
if it could not be found.calendarId
- the primary key of the calendarNoSuchCalendarException
- if a calendar with the primary key could not be foundpublic static Calendar fetchByPrimaryKey(long calendarId)
null
if it could not be found.calendarId
- the primary key of the calendarnull
if a calendar with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,Calendar> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<Calendar> findAll()
public static java.util.List<Calendar> findAll(int start, int end)
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.
start
- the lower bound of the range of calendarsend
- the upper bound of the range of calendars (not inclusive)public static java.util.List<Calendar> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator)
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.
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 (optionally null
)public static java.util.List<Calendar> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Calendar> orderByComparator, boolean retrieveFromCache)
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.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static java.util.Set<java.lang.String> getBadColumnNames()
public static CalendarPersistence getPersistence()