Liferay 6.2-ce-ga5

com.liferay.portal.service.persistence
Interface SystemEventPersistence

All Superinterfaces:
BasePersistence<SystemEvent>
All Known Implementing Classes:
SystemEventPersistenceImpl

@ProviderType
public interface SystemEventPersistence
extends BasePersistence<SystemEvent>

The persistence interface for the system event service.

Caching information and settings can be found in portal.properties

See Also:
SystemEventPersistenceImpl, SystemEventUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 void cacheResult(List<SystemEvent> systemEvents)
          Caches the system events in the entity cache if it is enabled.
 void cacheResult(SystemEvent systemEvent)
          Caches the system event in the entity cache if it is enabled.
 int countAll()
          Returns the number of system events.
 int countByG_C_C_T(long groupId, long classNameId, long classPK, int type)
          Returns the number of system events where groupId = ? and classNameId = ? and classPK = ? and type = ?.
 int countByG_C_C(long groupId, long classNameId, long classPK)
          Returns the number of system events where groupId = ? and classNameId = ? and classPK = ?.
 int countByG_S(long groupId, long systemEventSetKey)
          Returns the number of system events where groupId = ? and systemEventSetKey = ?.
 int countByGroupId(long groupId)
          Returns the number of system events where groupId = ?.
 SystemEvent create(long systemEventId)
          Creates a new system event with the primary key.
 SystemEvent fetchByG_C_C_First(long groupId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
 SystemEvent fetchByG_C_C_Last(long groupId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
 SystemEvent fetchByG_C_C_T_First(long groupId, long classNameId, long classPK, int type, OrderByComparator orderByComparator)
          Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
 SystemEvent fetchByG_C_C_T_Last(long groupId, long classNameId, long classPK, int type, OrderByComparator orderByComparator)
          Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
 SystemEvent fetchByG_S_First(long groupId, long systemEventSetKey, OrderByComparator orderByComparator)
          Returns the first system event in the ordered set where groupId = ? and systemEventSetKey = ?.
 SystemEvent fetchByG_S_Last(long groupId, long systemEventSetKey, OrderByComparator orderByComparator)
          Returns the last system event in the ordered set where groupId = ? and systemEventSetKey = ?.
 SystemEvent fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first system event in the ordered set where groupId = ?.
 SystemEvent fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last system event in the ordered set where groupId = ?.
 SystemEvent fetchByPrimaryKey(long systemEventId)
          Returns the system event with the primary key or returns null if it could not be found.
 List<SystemEvent> findAll()
          Returns all the system events.
 List<SystemEvent> findAll(int start, int end)
          Returns a range of all the system events.
 List<SystemEvent> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the system events.
 SystemEvent findByG_C_C_First(long groupId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
 SystemEvent findByG_C_C_Last(long groupId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
 SystemEvent[] findByG_C_C_PrevAndNext(long systemEventId, long groupId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the system events before and after the current system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
 SystemEvent findByG_C_C_T_First(long groupId, long classNameId, long classPK, int type, OrderByComparator orderByComparator)
          Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
 SystemEvent findByG_C_C_T_Last(long groupId, long classNameId, long classPK, int type, OrderByComparator orderByComparator)
          Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
 SystemEvent[] findByG_C_C_T_PrevAndNext(long systemEventId, long groupId, long classNameId, long classPK, int type, OrderByComparator orderByComparator)
          Returns the system events before and after the current system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
 List<SystemEvent> findByG_C_C_T(long groupId, long classNameId, long classPK, int type)
          Returns all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ?.
 List<SystemEvent> findByG_C_C_T(long groupId, long classNameId, long classPK, int type, int start, int end)
          Returns a range of all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ?.
 List<SystemEvent> findByG_C_C_T(long groupId, long classNameId, long classPK, int type, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ?.
 List<SystemEvent> findByG_C_C(long groupId, long classNameId, long classPK)
          Returns all the system events where groupId = ? and classNameId = ? and classPK = ?.
 List<SystemEvent> findByG_C_C(long groupId, long classNameId, long classPK, int start, int end)
          Returns a range of all the system events where groupId = ? and classNameId = ? and classPK = ?.
 List<SystemEvent> findByG_C_C(long groupId, long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the system events where groupId = ? and classNameId = ? and classPK = ?.
 SystemEvent findByG_S_First(long groupId, long systemEventSetKey, OrderByComparator orderByComparator)
          Returns the first system event in the ordered set where groupId = ? and systemEventSetKey = ?.
 SystemEvent findByG_S_Last(long groupId, long systemEventSetKey, OrderByComparator orderByComparator)
          Returns the last system event in the ordered set where groupId = ? and systemEventSetKey = ?.
 SystemEvent[] findByG_S_PrevAndNext(long systemEventId, long groupId, long systemEventSetKey, OrderByComparator orderByComparator)
          Returns the system events before and after the current system event in the ordered set where groupId = ? and systemEventSetKey = ?.
 List<SystemEvent> findByG_S(long groupId, long systemEventSetKey)
          Returns all the system events where groupId = ? and systemEventSetKey = ?.
 List<SystemEvent> findByG_S(long groupId, long systemEventSetKey, int start, int end)
          Returns a range of all the system events where groupId = ? and systemEventSetKey = ?.
 List<SystemEvent> findByG_S(long groupId, long systemEventSetKey, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the system events where groupId = ? and systemEventSetKey = ?.
 SystemEvent findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first system event in the ordered set where groupId = ?.
 SystemEvent findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last system event in the ordered set where groupId = ?.
 SystemEvent[] findByGroupId_PrevAndNext(long systemEventId, long groupId, OrderByComparator orderByComparator)
          Returns the system events before and after the current system event in the ordered set where groupId = ?.
 List<SystemEvent> findByGroupId(long groupId)
          Returns all the system events where groupId = ?.
 List<SystemEvent> findByGroupId(long groupId, int start, int end)
          Returns a range of all the system events where groupId = ?.
 List<SystemEvent> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the system events where groupId = ?.
 SystemEvent findByPrimaryKey(long systemEventId)
          Returns the system event with the primary key or throws a NoSuchSystemEventException if it could not be found.
 SystemEvent remove(long systemEventId)
          Removes the system event with the primary key from the database.
 void removeAll()
          Removes all the system events from the database.
 void removeByG_C_C_T(long groupId, long classNameId, long classPK, int type)
          Removes all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ? from the database.
 void removeByG_C_C(long groupId, long classNameId, long classPK)
          Removes all the system events where groupId = ? and classNameId = ? and classPK = ? from the database.
 void removeByG_S(long groupId, long systemEventSetKey)
          Removes all the system events where groupId = ? and systemEventSetKey = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the system events where groupId = ? from the database.
 SystemEvent updateImpl(SystemEvent systemEvent)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByGroupId

List<SystemEvent> findByGroupId(long groupId)
                                throws SystemException
Returns all the system events where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching system events
Throws:
SystemException - if a system exception occurred

findByGroupId

List<SystemEvent> findByGroupId(long groupId,
                                int start,
                                int end)
                                throws SystemException
Returns a range of all the system 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SystemEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of system events
end - the upper bound of the range of system events (not inclusive)
Returns:
the range of matching system events
Throws:
SystemException - if a system exception occurred

findByGroupId

List<SystemEvent> findByGroupId(long groupId,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the system 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SystemEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByGroupId_First

SystemEvent findByGroupId_First(long groupId,
                                OrderByComparator orderByComparator)
                                throws NoSuchSystemEventException,
                                       SystemException
Returns the first system event in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching system event
Throws:
NoSuchSystemEventException - if a matching system event could not be found
SystemException - if a system exception occurred

fetchByGroupId_First

SystemEvent fetchByGroupId_First(long groupId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first system event in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching system event, or null if a matching system event could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_Last

SystemEvent findByGroupId_Last(long groupId,
                               OrderByComparator orderByComparator)
                               throws NoSuchSystemEventException,
                                      SystemException
Returns the last system event in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching system event
Throws:
NoSuchSystemEventException - if a matching system event could not be found
SystemException - if a system exception occurred

fetchByGroupId_Last

SystemEvent fetchByGroupId_Last(long groupId,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns the last system event in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching system event, or null if a matching system event could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

SystemEvent[] findByGroupId_PrevAndNext(long systemEventId,
                                        long groupId,
                                        OrderByComparator orderByComparator)
                                        throws NoSuchSystemEventException,
                                               SystemException
Returns the system events before and after the current system event in the ordered set where groupId = ?.

Parameters:
systemEventId - the primary key of the current system event
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next system event
Throws:
NoSuchSystemEventException - if a system event with the primary key could not be found
SystemException - if a system exception occurred

removeByGroupId

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

Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

countByGroupId

int countByGroupId(long groupId)
                   throws SystemException
Returns the number of system events where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching system events
Throws:
SystemException - if a system exception occurred

findByG_S

List<SystemEvent> findByG_S(long groupId,
                            long systemEventSetKey)
                            throws SystemException
Returns all the system events where groupId = ? and systemEventSetKey = ?.

Parameters:
groupId - the group ID
systemEventSetKey - the system event set key
Returns:
the matching system events
Throws:
SystemException - if a system exception occurred

findByG_S

List<SystemEvent> findByG_S(long groupId,
                            long systemEventSetKey,
                            int start,
                            int end)
                            throws SystemException
Returns a range of all the system events where groupId = ? and systemEventSetKey = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SystemEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
systemEventSetKey - the system event set key
start - the lower bound of the range of system events
end - the upper bound of the range of system events (not inclusive)
Returns:
the range of matching system events
Throws:
SystemException - if a system exception occurred

findByG_S

List<SystemEvent> findByG_S(long groupId,
                            long systemEventSetKey,
                            int start,
                            int end,
                            OrderByComparator orderByComparator)
                            throws SystemException
Returns an ordered range of all the system events where groupId = ? and systemEventSetKey = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SystemEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
systemEventSetKey - the system event set key
start - the lower bound of the range of system events
end - the upper bound of the range of system events (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching system events
Throws:
SystemException - if a system exception occurred

findByG_S_First

SystemEvent findByG_S_First(long groupId,
                            long systemEventSetKey,
                            OrderByComparator orderByComparator)
                            throws NoSuchSystemEventException,
                                   SystemException
Returns the first system event in the ordered set where groupId = ? and systemEventSetKey = ?.

Parameters:
groupId - the group ID
systemEventSetKey - the system event set key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching system event
Throws:
NoSuchSystemEventException - if a matching system event could not be found
SystemException - if a system exception occurred

fetchByG_S_First

SystemEvent fetchByG_S_First(long groupId,
                             long systemEventSetKey,
                             OrderByComparator orderByComparator)
                             throws SystemException
Returns the first system event in the ordered set where groupId = ? and systemEventSetKey = ?.

Parameters:
groupId - the group ID
systemEventSetKey - the system event set key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching system event, or null if a matching system event could not be found
Throws:
SystemException - if a system exception occurred

findByG_S_Last

SystemEvent findByG_S_Last(long groupId,
                           long systemEventSetKey,
                           OrderByComparator orderByComparator)
                           throws NoSuchSystemEventException,
                                  SystemException
Returns the last system event in the ordered set where groupId = ? and systemEventSetKey = ?.

Parameters:
groupId - the group ID
systemEventSetKey - the system event set key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching system event
Throws:
NoSuchSystemEventException - if a matching system event could not be found
SystemException - if a system exception occurred

fetchByG_S_Last

SystemEvent fetchByG_S_Last(long groupId,
                            long systemEventSetKey,
                            OrderByComparator orderByComparator)
                            throws SystemException
Returns the last system event in the ordered set where groupId = ? and systemEventSetKey = ?.

Parameters:
groupId - the group ID
systemEventSetKey - the system event set key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching system event, or null if a matching system event could not be found
Throws:
SystemException - if a system exception occurred

findByG_S_PrevAndNext

SystemEvent[] findByG_S_PrevAndNext(long systemEventId,
                                    long groupId,
                                    long systemEventSetKey,
                                    OrderByComparator orderByComparator)
                                    throws NoSuchSystemEventException,
                                           SystemException
Returns the system events before and after the current system event in the ordered set where groupId = ? and systemEventSetKey = ?.

Parameters:
systemEventId - the primary key of the current system event
groupId - the group ID
systemEventSetKey - the system event set key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next system event
Throws:
NoSuchSystemEventException - if a system event with the primary key could not be found
SystemException - if a system exception occurred

removeByG_S

void removeByG_S(long groupId,
                 long systemEventSetKey)
                 throws SystemException
Removes all the system events where groupId = ? and systemEventSetKey = ? from the database.

Parameters:
groupId - the group ID
systemEventSetKey - the system event set key
Throws:
SystemException - if a system exception occurred

countByG_S

int countByG_S(long groupId,
               long systemEventSetKey)
               throws SystemException
Returns the number of system events where groupId = ? and systemEventSetKey = ?.

Parameters:
groupId - the group ID
systemEventSetKey - the system event set key
Returns:
the number of matching system events
Throws:
SystemException - if a system exception occurred

findByG_C_C

List<SystemEvent> findByG_C_C(long groupId,
                              long classNameId,
                              long classPK)
                              throws SystemException
Returns all the system events where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
Returns:
the matching system events
Throws:
SystemException - if a system exception occurred

findByG_C_C

List<SystemEvent> findByG_C_C(long groupId,
                              long classNameId,
                              long classPK,
                              int start,
                              int end)
                              throws SystemException
Returns a range of all the system events where groupId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SystemEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of system events
end - the upper bound of the range of system events (not inclusive)
Returns:
the range of matching system events
Throws:
SystemException - if a system exception occurred

findByG_C_C

List<SystemEvent> findByG_C_C(long groupId,
                              long classNameId,
                              long classPK,
                              int start,
                              int end,
                              OrderByComparator orderByComparator)
                              throws SystemException
Returns an ordered range of all the system events where groupId = ? and classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SystemEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of system events
end - the upper bound of the range of system events (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching system events
Throws:
SystemException - if a system exception occurred

findByG_C_C_First

SystemEvent findByG_C_C_First(long groupId,
                              long classNameId,
                              long classPK,
                              OrderByComparator orderByComparator)
                              throws NoSuchSystemEventException,
                                     SystemException
Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching system event
Throws:
NoSuchSystemEventException - if a matching system event could not be found
SystemException - if a system exception occurred

fetchByG_C_C_First

SystemEvent fetchByG_C_C_First(long groupId,
                               long classNameId,
                               long classPK,
                               OrderByComparator orderByComparator)
                               throws SystemException
Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching system event, or null if a matching system event could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_C_Last

SystemEvent findByG_C_C_Last(long groupId,
                             long classNameId,
                             long classPK,
                             OrderByComparator orderByComparator)
                             throws NoSuchSystemEventException,
                                    SystemException
Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching system event
Throws:
NoSuchSystemEventException - if a matching system event could not be found
SystemException - if a system exception occurred

fetchByG_C_C_Last

SystemEvent fetchByG_C_C_Last(long groupId,
                              long classNameId,
                              long classPK,
                              OrderByComparator orderByComparator)
                              throws SystemException
Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching system event, or null if a matching system event could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_C_PrevAndNext

SystemEvent[] findByG_C_C_PrevAndNext(long systemEventId,
                                      long groupId,
                                      long classNameId,
                                      long classPK,
                                      OrderByComparator orderByComparator)
                                      throws NoSuchSystemEventException,
                                             SystemException
Returns the system events before and after the current system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
systemEventId - the primary key of the current system event
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next system event
Throws:
NoSuchSystemEventException - if a system event with the primary key could not be found
SystemException - if a system exception occurred

removeByG_C_C

void removeByG_C_C(long groupId,
                   long classNameId,
                   long classPK)
                   throws SystemException
Removes all the system events where groupId = ? and classNameId = ? and classPK = ? from the database.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
Throws:
SystemException - if a system exception occurred

countByG_C_C

int countByG_C_C(long groupId,
                 long classNameId,
                 long classPK)
                 throws SystemException
Returns the number of system events where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching system events
Throws:
SystemException - if a system exception occurred

findByG_C_C_T

List<SystemEvent> findByG_C_C_T(long groupId,
                                long classNameId,
                                long classPK,
                                int type)
                                throws SystemException
Returns all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
Returns:
the matching system events
Throws:
SystemException - if a system exception occurred

findByG_C_C_T

List<SystemEvent> findByG_C_C_T(long groupId,
                                long classNameId,
                                long classPK,
                                int type,
                                int start,
                                int end)
                                throws SystemException
Returns a range of all the system events where groupId = ? and classNameId = ? and classPK = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SystemEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
start - the lower bound of the range of system events
end - the upper bound of the range of system events (not inclusive)
Returns:
the range of matching system events
Throws:
SystemException - if a system exception occurred

findByG_C_C_T

List<SystemEvent> findByG_C_C_T(long groupId,
                                long classNameId,
                                long classPK,
                                int type,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the system events where groupId = ? and classNameId = ? and classPK = ? 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SystemEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
start - the lower bound of the range of system events
end - the upper bound of the range of system events (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching system events
Throws:
SystemException - if a system exception occurred

findByG_C_C_T_First

SystemEvent findByG_C_C_T_First(long groupId,
                                long classNameId,
                                long classPK,
                                int type,
                                OrderByComparator orderByComparator)
                                throws NoSuchSystemEventException,
                                       SystemException
Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching system event
Throws:
NoSuchSystemEventException - if a matching system event could not be found
SystemException - if a system exception occurred

fetchByG_C_C_T_First

SystemEvent fetchByG_C_C_T_First(long groupId,
                                 long classNameId,
                                 long classPK,
                                 int type,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching system event, or null if a matching system event could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_C_T_Last

SystemEvent findByG_C_C_T_Last(long groupId,
                               long classNameId,
                               long classPK,
                               int type,
                               OrderByComparator orderByComparator)
                               throws NoSuchSystemEventException,
                                      SystemException
Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching system event
Throws:
NoSuchSystemEventException - if a matching system event could not be found
SystemException - if a system exception occurred

fetchByG_C_C_T_Last

SystemEvent fetchByG_C_C_T_Last(long groupId,
                                long classNameId,
                                long classPK,
                                int type,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching system event, or null if a matching system event could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_C_T_PrevAndNext

SystemEvent[] findByG_C_C_T_PrevAndNext(long systemEventId,
                                        long groupId,
                                        long classNameId,
                                        long classPK,
                                        int type,
                                        OrderByComparator orderByComparator)
                                        throws NoSuchSystemEventException,
                                               SystemException
Returns the system events before and after the current system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
systemEventId - the primary key of the current system event
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next system event
Throws:
NoSuchSystemEventException - if a system event with the primary key could not be found
SystemException - if a system exception occurred

removeByG_C_C_T

void removeByG_C_C_T(long groupId,
                     long classNameId,
                     long classPK,
                     int type)
                     throws SystemException
Removes all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ? from the database.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
Throws:
SystemException - if a system exception occurred

countByG_C_C_T

int countByG_C_C_T(long groupId,
                   long classNameId,
                   long classPK,
                   int type)
                   throws SystemException
Returns the number of system events where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
Returns:
the number of matching system events
Throws:
SystemException - if a system exception occurred

cacheResult

void cacheResult(SystemEvent systemEvent)
Caches the system event in the entity cache if it is enabled.

Parameters:
systemEvent - the system event

cacheResult

void cacheResult(List<SystemEvent> systemEvents)
Caches the system events in the entity cache if it is enabled.

Parameters:
systemEvents - the system events

create

SystemEvent create(long systemEventId)
Creates a new system event with the primary key. Does not add the system event to the database.

Parameters:
systemEventId - the primary key for the new system event
Returns:
the new system event

remove

SystemEvent remove(long systemEventId)
                   throws NoSuchSystemEventException,
                          SystemException
Removes the system event with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
systemEventId - the primary key of the system event
Returns:
the system event that was removed
Throws:
NoSuchSystemEventException - if a system event with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

SystemEvent updateImpl(SystemEvent systemEvent)
                       throws SystemException
Throws:
SystemException

findByPrimaryKey

SystemEvent findByPrimaryKey(long systemEventId)
                             throws NoSuchSystemEventException,
                                    SystemException
Returns the system event with the primary key or throws a NoSuchSystemEventException if it could not be found.

Parameters:
systemEventId - the primary key of the system event
Returns:
the system event
Throws:
NoSuchSystemEventException - if a system event with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

SystemEvent fetchByPrimaryKey(long systemEventId)
                              throws SystemException
Returns the system event with the primary key or returns null if it could not be found.

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

findAll

List<SystemEvent> findAll()
                          throws SystemException
Returns all the system events.

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

findAll

List<SystemEvent> findAll(int start,
                          int end)
                          throws SystemException
Returns a range of all the system 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SystemEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findAll

List<SystemEvent> findAll(int start,
                          int end,
                          OrderByComparator orderByComparator)
                          throws SystemException
Returns an ordered range of all the system 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from SystemEventModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

removeAll

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

Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of system events.

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

Liferay 6.2-ce-ga5