Liferay 6.0.5

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<CalEvent>
      extended by com.liferay.portlet.calendar.service.persistence.CalEventPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<CalEvent>, CalEventPersistence

public class CalEventPersistenceImpl
extends BasePersistenceImpl<CalEvent>
implements CalEventPersistence

The persistence implementation for the cal event service.

Never modify or reference this class directly. Always use CalEventUtil to access the cal event persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

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

Field Summary
protected  AssetEntryPersistence assetEntryPersistence
           
protected  AssetTagPersistence assetTagPersistence
           
protected  CalEventPersistence calEventPersistence
           
protected  CompanyPersistence companyPersistence
           
protected  ExpandoValuePersistence expandoValuePersistence
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_G_R
           
static FinderPath FINDER_PATH_COUNT_BY_G_T
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_NOTREMINDBY
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_G
           
static FinderPath FINDER_PATH_FETCH_BY_UUID_G
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_FIND_BY_G_R
           
static FinderPath FINDER_PATH_FIND_BY_G_T
           
static FinderPath FINDER_PATH_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_FIND_BY_NOTREMINDBY
           
static FinderPath FINDER_PATH_FIND_BY_UUID
           
protected  GroupPersistence groupPersistence
           
protected  PortletPreferencesPersistence portletPreferencesPersistence
           
protected  ResourcePersistence resourcePersistence
           
protected  SocialActivityPersistence socialActivityPersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
CalEventPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the cal event persistence.
 void cacheResult(CalEvent calEvent)
          Caches the cal event in the entity cache if it is enabled.
 void cacheResult(List<CalEvent> calEvents)
          Caches the cal events in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all cal events.
 void clearCache(CalEvent calEvent)
          Clears the cache for the cal event.
 int countAll()
          Counts all the cal events.
 int countByCompanyId(long companyId)
          Counts all the cal events where companyId = ?.
 int countByG_R(long groupId, boolean repeating)
          Counts all the cal events where groupId = ? and repeating = ?.
 int countByG_T(long groupId, String type)
          Counts all the cal events where groupId = ? and type = ?.
 int countByGroupId(long groupId)
          Counts all the cal events where groupId = ?.
 int countByNotRemindBy(int remindBy)
          Counts all the cal events where remindBy ≠ ?.
 int countByUUID_G(String uuid, long groupId)
          Counts all the cal events where uuid = ? and groupId = ?.
 int countByUuid(String uuid)
          Counts all the cal events where uuid = ?.
 CalEvent create(long eventId)
          Creates a new cal event with the primary key.
 CalEvent fetchByPrimaryKey(long eventId)
          Finds the cal event with the primary key or returns null if it could not be found.
 CalEvent fetchByPrimaryKey(Serializable primaryKey)
          Finds the cal event with the primary key or returns null if it could not be found.
 CalEvent fetchByUUID_G(String uuid, long groupId)
          Finds the cal event where uuid = ? and groupId = ? or returns null if it could not be found.
 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.
 int filterCountByG_R(long groupId, boolean repeating)
          Filters by the user's permissions and counts all the cal events where groupId = ? and repeating = ?.
 int filterCountByG_T(long groupId, String type)
          Filters by the user's permissions and counts all the cal events where groupId = ? and type = ?.
 int filterCountByGroupId(long groupId)
          Filters by the user's permissions and counts all the cal events where groupId = ?.
 List<CalEvent> filterFindByG_R(long groupId, boolean repeating)
          Filters by the user's permissions and finds all the cal events where groupId = ? and repeating = ?.
 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 = ?.
 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 = ?.
 List<CalEvent> filterFindByG_T(long groupId, String type)
          Filters by the user's permissions and finds all the cal events where groupId = ? and type = ?.
 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 = ?.
 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 = ?.
 List<CalEvent> filterFindByGroupId(long groupId)
          Filters by the user's permissions and finds all the cal events where groupId = ?.
 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 = ?.
 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 = ?.
 List<CalEvent> findAll()
          Finds all the cal events.
 List<CalEvent> findAll(int start, int end)
          Finds a range of all the cal events.
 List<CalEvent> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the cal events.
 CalEvent findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first cal event in the ordered set where companyId = ?.
 CalEvent findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last cal event in the ordered set where companyId = ?.
 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 = ?.
 List<CalEvent> findByCompanyId(long companyId)
          Finds all the cal events where companyId = ?.
 List<CalEvent> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the cal events where companyId = ?.
 List<CalEvent> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the cal events where companyId = ?.
 CalEvent findByG_R_First(long groupId, boolean repeating, OrderByComparator orderByComparator)
          Finds the first cal event in the ordered set where groupId = ? and repeating = ?.
 CalEvent findByG_R_Last(long groupId, boolean repeating, OrderByComparator orderByComparator)
          Finds the last cal event in the ordered set where groupId = ? and repeating = ?.
 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 = ?.
 List<CalEvent> findByG_R(long groupId, boolean repeating)
          Finds all the cal events where groupId = ? and repeating = ?.
 List<CalEvent> findByG_R(long groupId, boolean repeating, int start, int end)
          Finds a range of all the cal events where groupId = ? and repeating = ?.
 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 = ?.
 CalEvent findByG_T_First(long groupId, String type, OrderByComparator orderByComparator)
          Finds the first cal event in the ordered set where groupId = ? and type = ?.
 CalEvent findByG_T_Last(long groupId, String type, OrderByComparator orderByComparator)
          Finds the last cal event in the ordered set where groupId = ? and type = ?.
 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 = ?.
 List<CalEvent> findByG_T(long groupId, String type)
          Finds all the cal events where groupId = ? and type = ?.
 List<CalEvent> findByG_T(long groupId, String type, int start, int end)
          Finds a range of all the cal events where groupId = ? and type = ?.
 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 = ?.
 CalEvent findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first cal event in the ordered set where groupId = ?.
 CalEvent findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last cal event in the ordered set where groupId = ?.
 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 = ?.
 List<CalEvent> findByGroupId(long groupId)
          Finds all the cal events where groupId = ?.
 List<CalEvent> findByGroupId(long groupId, int start, int end)
          Finds a range of all the cal events where groupId = ?.
 List<CalEvent> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the cal events where groupId = ?.
 CalEvent findByNotRemindBy_First(int remindBy, OrderByComparator orderByComparator)
          Finds the first cal event in the ordered set where remindBy ≠ ?.
 CalEvent findByNotRemindBy_Last(int remindBy, OrderByComparator orderByComparator)
          Finds the last cal event in the ordered set where remindBy ≠ ?.
 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 ≠ ?.
 List<CalEvent> findByNotRemindBy(int remindBy)
          Finds all the cal events where remindBy ≠ ?.
 List<CalEvent> findByNotRemindBy(int remindBy, int start, int end)
          Finds a range of all the cal events where remindBy ≠ ?.
 List<CalEvent> findByNotRemindBy(int remindBy, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the cal events where remindBy ≠ ?.
 CalEvent findByPrimaryKey(long eventId)
          Finds the cal event with the primary key or throws a NoSuchEventException if it could not be found.
 CalEvent findByPrimaryKey(Serializable primaryKey)
          Finds the cal event with the primary key or throws a NoSuchModelException if it could not be found.
 CalEvent findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Finds the first cal event in the ordered set where uuid = ?.
 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.
 CalEvent findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Finds the last cal event in the ordered set where uuid = ?.
 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 = ?.
 List<CalEvent> findByUuid(String uuid)
          Finds all the cal events where uuid = ?.
 List<CalEvent> findByUuid(String uuid, int start, int end)
          Finds a range of all the cal events where uuid = ?.
 List<CalEvent> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the cal events where uuid = ?.
protected  CalEvent getByCompanyId_PrevAndNext(Session session, CalEvent calEvent, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  CalEvent getByG_R_PrevAndNext(Session session, CalEvent calEvent, long groupId, boolean repeating, OrderByComparator orderByComparator, boolean previous)
           
protected  CalEvent getByG_T_PrevAndNext(Session session, CalEvent calEvent, long groupId, String type, OrderByComparator orderByComparator, boolean previous)
           
protected  CalEvent getByGroupId_PrevAndNext(Session session, CalEvent calEvent, long groupId, OrderByComparator orderByComparator, boolean previous)
           
protected  CalEvent getByNotRemindBy_PrevAndNext(Session session, CalEvent calEvent, int remindBy, OrderByComparator orderByComparator, boolean previous)
           
protected  CalEvent getByUuid_PrevAndNext(Session session, CalEvent calEvent, String uuid, OrderByComparator orderByComparator, boolean previous)
           
 CalEvent remove(long eventId)
          Removes the cal event with the primary key from the database.
 CalEvent remove(Serializable primaryKey)
          Removes the cal event with the primary key from the database.
 void removeAll()
          Removes all the cal events from the database.
 void removeByCompanyId(long companyId)
          Removes all the cal events where companyId = ? from the database.
 void removeByG_R(long groupId, boolean repeating)
          Removes all the cal events where groupId = ? and repeating = ? from the database.
 void removeByG_T(long groupId, String type)
          Removes all the cal events where groupId = ? and type = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the cal events where groupId = ? from the database.
 void removeByNotRemindBy(int remindBy)
          Removes all the cal events where remindBy ≠ ? from the database.
 void removeByUUID_G(String uuid, long groupId)
          Removes the cal event where uuid = ? and groupId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the cal events where uuid = ? from the database.
protected  CalEvent removeImpl(CalEvent calEvent)
          Removes the model instance from the database.
protected  CalEvent toUnwrappedModel(CalEvent calEvent)
           
 CalEvent updateImpl(CalEvent calEvent, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_UUID

public static final FinderPath FINDER_PATH_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_FETCH_BY_UUID_G

public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G

FINDER_PATH_COUNT_BY_UUID_G

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G

FINDER_PATH_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_FIND_BY_NOTREMINDBY

public static final FinderPath FINDER_PATH_FIND_BY_NOTREMINDBY

FINDER_PATH_COUNT_BY_NOTREMINDBY

public static final FinderPath FINDER_PATH_COUNT_BY_NOTREMINDBY

FINDER_PATH_FIND_BY_G_T

public static final FinderPath FINDER_PATH_FIND_BY_G_T

FINDER_PATH_COUNT_BY_G_T

public static final FinderPath FINDER_PATH_COUNT_BY_G_T

FINDER_PATH_FIND_BY_G_R

public static final FinderPath FINDER_PATH_FIND_BY_G_R

FINDER_PATH_COUNT_BY_G_R

public static final FinderPath FINDER_PATH_COUNT_BY_G_R

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

calEventPersistence

@BeanReference(type=CalEventPersistence.class)
protected CalEventPersistence calEventPersistence

companyPersistence

@BeanReference(type=CompanyPersistence.class)
protected CompanyPersistence companyPersistence

groupPersistence

@BeanReference(type=GroupPersistence.class)
protected GroupPersistence groupPersistence

portletPreferencesPersistence

@BeanReference(type=PortletPreferencesPersistence.class)
protected PortletPreferencesPersistence portletPreferencesPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

assetEntryPersistence

@BeanReference(type=AssetEntryPersistence.class)
protected AssetEntryPersistence assetEntryPersistence

assetTagPersistence

@BeanReference(type=AssetTagPersistence.class)
protected AssetTagPersistence assetTagPersistence

expandoValuePersistence

@BeanReference(type=ExpandoValuePersistence.class)
protected ExpandoValuePersistence expandoValuePersistence

socialActivityPersistence

@BeanReference(type=SocialActivityPersistence.class)
protected SocialActivityPersistence socialActivityPersistence
Constructor Detail

CalEventPersistenceImpl

public CalEventPersistenceImpl()
Method Detail

cacheResult

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

Specified by:
cacheResult in interface CalEventPersistence
Parameters:
calEvent - the cal event to cache

cacheResult

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

Specified by:
cacheResult in interface CalEventPersistence
Parameters:
calEvents - the cal events to cache

clearCache

public void clearCache()
Clears the cache for all cal events.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<CalEvent>
Overrides:
clearCache in class BasePersistenceImpl<CalEvent>

clearCache

public void clearCache(CalEvent calEvent)
Clears the cache for the cal event.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<CalEvent>
Overrides:
clearCache in class BasePersistenceImpl<CalEvent>
Parameters:
calEvent - the instance of this model to clear the cache for

create

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

Specified by:
create in interface CalEventPersistence
Parameters:
eventId - the primary key for the new cal event
Returns:
the new cal event

remove

public CalEvent remove(Serializable primaryKey)
                throws NoSuchModelException,
                       SystemException
Removes the cal event with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<CalEvent>
Overrides:
remove in class BasePersistenceImpl<CalEvent>
Parameters:
primaryKey - the primary key of the cal event to remove
Returns:
the cal event that was removed
Throws:
NoSuchModelException - if a cal event with the primary key could not be found
SystemException - if a system exception occurred

remove

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

Specified by:
remove in interface CalEventPersistence
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

removeImpl

protected CalEvent removeImpl(CalEvent calEvent)
                       throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<CalEvent>
Parameters:
calEvent - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public CalEvent updateImpl(CalEvent calEvent,
                           boolean merge)
                    throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface CalEventPersistence
Overrides:
updateImpl in class BasePersistenceImpl<CalEvent>
Parameters:
calEvent - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected CalEvent toUnwrappedModel(CalEvent calEvent)

findByPrimaryKey

public CalEvent findByPrimaryKey(Serializable primaryKey)
                          throws NoSuchModelException,
                                 SystemException
Finds the cal event with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<CalEvent>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<CalEvent>
Parameters:
primaryKey - the primary key of the cal event to find
Returns:
the cal event
Throws:
NoSuchModelException - if a cal event with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface CalEventPersistence
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 CalEvent fetchByPrimaryKey(Serializable primaryKey)
                           throws SystemException
Finds the cal event with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<CalEvent>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<CalEvent>
Parameters:
primaryKey - 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

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface CalEventPersistence
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 List<CalEvent> findByUuid(String uuid)
                          throws SystemException
Finds all the cal events where uuid = ?.

Specified by:
findByUuid in interface CalEventPersistence
Parameters:
uuid - the uuid to search with
Returns:
the matching cal events
Throws:
SystemException - if a system exception occurred

findByUuid

public 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.

Specified by:
findByUuid in interface CalEventPersistence
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 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.

Specified by:
findByUuid in interface CalEventPersistence
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 CalEvent findByUuid_First(String uuid,
                                 OrderByComparator orderByComparator)
                          throws NoSuchEventException,
                                 SystemException
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.

Specified by:
findByUuid_First in interface CalEventPersistence
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 CalEvent findByUuid_Last(String uuid,
                                OrderByComparator orderByComparator)
                         throws NoSuchEventException,
                                SystemException
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.

Specified by:
findByUuid_Last in interface CalEventPersistence
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 CalEvent[] findByUuid_PrevAndNext(long eventId,
                                         String uuid,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchEventException,
                                         SystemException
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.

Specified by:
findByUuid_PrevAndNext in interface CalEventPersistence
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

getByUuid_PrevAndNext

protected CalEvent getByUuid_PrevAndNext(Session session,
                                         CalEvent calEvent,
                                         String uuid,
                                         OrderByComparator orderByComparator,
                                         boolean previous)

findByUUID_G

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

Specified by:
findByUUID_G in interface CalEventPersistence
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 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.

Specified by:
fetchByUUID_G in interface CalEventPersistence
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 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.

Specified by:
fetchByUUID_G in interface CalEventPersistence
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 List<CalEvent> findByCompanyId(long companyId)
                               throws SystemException
Finds all the cal events where companyId = ?.

Specified by:
findByCompanyId in interface CalEventPersistence
Parameters:
companyId - the company id to search with
Returns:
the matching cal events
Throws:
SystemException - if a system exception occurred

findByCompanyId

public 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.

Specified by:
findByCompanyId in interface CalEventPersistence
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 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.

Specified by:
findByCompanyId in interface CalEventPersistence
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 CalEvent findByCompanyId_First(long companyId,
                                      OrderByComparator orderByComparator)
                               throws NoSuchEventException,
                                      SystemException
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.

Specified by:
findByCompanyId_First in interface CalEventPersistence
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 CalEvent findByCompanyId_Last(long companyId,
                                     OrderByComparator orderByComparator)
                              throws NoSuchEventException,
                                     SystemException
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.

Specified by:
findByCompanyId_Last in interface CalEventPersistence
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 CalEvent[] findByCompanyId_PrevAndNext(long eventId,
                                              long companyId,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchEventException,
                                              SystemException
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.

Specified by:
findByCompanyId_PrevAndNext in interface CalEventPersistence
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

getByCompanyId_PrevAndNext

protected CalEvent getByCompanyId_PrevAndNext(Session session,
                                              CalEvent calEvent,
                                              long companyId,
                                              OrderByComparator orderByComparator,
                                              boolean previous)

findByGroupId

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

Specified by:
findByGroupId in interface CalEventPersistence
Parameters:
groupId - the group id to search with
Returns:
the matching cal events
Throws:
SystemException - if a system exception occurred

findByGroupId

public 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.

Specified by:
findByGroupId in interface CalEventPersistence
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 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.

Specified by:
findByGroupId in interface CalEventPersistence
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 CalEvent findByGroupId_First(long groupId,
                                    OrderByComparator orderByComparator)
                             throws NoSuchEventException,
                                    SystemException
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.

Specified by:
findByGroupId_First in interface CalEventPersistence
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 CalEvent findByGroupId_Last(long groupId,
                                   OrderByComparator orderByComparator)
                            throws NoSuchEventException,
                                   SystemException
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.

Specified by:
findByGroupId_Last in interface CalEventPersistence
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 CalEvent[] findByGroupId_PrevAndNext(long eventId,
                                            long groupId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchEventException,
                                            SystemException
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.

Specified by:
findByGroupId_PrevAndNext in interface CalEventPersistence
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

getByGroupId_PrevAndNext

protected CalEvent getByGroupId_PrevAndNext(Session session,
                                            CalEvent calEvent,
                                            long groupId,
                                            OrderByComparator orderByComparator,
                                            boolean previous)

filterFindByGroupId

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

Specified by:
filterFindByGroupId in interface CalEventPersistence
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 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.

Specified by:
filterFindByGroupId in interface CalEventPersistence
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 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.

Specified by:
filterFindByGroupId in interface CalEventPersistence
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 List<CalEvent> findByNotRemindBy(int remindBy)
                                 throws SystemException
Finds all the cal events where remindBy ≠ ?.

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

findByNotRemindBy

public 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.

Specified by:
findByNotRemindBy in interface CalEventPersistence
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 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.

Specified by:
findByNotRemindBy in interface CalEventPersistence
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 CalEvent findByNotRemindBy_First(int remindBy,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchEventException,
                                        SystemException
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.

Specified by:
findByNotRemindBy_First in interface CalEventPersistence
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 CalEvent findByNotRemindBy_Last(int remindBy,
                                       OrderByComparator orderByComparator)
                                throws NoSuchEventException,
                                       SystemException
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.

Specified by:
findByNotRemindBy_Last in interface CalEventPersistence
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 CalEvent[] findByNotRemindBy_PrevAndNext(long eventId,
                                                int remindBy,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchEventException,
                                                SystemException
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.

Specified by:
findByNotRemindBy_PrevAndNext in interface CalEventPersistence
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

getByNotRemindBy_PrevAndNext

protected CalEvent getByNotRemindBy_PrevAndNext(Session session,
                                                CalEvent calEvent,
                                                int remindBy,
                                                OrderByComparator orderByComparator,
                                                boolean previous)

findByG_T

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

Specified by:
findByG_T in interface CalEventPersistence
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 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.

Specified by:
findByG_T in interface CalEventPersistence
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 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.

Specified by:
findByG_T in interface CalEventPersistence
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 CalEvent findByG_T_First(long groupId,
                                String type,
                                OrderByComparator orderByComparator)
                         throws NoSuchEventException,
                                SystemException
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.

Specified by:
findByG_T_First in interface CalEventPersistence
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 CalEvent findByG_T_Last(long groupId,
                               String type,
                               OrderByComparator orderByComparator)
                        throws NoSuchEventException,
                               SystemException
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.

Specified by:
findByG_T_Last in interface CalEventPersistence
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 CalEvent[] findByG_T_PrevAndNext(long eventId,
                                        long groupId,
                                        String type,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchEventException,
                                        SystemException
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.

Specified by:
findByG_T_PrevAndNext in interface CalEventPersistence
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

getByG_T_PrevAndNext

protected CalEvent getByG_T_PrevAndNext(Session session,
                                        CalEvent calEvent,
                                        long groupId,
                                        String type,
                                        OrderByComparator orderByComparator,
                                        boolean previous)

filterFindByG_T

public 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 = ?.

Specified by:
filterFindByG_T in interface CalEventPersistence
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 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.

Specified by:
filterFindByG_T in interface CalEventPersistence
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 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.

Specified by:
filterFindByG_T in interface CalEventPersistence
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 List<CalEvent> findByG_R(long groupId,
                                boolean repeating)
                         throws SystemException
Finds all the cal events where groupId = ? and repeating = ?.

Specified by:
findByG_R in interface CalEventPersistence
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 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.

Specified by:
findByG_R in interface CalEventPersistence
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 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.

Specified by:
findByG_R in interface CalEventPersistence
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 CalEvent findByG_R_First(long groupId,
                                boolean repeating,
                                OrderByComparator orderByComparator)
                         throws NoSuchEventException,
                                SystemException
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.

Specified by:
findByG_R_First in interface CalEventPersistence
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 CalEvent findByG_R_Last(long groupId,
                               boolean repeating,
                               OrderByComparator orderByComparator)
                        throws NoSuchEventException,
                               SystemException
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.

Specified by:
findByG_R_Last in interface CalEventPersistence
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 CalEvent[] findByG_R_PrevAndNext(long eventId,
                                        long groupId,
                                        boolean repeating,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchEventException,
                                        SystemException
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.

Specified by:
findByG_R_PrevAndNext in interface CalEventPersistence
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

getByG_R_PrevAndNext

protected CalEvent getByG_R_PrevAndNext(Session session,
                                        CalEvent calEvent,
                                        long groupId,
                                        boolean repeating,
                                        OrderByComparator orderByComparator,
                                        boolean previous)

filterFindByG_R

public 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 = ?.

Specified by:
filterFindByG_R in interface CalEventPersistence
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 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.

Specified by:
filterFindByG_R in interface CalEventPersistence
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 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.

Specified by:
filterFindByG_R in interface CalEventPersistence
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 List<CalEvent> findAll()
                       throws SystemException
Finds all the cal events.

Specified by:
findAll in interface CalEventPersistence
Returns:
the cal events
Throws:
SystemException - if a system exception occurred

findAll

public 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.

Specified by:
findAll in interface CalEventPersistence
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 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.

Specified by:
findAll in interface CalEventPersistence
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 void removeByUuid(String uuid)
                  throws SystemException
Removes all the cal events where uuid = ? from the database.

Specified by:
removeByUuid in interface CalEventPersistence
Parameters:
uuid - the uuid to search with
Throws:
SystemException - if a system exception occurred

removeByUUID_G

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

Specified by:
removeByUUID_G in interface CalEventPersistence
Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred
NoSuchEventException

removeByCompanyId

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

Specified by:
removeByCompanyId in interface CalEventPersistence
Parameters:
companyId - the company id to search with
Throws:
SystemException - if a system exception occurred

removeByGroupId

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

Specified by:
removeByGroupId in interface CalEventPersistence
Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByNotRemindBy

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

Specified by:
removeByNotRemindBy in interface CalEventPersistence
Parameters:
remindBy - the remind by to search with
Throws:
SystemException - if a system exception occurred

removeByG_T

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

Specified by:
removeByG_T in interface CalEventPersistence
Parameters:
groupId - the group id to search with
type - the type to search with
Throws:
SystemException - if a system exception occurred

removeByG_R

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

Specified by:
removeByG_R in interface CalEventPersistence
Parameters:
groupId - the group id to search with
repeating - the repeating to search with
Throws:
SystemException - if a system exception occurred

removeAll

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

Specified by:
removeAll in interface CalEventPersistence
Throws:
SystemException - if a system exception occurred

countByUuid

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

Specified by:
countByUuid in interface CalEventPersistence
Parameters:
uuid - the uuid to search with
Returns:
the number of matching cal events
Throws:
SystemException - if a system exception occurred

countByUUID_G

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

Specified by:
countByUUID_G in interface CalEventPersistence
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 int countByCompanyId(long companyId)
                     throws SystemException
Counts all the cal events where companyId = ?.

Specified by:
countByCompanyId in interface CalEventPersistence
Parameters:
companyId - the company id to search with
Returns:
the number of matching cal events
Throws:
SystemException - if a system exception occurred

countByGroupId

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

Specified by:
countByGroupId in interface CalEventPersistence
Parameters:
groupId - the group id to search with
Returns:
the number of matching cal events
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

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

Specified by:
filterCountByGroupId in interface CalEventPersistence
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 int countByNotRemindBy(int remindBy)
                       throws SystemException
Counts all the cal events where remindBy ≠ ?.

Specified by:
countByNotRemindBy in interface CalEventPersistence
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 int countByG_T(long groupId,
                      String type)
               throws SystemException
Counts all the cal events where groupId = ? and type = ?.

Specified by:
countByG_T in interface CalEventPersistence
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 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 = ?.

Specified by:
filterCountByG_T in interface CalEventPersistence
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 int countByG_R(long groupId,
                      boolean repeating)
               throws SystemException
Counts all the cal events where groupId = ? and repeating = ?.

Specified by:
countByG_R in interface CalEventPersistence
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 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 = ?.

Specified by:
filterCountByG_R in interface CalEventPersistence
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 int countAll()
             throws SystemException
Counts all the cal events.

Specified by:
countAll in interface CalEventPersistence
Returns:
the number of cal events
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the cal event persistence.


Liferay 6.0.5