Liferay 6.2-ce-ga5

com.liferay.portal.service.persistence
Class SystemEventPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<SystemEvent>
      extended by com.liferay.portal.service.persistence.SystemEventPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<SystemEvent>, SystemEventPersistence

public class SystemEventPersistenceImpl
extends BasePersistenceImpl<SystemEvent>
implements SystemEventPersistence

The persistence implementation for the system event service.

Caching information and settings can be found in portal.properties

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

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_G_C_C
           
static FinderPath FINDER_PATH_COUNT_BY_G_C_C_T
           
static FinderPath FINDER_PATH_COUNT_BY_G_S
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_C_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_C_T
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, 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
SystemEventPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the system event persistence.
 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.
 void clearCache()
          Clears the cache for all system events.
 void clearCache(List<SystemEvent> systemEvents)
          Clears the cache for a List instances of this model.
 void clearCache(SystemEvent systemEvent)
          Clears the cache for the system event.
 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.
 void destroy()
           
 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.
 SystemEvent fetchByPrimaryKey(Serializable primaryKey)
          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 findByPrimaryKey(Serializable primaryKey)
          Returns the system event with the primary key or throws a NoSuchModelException if it could not be found.
protected  Set<String> getBadColumnNames()
           
protected  SystemEvent getByG_C_C_PrevAndNext(Session session, SystemEvent systemEvent, long groupId, long classNameId, long classPK, OrderByComparator orderByComparator, boolean previous)
           
protected  SystemEvent getByG_C_C_T_PrevAndNext(Session session, SystemEvent systemEvent, long groupId, long classNameId, long classPK, int type, OrderByComparator orderByComparator, boolean previous)
           
protected  SystemEvent getByG_S_PrevAndNext(Session session, SystemEvent systemEvent, long groupId, long systemEventSetKey, OrderByComparator orderByComparator, boolean previous)
           
protected  SystemEvent getByGroupId_PrevAndNext(Session session, SystemEvent systemEvent, long groupId, OrderByComparator orderByComparator, boolean previous)
           
 SystemEvent remove(long systemEventId)
          Removes the system event with the primary key from the database.
 SystemEvent remove(Serializable primaryKey)
          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.
protected  SystemEvent removeImpl(SystemEvent systemEvent)
          Removes the model instance from the database.
protected  SystemEvent toUnwrappedModel(SystemEvent systemEvent)
           
 SystemEvent updateImpl(SystemEvent systemEvent)
          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, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
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
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_S

FINDER_PATH_COUNT_BY_G_S

public static final FinderPath FINDER_PATH_COUNT_BY_G_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_C

FINDER_PATH_COUNT_BY_G_C_C

public static final FinderPath FINDER_PATH_COUNT_BY_G_C_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_C_T

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_C_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_C_T

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_C_T

FINDER_PATH_COUNT_BY_G_C_C_T

public static final FinderPath FINDER_PATH_COUNT_BY_G_C_C_T
Constructor Detail

SystemEventPersistenceImpl

public SystemEventPersistenceImpl()
Method Detail

findByGroupId

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

Specified by:
findByGroupId in interface SystemEventPersistence
Parameters:
groupId - the group ID
Returns:
the matching system events
Throws:
SystemException - if a system exception occurred

findByGroupId

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

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

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

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

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

Specified by:
findByGroupId_First in interface SystemEventPersistence
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

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

Specified by:
fetchByGroupId_First in interface SystemEventPersistence
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

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

Specified by:
findByGroupId_Last in interface SystemEventPersistence
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

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

Specified by:
fetchByGroupId_Last in interface SystemEventPersistence
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

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

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

getByGroupId_PrevAndNext

protected SystemEvent getByGroupId_PrevAndNext(Session session,
                                               SystemEvent systemEvent,
                                               long groupId,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

removeByGroupId

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

Specified by:
removeByGroupId in interface SystemEventPersistence
Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

countByGroupId

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

Specified by:
countByGroupId in interface SystemEventPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching system events
Throws:
SystemException - if a system exception occurred

findByG_S

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

Specified by:
findByG_S in interface SystemEventPersistence
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

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

Specified by:
findByG_S in interface SystemEventPersistence
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

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

Specified by:
findByG_S in interface SystemEventPersistence
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

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

Specified by:
findByG_S_First in interface SystemEventPersistence
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

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

Specified by:
fetchByG_S_First in interface SystemEventPersistence
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

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

Specified by:
findByG_S_Last in interface SystemEventPersistence
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

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

Specified by:
fetchByG_S_Last in interface SystemEventPersistence
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

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

Specified by:
findByG_S_PrevAndNext in interface SystemEventPersistence
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

getByG_S_PrevAndNext

protected SystemEvent getByG_S_PrevAndNext(Session session,
                                           SystemEvent systemEvent,
                                           long groupId,
                                           long systemEventSetKey,
                                           OrderByComparator orderByComparator,
                                           boolean previous)

removeByG_S

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

Specified by:
removeByG_S in interface SystemEventPersistence
Parameters:
groupId - the group ID
systemEventSetKey - the system event set key
Throws:
SystemException - if a system exception occurred

countByG_S

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

Specified by:
countByG_S in interface SystemEventPersistence
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

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

Specified by:
findByG_C_C in interface SystemEventPersistence
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

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

Specified by:
findByG_C_C in interface SystemEventPersistence
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

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

Specified by:
findByG_C_C in interface SystemEventPersistence
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

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

Specified by:
findByG_C_C_First in interface SystemEventPersistence
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

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

Specified by:
fetchByG_C_C_First in interface SystemEventPersistence
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

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

Specified by:
findByG_C_C_Last in interface SystemEventPersistence
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

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

Specified by:
fetchByG_C_C_Last in interface SystemEventPersistence
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

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

Specified by:
findByG_C_C_PrevAndNext in interface SystemEventPersistence
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

getByG_C_C_PrevAndNext

protected SystemEvent getByG_C_C_PrevAndNext(Session session,
                                             SystemEvent systemEvent,
                                             long groupId,
                                             long classNameId,
                                             long classPK,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

removeByG_C_C

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

Specified by:
removeByG_C_C in interface SystemEventPersistence
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

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

Specified by:
countByG_C_C in interface SystemEventPersistence
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

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

Specified by:
findByG_C_C_T in interface SystemEventPersistence
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

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

Specified by:
findByG_C_C_T in interface SystemEventPersistence
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

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

Specified by:
findByG_C_C_T in interface SystemEventPersistence
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

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

Specified by:
findByG_C_C_T_First in interface SystemEventPersistence
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

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

Specified by:
fetchByG_C_C_T_First in interface SystemEventPersistence
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

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

Specified by:
findByG_C_C_T_Last in interface SystemEventPersistence
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

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

Specified by:
fetchByG_C_C_T_Last in interface SystemEventPersistence
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

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

Specified by:
findByG_C_C_T_PrevAndNext in interface SystemEventPersistence
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

getByG_C_C_T_PrevAndNext

protected SystemEvent getByG_C_C_T_PrevAndNext(Session session,
                                               SystemEvent systemEvent,
                                               long groupId,
                                               long classNameId,
                                               long classPK,
                                               int type,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

removeByG_C_C_T

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

Specified by:
removeByG_C_C_T in interface SystemEventPersistence
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

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

Specified by:
countByG_C_C_T in interface SystemEventPersistence
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

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

Specified by:
cacheResult in interface SystemEventPersistence
Parameters:
systemEvent - the system event

cacheResult

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

Specified by:
cacheResult in interface SystemEventPersistence
Parameters:
systemEvents - the system events

clearCache

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

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(SystemEvent systemEvent)
Clears the cache for the system event.

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(List<SystemEvent> systemEvents)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SystemEvent>
Overrides:
clearCache in class BasePersistenceImpl<SystemEvent>
Parameters:
systemEvents - the List instances of this model to clear the cache for

create

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

Specified by:
create in interface SystemEventPersistence
Parameters:
systemEventId - the primary key for the new system event
Returns:
the new system event

remove

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

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

remove

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

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

removeImpl

protected SystemEvent removeImpl(SystemEvent systemEvent)
                          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<SystemEvent>
Parameters:
systemEvent - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public SystemEvent updateImpl(SystemEvent systemEvent)
                       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 SystemEventPersistence
Overrides:
updateImpl in class BasePersistenceImpl<SystemEvent>
Parameters:
systemEvent - the model instance to update
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected SystemEvent toUnwrappedModel(SystemEvent systemEvent)

findByPrimaryKey

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

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

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface SystemEventPersistence
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

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

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

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface SystemEventPersistence
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

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

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

findAll

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

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

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

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

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

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

countAll

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

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

getBadColumnNames

protected Set<String> getBadColumnNames()
Overrides:
getBadColumnNames in class BasePersistenceImpl<SystemEvent>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the system event persistence.


destroy

public void destroy()

Liferay 6.2-ce-ga5