Liferay 6.0.5

com.liferay.portlet.calendar.service.persistence
Class CalEventUtil

java.lang.Object
  extended by com.liferay.portlet.calendar.service.persistence.CalEventUtil

public class CalEventUtil
extends Object

The persistence utility for the cal event service. This utility wraps CalEventPersistenceImpl 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.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
CalEventPersistence, CalEventPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
CalEventUtil()
           
 
Method Summary
static void cacheResult(CalEvent calEvent)
          Caches the cal event in the entity cache if it is enabled.
static void cacheResult(List<CalEvent> calEvents)
          Caches the cal events in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(CalEvent calEvent)
           
static int countAll()
          Counts all the cal events.
static int countByCompanyId(long companyId)
          Counts all the cal events where companyId = ?.
static int countByG_R(long groupId, boolean repeating)
          Counts all the cal events where groupId = ? and repeating = ?.
static int countByG_T(long groupId, String type)
          Counts all the cal events where groupId = ? and type = ?.
static int countByGroupId(long groupId)
          Counts all the cal events where groupId = ?.
static int countByNotRemindBy(int remindBy)
          Counts all the cal events where remindBy ≠ ?.
static int countByUUID_G(String uuid, long groupId)
          Counts all the cal events where uuid = ? and groupId = ?.
static int countByUuid(String uuid)
          Counts all the cal events where uuid = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static CalEvent create(long eventId)
          Creates a new cal event with the primary key.
static CalEvent fetchByPrimaryKey(long eventId)
          Finds the cal event with the primary key or returns null if it could not be found.
static CalEvent fetchByUUID_G(String uuid, long groupId)
          Finds the cal event where uuid = ? and groupId = ? or returns null if it could not be found.
static CalEvent fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Finds the cal event where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
static int filterCountByG_R(long groupId, boolean repeating)
          Filters by the user's permissions and counts all the cal events where groupId = ? and repeating = ?.
static int filterCountByG_T(long groupId, String type)
          Filters by the user's permissions and counts all the cal events where groupId = ? and type = ?.
static int filterCountByGroupId(long groupId)
          Filters by the user's permissions and counts all the cal events where groupId = ?.
static List<CalEvent> filterFindByG_R(long groupId, boolean repeating)
          Filters by the user's permissions and finds all the cal events where groupId = ? and repeating = ?.
static List<CalEvent> filterFindByG_R(long groupId, boolean repeating, int start, int end)
          Filters by the user's permissions and finds a range of all the cal events where groupId = ? and repeating = ?.
static List<CalEvent> filterFindByG_R(long groupId, boolean repeating, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the cal events where groupId = ? and repeating = ?.
static List<CalEvent> filterFindByG_T(long groupId, String type)
          Filters by the user's permissions and finds all the cal events where groupId = ? and type = ?.
static List<CalEvent> filterFindByG_T(long groupId, String type, int start, int end)
          Filters by the user's permissions and finds a range of all the cal events where groupId = ? and type = ?.
static List<CalEvent> filterFindByG_T(long groupId, String type, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the cal events where groupId = ? and type = ?.
static List<CalEvent> filterFindByGroupId(long groupId)
          Filters by the user's permissions and finds all the cal events where groupId = ?.
static List<CalEvent> filterFindByGroupId(long groupId, int start, int end)
          Filters by the user's permissions and finds a range of all the cal events where groupId = ?.
static List<CalEvent> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the cal events where groupId = ?.
static List<CalEvent> findAll()
          Finds all the cal events.
static List<CalEvent> findAll(int start, int end)
          Finds a range of all the cal events.
static List<CalEvent> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the cal events.
static CalEvent findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first cal event in the ordered set where companyId = ?.
static CalEvent findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last cal event in the ordered set where companyId = ?.
static CalEvent[] findByCompanyId_PrevAndNext(long eventId, long companyId, OrderByComparator orderByComparator)
          Finds the cal events before and after the current cal event in the ordered set where companyId = ?.
static List<CalEvent> findByCompanyId(long companyId)
          Finds all the cal events where companyId = ?.
static List<CalEvent> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the cal events where companyId = ?.
static List<CalEvent> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the cal events where companyId = ?.
static CalEvent findByG_R_First(long groupId, boolean repeating, OrderByComparator orderByComparator)
          Finds the first cal event in the ordered set where groupId = ? and repeating = ?.
static CalEvent findByG_R_Last(long groupId, boolean repeating, OrderByComparator orderByComparator)
          Finds the last cal event in the ordered set where groupId = ? and repeating = ?.
static CalEvent[] findByG_R_PrevAndNext(long eventId, long groupId, boolean repeating, OrderByComparator orderByComparator)
          Finds the cal events before and after the current cal event in the ordered set where groupId = ? and repeating = ?.
static List<CalEvent> findByG_R(long groupId, boolean repeating)
          Finds all the cal events where groupId = ? and repeating = ?.
static List<CalEvent> findByG_R(long groupId, boolean repeating, int start, int end)
          Finds a range of all the cal events where groupId = ? and repeating = ?.
static List<CalEvent> findByG_R(long groupId, boolean repeating, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the cal events where groupId = ? and repeating = ?.
static CalEvent findByG_T_First(long groupId, String type, OrderByComparator orderByComparator)
          Finds the first cal event in the ordered set where groupId = ? and type = ?.
static CalEvent findByG_T_Last(long groupId, String type, OrderByComparator orderByComparator)
          Finds the last cal event in the ordered set where groupId = ? and type = ?.
static CalEvent[] findByG_T_PrevAndNext(long eventId, long groupId, String type, OrderByComparator orderByComparator)
          Finds the cal events before and after the current cal event in the ordered set where groupId = ? and type = ?.
static List<CalEvent> findByG_T(long groupId, String type)
          Finds all the cal events where groupId = ? and type = ?.
static List<CalEvent> findByG_T(long groupId, String type, int start, int end)
          Finds a range of all the cal events where groupId = ? and type = ?.
static List<CalEvent> findByG_T(long groupId, String type, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the cal events where groupId = ? and type = ?.
static CalEvent findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first cal event in the ordered set where groupId = ?.
static CalEvent findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last cal event in the ordered set where groupId = ?.
static CalEvent[] findByGroupId_PrevAndNext(long eventId, long groupId, OrderByComparator orderByComparator)
          Finds the cal events before and after the current cal event in the ordered set where groupId = ?.
static List<CalEvent> findByGroupId(long groupId)
          Finds all the cal events where groupId = ?.
static List<CalEvent> findByGroupId(long groupId, int start, int end)
          Finds a range of all the cal events where groupId = ?.
static List<CalEvent> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the cal events where groupId = ?.
static CalEvent findByNotRemindBy_First(int remindBy, OrderByComparator orderByComparator)
          Finds the first cal event in the ordered set where remindBy ≠ ?.
static CalEvent findByNotRemindBy_Last(int remindBy, OrderByComparator orderByComparator)
          Finds the last cal event in the ordered set where remindBy ≠ ?.
static CalEvent[] findByNotRemindBy_PrevAndNext(long eventId, int remindBy, OrderByComparator orderByComparator)
          Finds the cal events before and after the current cal event in the ordered set where remindBy ≠ ?.
static List<CalEvent> findByNotRemindBy(int remindBy)
          Finds all the cal events where remindBy ≠ ?.
static List<CalEvent> findByNotRemindBy(int remindBy, int start, int end)
          Finds a range of all the cal events where remindBy ≠ ?.
static List<CalEvent> findByNotRemindBy(int remindBy, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the cal events where remindBy ≠ ?.
static CalEvent findByPrimaryKey(long eventId)
          Finds the cal event with the primary key or throws a NoSuchEventException if it could not be found.
static CalEvent findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Finds the first cal event in the ordered set where uuid = ?.
static CalEvent findByUUID_G(String uuid, long groupId)
          Finds the cal event where uuid = ? and groupId = ? or throws a NoSuchEventException if it could not be found.
static CalEvent findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Finds the last cal event in the ordered set where uuid = ?.
static CalEvent[] findByUuid_PrevAndNext(long eventId, String uuid, OrderByComparator orderByComparator)
          Finds the cal events before and after the current cal event in the ordered set where uuid = ?.
static List<CalEvent> findByUuid(String uuid)
          Finds all the cal events where uuid = ?.
static List<CalEvent> findByUuid(String uuid, int start, int end)
          Finds a range of all the cal events where uuid = ?.
static List<CalEvent> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the cal events where uuid = ?.
static List<CalEvent> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<CalEvent> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<CalEvent> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static CalEventPersistence getPersistence()
           
static CalEvent remove(CalEvent calEvent)
           
static CalEvent remove(long eventId)
          Removes the cal event with the primary key from the database.
static void removeAll()
          Removes all the cal events from the database.
static void removeByCompanyId(long companyId)
          Removes all the cal events where companyId = ? from the database.
static void removeByG_R(long groupId, boolean repeating)
          Removes all the cal events where groupId = ? and repeating = ? from the database.
static void removeByG_T(long groupId, String type)
          Removes all the cal events where groupId = ? and type = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the cal events where groupId = ? from the database.
static void removeByNotRemindBy(int remindBy)
          Removes all the cal events where remindBy ≠ ? from the database.
static void removeByUUID_G(String uuid, long groupId)
          Removes the cal event where uuid = ? and groupId = ? from the database.
static void removeByUuid(String uuid)
          Removes all the cal events where uuid = ? from the database.
 void setPersistence(CalEventPersistence persistence)
           
static CalEvent update(CalEvent calEvent, boolean merge)
           
static CalEvent update(CalEvent calEvent, boolean merge, ServiceContext serviceContext)
           
static CalEvent updateImpl(CalEvent calEvent, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalEventUtil

public CalEventUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(CalEvent calEvent)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<CalEvent> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<CalEvent> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                  int start,
                                                  int end)
                                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<CalEvent> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                  int start,
                                                  int end,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static CalEvent remove(CalEvent calEvent)
                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static CalEvent update(CalEvent calEvent,
                              boolean merge)
                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static CalEvent update(CalEvent calEvent,
                              boolean merge,
                              ServiceContext serviceContext)
                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(CalEvent calEvent)
Caches the cal event in the entity cache if it is enabled.

Parameters:
calEvent - the cal event to cache

cacheResult

public static void cacheResult(List<CalEvent> calEvents)
Caches the cal events in the entity cache if it is enabled.

Parameters:
calEvents - the cal events to cache

create

public static CalEvent create(long eventId)
Creates a new cal event with the primary key. Does not add the cal event to the database.

Parameters:
eventId - the primary key for the new cal event
Returns:
the new cal event

remove

public static CalEvent remove(long eventId)
                       throws SystemException,
                              NoSuchEventException
Removes the cal event with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
eventId - the primary key of the cal event to remove
Returns:
the cal event that was removed
Throws:
NoSuchEventException - if a cal event with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static CalEvent updateImpl(CalEvent calEvent,
                                  boolean merge)
                           throws SystemException
Throws:
SystemException

findByPrimaryKey

public static CalEvent findByPrimaryKey(long eventId)
                                 throws SystemException,
                                        NoSuchEventException
Finds the cal event with the primary key or throws a NoSuchEventException if it could not be found.

Parameters:
eventId - the primary key of the cal event to find
Returns:
the cal event
Throws:
NoSuchEventException - if a cal event with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static CalEvent fetchByPrimaryKey(long eventId)
                                  throws SystemException
Finds the cal event with the primary key or returns null if it could not be found.

Parameters:
eventId - the primary key of the cal event to find
Returns:
the cal event, or null if a cal event with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<CalEvent> findByUuid(String uuid)
                                 throws SystemException
Finds all the cal events where uuid = ?.

Parameters:
uuid - the uuid to search with
Returns:
the matching cal events
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<CalEvent> findByUuid(String uuid,
                                        int start,
                                        int end)
                                 throws SystemException
Finds a range of all the cal events where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
uuid - the uuid to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
Returns:
the range of matching cal events
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<CalEvent> findByUuid(String uuid,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Finds an ordered range of all the cal events where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
uuid - the uuid to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching cal events
Throws:
SystemException - if a system exception occurred

findByUuid_First

public static CalEvent findByUuid_First(String uuid,
                                        OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchEventException
Finds the first cal event in the ordered set where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching cal event
Throws:
NoSuchEventException - if a matching cal event could not be found
SystemException - if a system exception occurred

findByUuid_Last

public static CalEvent findByUuid_Last(String uuid,
                                       OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchEventException
Finds the last cal event in the ordered set where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching cal event
Throws:
NoSuchEventException - if a matching cal event could not be found
SystemException - if a system exception occurred

findByUuid_PrevAndNext

public static CalEvent[] findByUuid_PrevAndNext(long eventId,
                                                String uuid,
                                                OrderByComparator orderByComparator)
                                         throws SystemException,
                                                NoSuchEventException
Finds the cal events before and after the current cal event in the ordered set where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
eventId - the primary key of the current cal event
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next cal event
Throws:
NoSuchEventException - if a cal event with the primary key could not be found
SystemException - if a system exception occurred

findByUUID_G

public static CalEvent findByUUID_G(String uuid,
                                    long groupId)
                             throws SystemException,
                                    NoSuchEventException
Finds the cal event where uuid = ? and groupId = ? or throws a NoSuchEventException if it could not be found.

Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the matching cal event
Throws:
NoSuchEventException - if a matching cal event could not be found
SystemException - if a system exception occurred

fetchByUUID_G

public static CalEvent fetchByUUID_G(String uuid,
                                     long groupId)
                              throws SystemException
Finds the cal event where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the matching cal event, or null if a matching cal event could not be found
Throws:
SystemException - if a system exception occurred

fetchByUUID_G

public static CalEvent fetchByUUID_G(String uuid,
                                     long groupId,
                                     boolean retrieveFromCache)
                              throws SystemException
Finds the cal event where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the matching cal event, or null if a matching cal event could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<CalEvent> findByCompanyId(long companyId)
                                      throws SystemException
Finds all the cal events where companyId = ?.

Parameters:
companyId - the company id to search with
Returns:
the matching cal events
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<CalEvent> findByCompanyId(long companyId,
                                             int start,
                                             int end)
                                      throws SystemException
Finds a range of all the cal events where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
Returns:
the range of matching cal events
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<CalEvent> findByCompanyId(long companyId,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Finds an ordered range of all the cal events where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching cal events
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

public static CalEvent findByCompanyId_First(long companyId,
                                             OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchEventException
Finds the first cal event in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching cal event
Throws:
NoSuchEventException - if a matching cal event could not be found
SystemException - if a system exception occurred

findByCompanyId_Last

public static CalEvent findByCompanyId_Last(long companyId,
                                            OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchEventException
Finds the last cal event in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching cal event
Throws:
NoSuchEventException - if a matching cal event could not be found
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public static CalEvent[] findByCompanyId_PrevAndNext(long eventId,
                                                     long companyId,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchEventException
Finds the cal events before and after the current cal event in the ordered set where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
eventId - the primary key of the current cal event
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next cal event
Throws:
NoSuchEventException - if a cal event with the primary key could not be found
SystemException - if a system exception occurred

findByGroupId

public static List<CalEvent> findByGroupId(long groupId)
                                    throws SystemException
Finds all the cal events where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching cal events
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<CalEvent> findByGroupId(long groupId,
                                           int start,
                                           int end)
                                    throws SystemException
Finds a range of all the cal events where groupId = ?.

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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
Returns:
the range of matching cal events
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<CalEvent> findByGroupId(long groupId,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Finds an ordered range of all the cal events where groupId = ?.

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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching cal events
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public static CalEvent findByGroupId_First(long groupId,
                                           OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchEventException
Finds the first cal event in the ordered set where groupId = ?.

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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching cal event
Throws:
NoSuchEventException - if a matching cal event could not be found
SystemException - if a system exception occurred

findByGroupId_Last

public static CalEvent findByGroupId_Last(long groupId,
                                          OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchEventException
Finds the last cal event in the ordered set where groupId = ?.

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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching cal event
Throws:
NoSuchEventException - if a matching cal event could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public static CalEvent[] findByGroupId_PrevAndNext(long eventId,
                                                   long groupId,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchEventException
Finds the cal events before and after the current cal event in the ordered set where groupId = ?.

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.

Parameters:
eventId - the primary key of the current cal event
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next cal event
Throws:
NoSuchEventException - if a cal event with the primary key could not be found
SystemException - if a system exception occurred

filterFindByGroupId

public static List<CalEvent> filterFindByGroupId(long groupId)
                                          throws SystemException
Filters by the user's permissions and finds all the cal events where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching cal events that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<CalEvent> filterFindByGroupId(long groupId,
                                                 int start,
                                                 int end)
                                          throws SystemException
Filters by the user's permissions and finds a range of all the cal events where groupId = ?.

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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
Returns:
the range of matching cal events that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public static List<CalEvent> filterFindByGroupId(long groupId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Filters by the user's permissions and finds an ordered range of all the cal events where groupId = ?.

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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching cal events that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByNotRemindBy

public static List<CalEvent> findByNotRemindBy(int remindBy)
                                        throws SystemException
Finds all the cal events where remindBy ≠ ?.

Parameters:
remindBy - the remind by to search with
Returns:
the matching cal events
Throws:
SystemException - if a system exception occurred

findByNotRemindBy

public static List<CalEvent> findByNotRemindBy(int remindBy,
                                               int start,
                                               int end)
                                        throws SystemException
Finds a range of all the cal events where remindBy ≠ ?.

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.

Parameters:
remindBy - the remind by to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
Returns:
the range of matching cal events
Throws:
SystemException - if a system exception occurred

findByNotRemindBy

public static List<CalEvent> findByNotRemindBy(int remindBy,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Finds an ordered range of all the cal events where remindBy ≠ ?.

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.

Parameters:
remindBy - the remind by to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching cal events
Throws:
SystemException - if a system exception occurred

findByNotRemindBy_First

public static CalEvent findByNotRemindBy_First(int remindBy,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchEventException
Finds the first cal event in the ordered set where remindBy ≠ ?.

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.

Parameters:
remindBy - the remind by to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching cal event
Throws:
NoSuchEventException - if a matching cal event could not be found
SystemException - if a system exception occurred

findByNotRemindBy_Last

public static CalEvent findByNotRemindBy_Last(int remindBy,
                                              OrderByComparator orderByComparator)
                                       throws SystemException,
                                              NoSuchEventException
Finds the last cal event in the ordered set where remindBy ≠ ?.

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.

Parameters:
remindBy - the remind by to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching cal event
Throws:
NoSuchEventException - if a matching cal event could not be found
SystemException - if a system exception occurred

findByNotRemindBy_PrevAndNext

public static CalEvent[] findByNotRemindBy_PrevAndNext(long eventId,
                                                       int remindBy,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       NoSuchEventException
Finds the cal events before and after the current cal event in the ordered set where remindBy ≠ ?.

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.

Parameters:
eventId - the primary key of the current cal event
remindBy - the remind by to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next cal event
Throws:
NoSuchEventException - if a cal event with the primary key could not be found
SystemException - if a system exception occurred

findByG_T

public static List<CalEvent> findByG_T(long groupId,
                                       String type)
                                throws SystemException
Finds all the cal events where groupId = ? and type = ?.

Parameters:
groupId - the group id to search with
type - the type to search with
Returns:
the matching cal events
Throws:
SystemException - if a system exception occurred

findByG_T

public static List<CalEvent> findByG_T(long groupId,
                                       String type,
                                       int start,
                                       int end)
                                throws SystemException
Finds a range of all the cal events where groupId = ? and type = ?.

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.

Parameters:
groupId - the group id to search with
type - the type to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
Returns:
the range of matching cal events
Throws:
SystemException - if a system exception occurred

findByG_T

public static List<CalEvent> findByG_T(long groupId,
                                       String type,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Finds an ordered range of all the cal events where groupId = ? and type = ?.

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.

Parameters:
groupId - the group id to search with
type - the type to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching cal events
Throws:
SystemException - if a system exception occurred

findByG_T_First

public static CalEvent findByG_T_First(long groupId,
                                       String type,
                                       OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchEventException
Finds the first cal event in the ordered set where groupId = ? and type = ?.

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.

Parameters:
groupId - the group id to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching cal event
Throws:
NoSuchEventException - if a matching cal event could not be found
SystemException - if a system exception occurred

findByG_T_Last

public static CalEvent findByG_T_Last(long groupId,
                                      String type,
                                      OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchEventException
Finds the last cal event in the ordered set where groupId = ? and type = ?.

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.

Parameters:
groupId - the group id to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching cal event
Throws:
NoSuchEventException - if a matching cal event could not be found
SystemException - if a system exception occurred

findByG_T_PrevAndNext

public static CalEvent[] findByG_T_PrevAndNext(long eventId,
                                               long groupId,
                                               String type,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchEventException
Finds the cal events before and after the current cal event in the ordered set where groupId = ? and type = ?.

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.

Parameters:
eventId - the primary key of the current cal event
groupId - the group id to search with
type - the type to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next cal event
Throws:
NoSuchEventException - if a cal event with the primary key could not be found
SystemException - if a system exception occurred

filterFindByG_T

public static List<CalEvent> filterFindByG_T(long groupId,
                                             String type)
                                      throws SystemException
Filters by the user's permissions and finds all the cal events where groupId = ? and type = ?.

Parameters:
groupId - the group id to search with
type - the type to search with
Returns:
the matching cal events that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_T

public static List<CalEvent> filterFindByG_T(long groupId,
                                             String type,
                                             int start,
                                             int end)
                                      throws SystemException
Filters by the user's permissions and finds a range of all the cal events where groupId = ? and type = ?.

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.

Parameters:
groupId - the group id to search with
type - the type to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
Returns:
the range of matching cal events that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_T

public static List<CalEvent> filterFindByG_T(long groupId,
                                             String type,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Filters by the user's permissions and finds an ordered range of all the cal events where groupId = ? and type = ?.

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.

Parameters:
groupId - the group id to search with
type - the type to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching cal events that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByG_R

public static List<CalEvent> findByG_R(long groupId,
                                       boolean repeating)
                                throws SystemException
Finds all the cal events where groupId = ? and repeating = ?.

Parameters:
groupId - the group id to search with
repeating - the repeating to search with
Returns:
the matching cal events
Throws:
SystemException - if a system exception occurred

findByG_R

public static List<CalEvent> findByG_R(long groupId,
                                       boolean repeating,
                                       int start,
                                       int end)
                                throws SystemException
Finds a range of all the cal events where groupId = ? and repeating = ?.

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.

Parameters:
groupId - the group id to search with
repeating - the repeating to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
Returns:
the range of matching cal events
Throws:
SystemException - if a system exception occurred

findByG_R

public static List<CalEvent> findByG_R(long groupId,
                                       boolean repeating,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Finds an ordered range of all the cal events where groupId = ? and repeating = ?.

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.

Parameters:
groupId - the group id to search with
repeating - the repeating to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching cal events
Throws:
SystemException - if a system exception occurred

findByG_R_First

public static CalEvent findByG_R_First(long groupId,
                                       boolean repeating,
                                       OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchEventException
Finds the first cal event in the ordered set where groupId = ? and repeating = ?.

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.

Parameters:
groupId - the group id to search with
repeating - the repeating to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching cal event
Throws:
NoSuchEventException - if a matching cal event could not be found
SystemException - if a system exception occurred

findByG_R_Last

public static CalEvent findByG_R_Last(long groupId,
                                      boolean repeating,
                                      OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchEventException
Finds the last cal event in the ordered set where groupId = ? and repeating = ?.

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.

Parameters:
groupId - the group id to search with
repeating - the repeating to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching cal event
Throws:
NoSuchEventException - if a matching cal event could not be found
SystemException - if a system exception occurred

findByG_R_PrevAndNext

public static CalEvent[] findByG_R_PrevAndNext(long eventId,
                                               long groupId,
                                               boolean repeating,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchEventException
Finds the cal events before and after the current cal event in the ordered set where groupId = ? and repeating = ?.

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.

Parameters:
eventId - the primary key of the current cal event
groupId - the group id to search with
repeating - the repeating to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next cal event
Throws:
NoSuchEventException - if a cal event with the primary key could not be found
SystemException - if a system exception occurred

filterFindByG_R

public static List<CalEvent> filterFindByG_R(long groupId,
                                             boolean repeating)
                                      throws SystemException
Filters by the user's permissions and finds all the cal events where groupId = ? and repeating = ?.

Parameters:
groupId - the group id to search with
repeating - the repeating to search with
Returns:
the matching cal events that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_R

public static List<CalEvent> filterFindByG_R(long groupId,
                                             boolean repeating,
                                             int start,
                                             int end)
                                      throws SystemException
Filters by the user's permissions and finds a range of all the cal events where groupId = ? and repeating = ?.

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.

Parameters:
groupId - the group id to search with
repeating - the repeating to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
Returns:
the range of matching cal events that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_R

public static List<CalEvent> filterFindByG_R(long groupId,
                                             boolean repeating,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Filters by the user's permissions and finds an ordered range of all the cal events where groupId = ? and repeating = ?.

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.

Parameters:
groupId - the group id to search with
repeating - the repeating to search with
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching cal events that the user has permission to view
Throws:
SystemException - if a system exception occurred

findAll

public static List<CalEvent> findAll()
                              throws SystemException
Finds all the cal events.

Returns:
the cal events
Throws:
SystemException - if a system exception occurred

findAll

public static List<CalEvent> findAll(int start,
                                     int end)
                              throws SystemException
Finds a range of all the cal events.

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.

Parameters:
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
Returns:
the range of cal events
Throws:
SystemException - if a system exception occurred

findAll

public static List<CalEvent> findAll(int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Finds an ordered range of all the cal events.

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.

Parameters:
start - the lower bound of the range of cal events to return
end - the upper bound of the range of cal events to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of cal events
Throws:
SystemException - if a system exception occurred

removeByUuid

public static void removeByUuid(String uuid)
                         throws SystemException
Removes all the cal events where uuid = ? from the database.

Parameters:
uuid - the uuid to search with
Throws:
SystemException - if a system exception occurred

removeByUUID_G

public static void removeByUUID_G(String uuid,
                                  long groupId)
                           throws SystemException,
                                  NoSuchEventException
Removes the cal event where uuid = ? and groupId = ? from the database.

Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred
NoSuchEventException

removeByCompanyId

public static void removeByCompanyId(long companyId)
                              throws SystemException
Removes all the cal events where companyId = ? from the database.

Parameters:
companyId - the company id to search with
Throws:
SystemException - if a system exception occurred

removeByGroupId

public static void removeByGroupId(long groupId)
                            throws SystemException
Removes all the cal events where groupId = ? from the database.

Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByNotRemindBy

public static void removeByNotRemindBy(int remindBy)
                                throws SystemException
Removes all the cal events where remindBy ≠ ? from the database.

Parameters:
remindBy - the remind by to search with
Throws:
SystemException - if a system exception occurred

removeByG_T

public static void removeByG_T(long groupId,
                               String type)
                        throws SystemException
Removes all the cal events where groupId = ? and type = ? from the database.

Parameters:
groupId - the group id to search with
type - the type to search with
Throws:
SystemException - if a system exception occurred

removeByG_R

public static void removeByG_R(long groupId,
                               boolean repeating)
                        throws SystemException
Removes all the cal events where groupId = ? and repeating = ? from the database.

Parameters:
groupId - the group id to search with
repeating - the repeating to search with
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the cal events from the database.

Throws:
SystemException - if a system exception occurred

countByUuid

public static int countByUuid(String uuid)
                       throws SystemException
Counts all the cal events where uuid = ?.

Parameters:
uuid - the uuid to search with
Returns:
the number of matching cal events
Throws:
SystemException - if a system exception occurred

countByUUID_G

public static int countByUUID_G(String uuid,
                                long groupId)
                         throws SystemException
Counts all the cal events where uuid = ? and groupId = ?.

Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the number of matching cal events
Throws:
SystemException - if a system exception occurred

countByCompanyId

public static int countByCompanyId(long companyId)
                            throws SystemException
Counts all the cal events where companyId = ?.

Parameters:
companyId - the company id to search with
Returns:
the number of matching cal events
Throws:
SystemException - if a system exception occurred

countByGroupId

public static int countByGroupId(long groupId)
                          throws SystemException
Counts all the cal events where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching cal events
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

public static int filterCountByGroupId(long groupId)
                                throws SystemException
Filters by the user's permissions and counts all the cal events where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching cal events that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByNotRemindBy

public static int countByNotRemindBy(int remindBy)
                              throws SystemException
Counts all the cal events where remindBy ≠ ?.

Parameters:
remindBy - the remind by to search with
Returns:
the number of matching cal events
Throws:
SystemException - if a system exception occurred

countByG_T

public static int countByG_T(long groupId,
                             String type)
                      throws SystemException
Counts all the cal events where groupId = ? and type = ?.

Parameters:
groupId - the group id to search with
type - the type to search with
Returns:
the number of matching cal events
Throws:
SystemException - if a system exception occurred

filterCountByG_T

public static int filterCountByG_T(long groupId,
                                   String type)
                            throws SystemException
Filters by the user's permissions and counts all the cal events where groupId = ? and type = ?.

Parameters:
groupId - the group id to search with
type - the type to search with
Returns:
the number of matching cal events that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByG_R

public static int countByG_R(long groupId,
                             boolean repeating)
                      throws SystemException
Counts all the cal events where groupId = ? and repeating = ?.

Parameters:
groupId - the group id to search with
repeating - the repeating to search with
Returns:
the number of matching cal events
Throws:
SystemException - if a system exception occurred

filterCountByG_R

public static int filterCountByG_R(long groupId,
                                   boolean repeating)
                            throws SystemException
Filters by the user's permissions and counts all the cal events where groupId = ? and repeating = ?.

Parameters:
groupId - the group id to search with
repeating - the repeating to search with
Returns:
the number of matching cal events that the user has permission to view
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Counts all the cal events.

Returns:
the number of cal events
Throws:
SystemException - if a system exception occurred

getPersistence

public static CalEventPersistence getPersistence()

setPersistence

public void setPersistence(CalEventPersistence persistence)

Liferay 6.0.5