@ProviderType
public class CalendarResourceUtil
extends java.lang.Object
com.liferay.calendar.service.persistence.impl.CalendarResourcePersistenceImpl
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
CalendarResourcePersistence
,
com.liferay.calendar.service.persistence.impl.CalendarResourcePersistenceImpl
Constructor and Description |
---|
CalendarResourceUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CalendarResource calendarResource)
Caches the calendar resource in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CalendarResource> calendarResources)
Caches the calendar resources in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CalendarResource calendarResource) |
static int |
countAll()
Returns the number of calendar resources.
|
static int |
countByActive(boolean active)
Returns the number of calendar resources where active = ?.
|
static int |
countByC_C_A(long companyId,
java.lang.String code,
boolean active)
Returns the number of calendar resources where companyId = ? and code LIKE ? and active = ?.
|
static int |
countByC_C(long classNameId,
long classPK)
Returns the number of calendar resources where classNameId = ? and classPK = ?.
|
static int |
countByG_A(long groupId,
boolean active)
Returns the number of calendar resources where groupId = ? and active = ?.
|
static int |
countByG_C(long[] groupIds,
java.lang.String code)
Returns the number of calendar resources where groupId = any ? and code = ?.
|
static int |
countByG_C(long groupId,
java.lang.String code)
Returns the number of calendar resources where groupId = ? and code = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of calendar resources where groupId = ?.
|
static int |
countByResourceBlockId(long resourceBlockId)
Returns the number of calendar resources where resourceBlockId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of calendar resources where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of calendar resources where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of calendar resources where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CalendarResource |
create(long calendarResourceId)
Creates a new calendar resource with the primary key.
|
static CalendarResource |
fetchByActive_First(boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where active = ?.
|
static CalendarResource |
fetchByActive_Last(boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where active = ?.
|
static CalendarResource |
fetchByC_C_A_First(long companyId,
java.lang.String code,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where companyId = ? and code LIKE ? and active = ?.
|
static CalendarResource |
fetchByC_C_A_Last(long companyId,
java.lang.String code,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where companyId = ? and code LIKE ? and active = ?.
|
static CalendarResource |
fetchByC_C(long classNameId,
long classPK)
Returns the calendar resource where classNameId = ? and classPK = ? or returns
null if it could not be found. |
static CalendarResource |
fetchByC_C(long classNameId,
long classPK,
boolean retrieveFromCache)
Returns the calendar resource where classNameId = ? and classPK = ? or returns
null if it could not be found, optionally using the finder cache. |
static CalendarResource |
fetchByG_A_First(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where groupId = ? and active = ?.
|
static CalendarResource |
fetchByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where groupId = ? and active = ?.
|
static CalendarResource |
fetchByG_C_First(long groupId,
java.lang.String code,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where groupId = ? and code = ?.
|
static CalendarResource |
fetchByG_C_Last(long groupId,
java.lang.String code,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where groupId = ? and code = ?.
|
static CalendarResource |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where groupId = ?.
|
static CalendarResource |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where groupId = ?.
|
static CalendarResource |
fetchByPrimaryKey(long calendarResourceId)
Returns the calendar resource with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CalendarResource> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CalendarResource |
fetchByResourceBlockId_First(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where resourceBlockId = ?.
|
static CalendarResource |
fetchByResourceBlockId_Last(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where resourceBlockId = ?.
|
static CalendarResource |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where uuid = ? and companyId = ?.
|
static CalendarResource |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where uuid = ? and companyId = ?.
|
static CalendarResource |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where uuid = ?.
|
static CalendarResource |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the calendar resource where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CalendarResource |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
Returns the calendar resource where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CalendarResource |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where uuid = ?.
|
static int |
filterCountByG_A(long groupId,
boolean active)
Returns the number of calendar resources that the user has permission to view where groupId = ? and active = ?.
|
static int |
filterCountByG_C(long[] groupIds,
java.lang.String code)
Returns the number of calendar resources that the user has permission to view where groupId = any ? and code = ?.
|
static int |
filterCountByG_C(long groupId,
java.lang.String code)
Returns the number of calendar resources that the user has permission to view where groupId = ? and code = ?.
|
static int |
filterCountByGroupId(long groupId)
Returns the number of calendar resources that the user has permission to view where groupId = ?.
|
static CalendarResource[] |
filterFindByG_A_PrevAndNext(long calendarResourceId,
long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the calendar resources before and after the current calendar resource in the ordered set of calendar resources that the user has permission to view where groupId = ? and active = ?.
|
static java.util.List<CalendarResource> |
filterFindByG_A(long groupId,
boolean active)
Returns all the calendar resources that the user has permission to view where groupId = ? and active = ?.
|
static java.util.List<CalendarResource> |
filterFindByG_A(long groupId,
boolean active,
int start,
int end)
Returns a range of all the calendar resources that the user has permission to view where groupId = ? and active = ?.
|
static java.util.List<CalendarResource> |
filterFindByG_A(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns an ordered range of all the calendar resources that the user has permissions to view where groupId = ? and active = ?.
|
static CalendarResource[] |
filterFindByG_C_PrevAndNext(long calendarResourceId,
long groupId,
java.lang.String code,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the calendar resources before and after the current calendar resource in the ordered set of calendar resources that the user has permission to view where groupId = ? and code = ?.
|
static java.util.List<CalendarResource> |
filterFindByG_C(long[] groupIds,
java.lang.String code)
Returns all the calendar resources that the user has permission to view where groupId = any ? and code = ?.
|
static java.util.List<CalendarResource> |
filterFindByG_C(long[] groupIds,
java.lang.String code,
int start,
int end)
Returns a range of all the calendar resources that the user has permission to view where groupId = any ? and code = ?.
|
static java.util.List<CalendarResource> |
filterFindByG_C(long[] groupIds,
java.lang.String code,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns an ordered range of all the calendar resources that the user has permission to view where groupId = any ? and code = ?.
|
static java.util.List<CalendarResource> |
filterFindByG_C(long groupId,
java.lang.String code)
Returns all the calendar resources that the user has permission to view where groupId = ? and code = ?.
|
static java.util.List<CalendarResource> |
filterFindByG_C(long groupId,
java.lang.String code,
int start,
int end)
Returns a range of all the calendar resources that the user has permission to view where groupId = ? and code = ?.
|
static java.util.List<CalendarResource> |
filterFindByG_C(long groupId,
java.lang.String code,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns an ordered range of all the calendar resources that the user has permissions to view where groupId = ? and code = ?.
|
static CalendarResource[] |
filterFindByGroupId_PrevAndNext(long calendarResourceId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the calendar resources before and after the current calendar resource in the ordered set of calendar resources that the user has permission to view where groupId = ?.
|
static java.util.List<CalendarResource> |
filterFindByGroupId(long groupId)
Returns all the calendar resources that the user has permission to view where groupId = ?.
|
static java.util.List<CalendarResource> |
filterFindByGroupId(long groupId,
int start,
int end)
Returns a range of all the calendar resources that the user has permission to view where groupId = ?.
|
static java.util.List<CalendarResource> |
filterFindByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns an ordered range of all the calendar resources that the user has permissions to view where groupId = ?.
|
static java.util.List<CalendarResource> |
findAll()
Returns all the calendar resources.
|
static java.util.List<CalendarResource> |
findAll(int start,
int end)
Returns a range of all the calendar resources.
|
static java.util.List<CalendarResource> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns an ordered range of all the calendar resources.
|
static java.util.List<CalendarResource> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendar resources.
|
static CalendarResource |
findByActive_First(boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where active = ?.
|
static CalendarResource |
findByActive_Last(boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where active = ?.
|
static CalendarResource[] |
findByActive_PrevAndNext(long calendarResourceId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the calendar resources before and after the current calendar resource in the ordered set where active = ?.
|
static java.util.List<CalendarResource> |
findByActive(boolean active)
Returns all the calendar resources where active = ?.
|
static java.util.List<CalendarResource> |
findByActive(boolean active,
int start,
int end)
Returns a range of all the calendar resources where active = ?.
|
static java.util.List<CalendarResource> |
findByActive(boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns an ordered range of all the calendar resources where active = ?.
|
static java.util.List<CalendarResource> |
findByActive(boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendar resources where active = ?.
|
static CalendarResource |
findByC_C_A_First(long companyId,
java.lang.String code,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where companyId = ? and code LIKE ? and active = ?.
|
static CalendarResource |
findByC_C_A_Last(long companyId,
java.lang.String code,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where companyId = ? and code LIKE ? and active = ?.
|
static CalendarResource[] |
findByC_C_A_PrevAndNext(long calendarResourceId,
long companyId,
java.lang.String code,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the calendar resources before and after the current calendar resource in the ordered set where companyId = ? and code LIKE ? and active = ?.
|
static java.util.List<CalendarResource> |
findByC_C_A(long companyId,
java.lang.String code,
boolean active)
Returns all the calendar resources where companyId = ? and code LIKE ? and active = ?.
|
static java.util.List<CalendarResource> |
findByC_C_A(long companyId,
java.lang.String code,
boolean active,
int start,
int end)
Returns a range of all the calendar resources where companyId = ? and code LIKE ? and active = ?.
|
static java.util.List<CalendarResource> |
findByC_C_A(long companyId,
java.lang.String code,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns an ordered range of all the calendar resources where companyId = ? and code LIKE ? and active = ?.
|
static java.util.List<CalendarResource> |
findByC_C_A(long companyId,
java.lang.String code,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendar resources where companyId = ? and code LIKE ? and active = ?.
|
static CalendarResource |
findByC_C(long classNameId,
long classPK)
Returns the calendar resource where classNameId = ? and classPK = ? or throws a
NoSuchResourceException if it could not be found. |
static CalendarResource |
findByG_A_First(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where groupId = ? and active = ?.
|
static CalendarResource |
findByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where groupId = ? and active = ?.
|
static CalendarResource[] |
findByG_A_PrevAndNext(long calendarResourceId,
long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the calendar resources before and after the current calendar resource in the ordered set where groupId = ? and active = ?.
|
static java.util.List<CalendarResource> |
findByG_A(long groupId,
boolean active)
Returns all the calendar resources where groupId = ? and active = ?.
|
static java.util.List<CalendarResource> |
findByG_A(long groupId,
boolean active,
int start,
int end)
Returns a range of all the calendar resources where groupId = ? and active = ?.
|
static java.util.List<CalendarResource> |
findByG_A(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns an ordered range of all the calendar resources where groupId = ? and active = ?.
|
static java.util.List<CalendarResource> |
findByG_A(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendar resources where groupId = ? and active = ?.
|
static CalendarResource |
findByG_C_First(long groupId,
java.lang.String code,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where groupId = ? and code = ?.
|
static CalendarResource |
findByG_C_Last(long groupId,
java.lang.String code,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where groupId = ? and code = ?.
|
static CalendarResource[] |
findByG_C_PrevAndNext(long calendarResourceId,
long groupId,
java.lang.String code,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the calendar resources before and after the current calendar resource in the ordered set where groupId = ? and code = ?.
|
static java.util.List<CalendarResource> |
findByG_C(long[] groupIds,
java.lang.String code)
Returns all the calendar resources where groupId = any ? and code = ?.
|
static java.util.List<CalendarResource> |
findByG_C(long[] groupIds,
java.lang.String code,
int start,
int end)
Returns a range of all the calendar resources where groupId = any ? and code = ?.
|
static java.util.List<CalendarResource> |
findByG_C(long[] groupIds,
java.lang.String code,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns an ordered range of all the calendar resources where groupId = any ? and code = ?.
|
static java.util.List<CalendarResource> |
findByG_C(long[] groupIds,
java.lang.String code,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendar resources where groupId = ? and code = ?, optionally using the finder cache.
|
static java.util.List<CalendarResource> |
findByG_C(long groupId,
java.lang.String code)
Returns all the calendar resources where groupId = ? and code = ?.
|
static java.util.List<CalendarResource> |
findByG_C(long groupId,
java.lang.String code,
int start,
int end)
Returns a range of all the calendar resources where groupId = ? and code = ?.
|
static java.util.List<CalendarResource> |
findByG_C(long groupId,
java.lang.String code,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns an ordered range of all the calendar resources where groupId = ? and code = ?.
|
static java.util.List<CalendarResource> |
findByG_C(long groupId,
java.lang.String code,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendar resources where groupId = ? and code = ?.
|
static CalendarResource |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where groupId = ?.
|
static CalendarResource |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where groupId = ?.
|
static CalendarResource[] |
findByGroupId_PrevAndNext(long calendarResourceId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the calendar resources before and after the current calendar resource in the ordered set where groupId = ?.
|
static java.util.List<CalendarResource> |
findByGroupId(long groupId)
Returns all the calendar resources where groupId = ?.
|
static java.util.List<CalendarResource> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the calendar resources where groupId = ?.
|
static java.util.List<CalendarResource> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns an ordered range of all the calendar resources where groupId = ?.
|
static java.util.List<CalendarResource> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendar resources where groupId = ?.
|
static CalendarResource |
findByPrimaryKey(long calendarResourceId)
Returns the calendar resource with the primary key or throws a
NoSuchResourceException if it could not be found. |
static CalendarResource |
findByResourceBlockId_First(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where resourceBlockId = ?.
|
static CalendarResource |
findByResourceBlockId_Last(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where resourceBlockId = ?.
|
static CalendarResource[] |
findByResourceBlockId_PrevAndNext(long calendarResourceId,
long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the calendar resources before and after the current calendar resource in the ordered set where resourceBlockId = ?.
|
static java.util.List<CalendarResource> |
findByResourceBlockId(long resourceBlockId)
Returns all the calendar resources where resourceBlockId = ?.
|
static java.util.List<CalendarResource> |
findByResourceBlockId(long resourceBlockId,
int start,
int end)
Returns a range of all the calendar resources where resourceBlockId = ?.
|
static java.util.List<CalendarResource> |
findByResourceBlockId(long resourceBlockId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns an ordered range of all the calendar resources where resourceBlockId = ?.
|
static java.util.List<CalendarResource> |
findByResourceBlockId(long resourceBlockId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendar resources where resourceBlockId = ?.
|
static CalendarResource |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where uuid = ? and companyId = ?.
|
static CalendarResource |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where uuid = ? and companyId = ?.
|
static CalendarResource[] |
findByUuid_C_PrevAndNext(long calendarResourceId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the calendar resources before and after the current calendar resource in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CalendarResource> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the calendar resources where uuid = ? and companyId = ?.
|
static java.util.List<CalendarResource> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the calendar resources where uuid = ? and companyId = ?.
|
static java.util.List<CalendarResource> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns an ordered range of all the calendar resources where uuid = ? and companyId = ?.
|
static java.util.List<CalendarResource> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendar resources where uuid = ? and companyId = ?.
|
static CalendarResource |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the first calendar resource in the ordered set where uuid = ?.
|
static CalendarResource |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the calendar resource where uuid = ? and groupId = ? or throws a
NoSuchResourceException if it could not be found. |
static CalendarResource |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the last calendar resource in the ordered set where uuid = ?.
|
static CalendarResource[] |
findByUuid_PrevAndNext(long calendarResourceId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns the calendar resources before and after the current calendar resource in the ordered set where uuid = ?.
|
static java.util.List<CalendarResource> |
findByUuid(java.lang.String uuid)
Returns all the calendar resources where uuid = ?.
|
static java.util.List<CalendarResource> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the calendar resources where uuid = ?.
|
static java.util.List<CalendarResource> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
Returns an ordered range of all the calendar resources where uuid = ?.
|
static java.util.List<CalendarResource> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendar resources where uuid = ?.
|
static java.util.List<CalendarResource> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CalendarResource> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CalendarResource> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static CalendarResourcePersistence |
getPersistence() |
static CalendarResource |
remove(long calendarResourceId)
Removes the calendar resource with the primary key from the database.
|
static void |
removeAll()
Removes all the calendar resources from the database.
|
static void |
removeByActive(boolean active)
Removes all the calendar resources where active = ? from the database.
|
static void |
removeByC_C_A(long companyId,
java.lang.String code,
boolean active)
Removes all the calendar resources where companyId = ? and code LIKE ? and active = ? from the database.
|
static CalendarResource |
removeByC_C(long classNameId,
long classPK)
Removes the calendar resource where classNameId = ? and classPK = ? from the database.
|
static void |
removeByG_A(long groupId,
boolean active)
Removes all the calendar resources where groupId = ? and active = ? from the database.
|
static void |
removeByG_C(long groupId,
java.lang.String code)
Removes all the calendar resources where groupId = ? and code = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the calendar resources where groupId = ? from the database.
|
static void |
removeByResourceBlockId(long resourceBlockId)
Removes all the calendar resources where resourceBlockId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the calendar resources where uuid = ? and companyId = ? from the database.
|
static CalendarResource |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the calendar resource where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the calendar resources where uuid = ? from the database.
|
static CalendarResource |
update(CalendarResource calendarResource) |
static CalendarResource |
update(CalendarResource calendarResource,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CalendarResource |
updateImpl(CalendarResource calendarResource) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CalendarResource calendarResource)
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<CalendarResource> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CalendarResource> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CalendarResource> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CalendarResource update(CalendarResource calendarResource)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CalendarResource update(CalendarResource calendarResource, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CalendarResource> findByResourceBlockId(long resourceBlockId)
resourceBlockId
- the resource block IDpublic static java.util.List<CalendarResource> 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 CalendarResourceModelImpl
. 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 calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)public static java.util.List<CalendarResource> findByResourceBlockId(long resourceBlockId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CalendarResource> findByResourceBlockId(long resourceBlockId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static CalendarResource findByResourceBlockId_First(long resourceBlockId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
resourceBlockId
- the resource block IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByResourceBlockId_First(long resourceBlockId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
resourceBlockId
- the resource block IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource findByResourceBlockId_Last(long resourceBlockId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
resourceBlockId
- the resource block IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByResourceBlockId_Last(long resourceBlockId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
resourceBlockId
- the resource block IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource[] findByResourceBlockId_PrevAndNext(long calendarResourceId, long resourceBlockId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
calendarResourceId
- the primary key of the current calendar resourceresourceBlockId
- the resource block IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a calendar resource 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<CalendarResource> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CalendarResource> 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 CalendarResourceModelImpl
. 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 calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)public static java.util.List<CalendarResource> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CalendarResource> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static CalendarResource findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource[] findByUuid_PrevAndNext(long calendarResourceId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
calendarResourceId
- the primary key of the current calendar resourceuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a calendar resource 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 CalendarResource findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchResourceException
NoSuchResourceException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource 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 resource could not be foundpublic static CalendarResource 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 resource could not be foundpublic static CalendarResource removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchResourceException
uuid
- the uuidgroupId
- the group IDNoSuchResourceException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<CalendarResource> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CalendarResource> 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 CalendarResourceModelImpl
. 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 calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)public static java.util.List<CalendarResource> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CalendarResource> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static CalendarResource findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource[] findByUuid_C_PrevAndNext(long calendarResourceId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
calendarResourceId
- the primary key of the current calendar resourceuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a calendar resource 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<CalendarResource> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<CalendarResource> findByGroupId(long groupId, 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 CalendarResourceModelImpl
. 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 IDstart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)public static java.util.List<CalendarResource> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 IDstart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CalendarResource> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 IDstart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static CalendarResource findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource[] findByGroupId_PrevAndNext(long calendarResourceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
calendarResourceId
- the primary key of the current calendar resourcegroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a calendar resource with the primary key could not be foundpublic static java.util.List<CalendarResource> filterFindByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<CalendarResource> filterFindByGroupId(long groupId, 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 CalendarResourceModelImpl
. 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 IDstart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)public static java.util.List<CalendarResource> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 IDstart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CalendarResource[] filterFindByGroupId_PrevAndNext(long calendarResourceId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
calendarResourceId
- the primary key of the current calendar resourcegroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a calendar resource with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static int filterCountByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<CalendarResource> findByActive(boolean active)
active
- the activepublic static java.util.List<CalendarResource> findByActive(boolean active, 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 CalendarResourceModelImpl
. 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.
active
- the activestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)public static java.util.List<CalendarResource> findByActive(boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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.
active
- the activestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CalendarResource> findByActive(boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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.
active
- the activestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static CalendarResource findByActive_First(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
active
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByActive_First(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
active
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource findByActive_Last(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
active
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByActive_Last(boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
active
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource[] findByActive_PrevAndNext(long calendarResourceId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
calendarResourceId
- the primary key of the current calendar resourceactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a calendar resource with the primary key could not be foundpublic static void removeByActive(boolean active)
active
- the activepublic static int countByActive(boolean active)
active
- the activepublic static java.util.List<CalendarResource> findByG_C(long groupId, java.lang.String code)
groupId
- the group IDcode
- the codepublic static java.util.List<CalendarResource> findByG_C(long groupId, java.lang.String code, 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 CalendarResourceModelImpl
. 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 IDcode
- the codestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)public static java.util.List<CalendarResource> findByG_C(long groupId, java.lang.String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 IDcode
- the codestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CalendarResource> findByG_C(long groupId, java.lang.String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 IDcode
- the codestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static CalendarResource findByG_C_First(long groupId, java.lang.String code, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
groupId
- the group IDcode
- the codeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByG_C_First(long groupId, java.lang.String code, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
groupId
- the group IDcode
- the codeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource findByG_C_Last(long groupId, java.lang.String code, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
groupId
- the group IDcode
- the codeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByG_C_Last(long groupId, java.lang.String code, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
groupId
- the group IDcode
- the codeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource[] findByG_C_PrevAndNext(long calendarResourceId, long groupId, java.lang.String code, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
calendarResourceId
- the primary key of the current calendar resourcegroupId
- the group IDcode
- the codeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a calendar resource with the primary key could not be foundpublic static java.util.List<CalendarResource> filterFindByG_C(long groupId, java.lang.String code)
groupId
- the group IDcode
- the codepublic static java.util.List<CalendarResource> filterFindByG_C(long groupId, java.lang.String code, 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 CalendarResourceModelImpl
. 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 IDcode
- the codestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)public static java.util.List<CalendarResource> filterFindByG_C(long groupId, java.lang.String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 IDcode
- the codestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CalendarResource[] filterFindByG_C_PrevAndNext(long calendarResourceId, long groupId, java.lang.String code, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
calendarResourceId
- the primary key of the current calendar resourcegroupId
- the group IDcode
- the codeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a calendar resource with the primary key could not be foundpublic static java.util.List<CalendarResource> filterFindByG_C(long[] groupIds, java.lang.String code)
groupIds
- the group IDscode
- the codepublic static java.util.List<CalendarResource> filterFindByG_C(long[] groupIds, java.lang.String code, 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 CalendarResourceModelImpl
. 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.
groupIds
- the group IDscode
- the codestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)public static java.util.List<CalendarResource> filterFindByG_C(long[] groupIds, java.lang.String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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.
groupIds
- the group IDscode
- the codestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CalendarResource> findByG_C(long[] groupIds, java.lang.String code)
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 CalendarResourceModelImpl
. 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.
groupIds
- the group IDscode
- the codepublic static java.util.List<CalendarResource> findByG_C(long[] groupIds, java.lang.String code, 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 CalendarResourceModelImpl
. 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.
groupIds
- the group IDscode
- the codestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)public static java.util.List<CalendarResource> findByG_C(long[] groupIds, java.lang.String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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.
groupIds
- the group IDscode
- the codestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CalendarResource> findByG_C(long[] groupIds, java.lang.String code, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 IDcode
- the codestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeByG_C(long groupId, java.lang.String code)
groupId
- the group IDcode
- the codepublic static int countByG_C(long groupId, java.lang.String code)
groupId
- the group IDcode
- the codepublic static int countByG_C(long[] groupIds, java.lang.String code)
groupIds
- the group IDscode
- the codepublic static int filterCountByG_C(long groupId, java.lang.String code)
groupId
- the group IDcode
- the codepublic static int filterCountByG_C(long[] groupIds, java.lang.String code)
groupIds
- the group IDscode
- the codepublic static java.util.List<CalendarResource> findByG_A(long groupId, boolean active)
groupId
- the group IDactive
- the activepublic static java.util.List<CalendarResource> findByG_A(long groupId, boolean active, 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 CalendarResourceModelImpl
. 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 IDactive
- the activestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)public static java.util.List<CalendarResource> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 IDactive
- the activestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CalendarResource> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 IDactive
- the activestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static CalendarResource findByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource findByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource[] findByG_A_PrevAndNext(long calendarResourceId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
calendarResourceId
- the primary key of the current calendar resourcegroupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a calendar resource with the primary key could not be foundpublic static java.util.List<CalendarResource> filterFindByG_A(long groupId, boolean active)
groupId
- the group IDactive
- the activepublic static java.util.List<CalendarResource> filterFindByG_A(long groupId, boolean active, 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 CalendarResourceModelImpl
. 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 IDactive
- the activestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)public static java.util.List<CalendarResource> filterFindByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 IDactive
- the activestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CalendarResource[] filterFindByG_A_PrevAndNext(long calendarResourceId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
calendarResourceId
- the primary key of the current calendar resourcegroupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a calendar resource with the primary key could not be foundpublic static void removeByG_A(long groupId, boolean active)
groupId
- the group IDactive
- the activepublic static int countByG_A(long groupId, boolean active)
groupId
- the group IDactive
- the activepublic static int filterCountByG_A(long groupId, boolean active)
groupId
- the group IDactive
- the activepublic static CalendarResource findByC_C(long classNameId, long classPK) throws NoSuchResourceException
NoSuchResourceException
if it could not be found.classNameId
- the class name IDclassPK
- the class pkNoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByC_C(long classNameId, long classPK)
null
if it could not be found. Uses the finder cache.classNameId
- the class name IDclassPK
- the class pknull
if a matching calendar resource could not be foundpublic static CalendarResource fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.classNameId
- the class name IDclassPK
- the class pkretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching calendar resource could not be foundpublic static CalendarResource removeByC_C(long classNameId, long classPK) throws NoSuchResourceException
classNameId
- the class name IDclassPK
- the class pkNoSuchResourceException
public static int countByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static java.util.List<CalendarResource> findByC_C_A(long companyId, java.lang.String code, boolean active)
companyId
- the company IDcode
- the codeactive
- the activepublic static java.util.List<CalendarResource> findByC_C_A(long companyId, java.lang.String code, boolean active, 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 CalendarResourceModelImpl
. 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.
companyId
- the company IDcode
- the codeactive
- the activestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)public static java.util.List<CalendarResource> findByC_C_A(long companyId, java.lang.String code, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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.
companyId
- the company IDcode
- the codeactive
- the activestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CalendarResource> findByC_C_A(long companyId, java.lang.String code, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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.
companyId
- the company IDcode
- the codeactive
- the activestart
- the lower bound of the range of calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static CalendarResource findByC_C_A_First(long companyId, java.lang.String code, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
companyId
- the company IDcode
- the codeactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByC_C_A_First(long companyId, java.lang.String code, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
companyId
- the company IDcode
- the codeactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource findByC_C_A_Last(long companyId, java.lang.String code, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
companyId
- the company IDcode
- the codeactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a matching calendar resource could not be foundpublic static CalendarResource fetchByC_C_A_Last(long companyId, java.lang.String code, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator)
companyId
- the company IDcode
- the codeactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar resource could not be foundpublic static CalendarResource[] findByC_C_A_PrevAndNext(long calendarResourceId, long companyId, java.lang.String code, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> orderByComparator) throws NoSuchResourceException
calendarResourceId
- the primary key of the current calendar resourcecompanyId
- the company IDcode
- the codeactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceException
- if a calendar resource with the primary key could not be foundpublic static void removeByC_C_A(long companyId, java.lang.String code, boolean active)
companyId
- the company IDcode
- the codeactive
- the activepublic static int countByC_C_A(long companyId, java.lang.String code, boolean active)
companyId
- the company IDcode
- the codeactive
- the activepublic static void cacheResult(CalendarResource calendarResource)
calendarResource
- the calendar resourcepublic static void cacheResult(java.util.List<CalendarResource> calendarResources)
calendarResources
- the calendar resourcespublic static CalendarResource create(long calendarResourceId)
calendarResourceId
- the primary key for the new calendar resourcepublic static CalendarResource remove(long calendarResourceId) throws NoSuchResourceException
calendarResourceId
- the primary key of the calendar resourceNoSuchResourceException
- if a calendar resource with the primary key could not be foundpublic static CalendarResource updateImpl(CalendarResource calendarResource)
public static CalendarResource findByPrimaryKey(long calendarResourceId) throws NoSuchResourceException
NoSuchResourceException
if it could not be found.calendarResourceId
- the primary key of the calendar resourceNoSuchResourceException
- if a calendar resource with the primary key could not be foundpublic static CalendarResource fetchByPrimaryKey(long calendarResourceId)
null
if it could not be found.calendarResourceId
- the primary key of the calendar resourcenull
if a calendar resource with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,CalendarResource> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<CalendarResource> findAll()
public static java.util.List<CalendarResource> 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 CalendarResourceModelImpl
. 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 calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)public static java.util.List<CalendarResource> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 calendar resourcesend
- the upper bound of the range of calendar resources (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CalendarResource> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarResource> 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 CalendarResourceModelImpl
. 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 calendar resourcesend
- the upper bound of the range of calendar resources (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 CalendarResourcePersistence getPersistence()