@ProviderType
public class SystemEventUtil
extends Object
SystemEventPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
SystemEventPersistence
,
SystemEventPersistenceImpl
Constructor and Description |
---|
SystemEventUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(List<SystemEvent> systemEvents)
Caches the system events in the entity cache if it is enabled.
|
static void |
cacheResult(SystemEvent systemEvent)
Caches the system event in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(SystemEvent systemEvent) |
static int |
countAll()
Returns the number of system events.
|
static 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 = ?.
|
static int |
countByG_C_C(long groupId,
long classNameId,
long classPK)
Returns the number of system events where groupId = ? and classNameId = ? and classPK = ?.
|
static int |
countByG_S(long groupId,
long systemEventSetKey)
Returns the number of system events where groupId = ? and systemEventSetKey = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of system events where groupId = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static SystemEvent |
create(long systemEventId)
Creates a new system event with the primary key.
|
static SystemEvent |
fetchByG_C_C_First(long groupId,
long classNameId,
long classPK,
OrderByComparator<SystemEvent> orderByComparator)
Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
|
static SystemEvent |
fetchByG_C_C_Last(long groupId,
long classNameId,
long classPK,
OrderByComparator<SystemEvent> orderByComparator)
Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
|
static SystemEvent |
fetchByG_C_C_T_First(long groupId,
long classNameId,
long classPK,
int type,
OrderByComparator<SystemEvent> orderByComparator)
Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
|
static SystemEvent |
fetchByG_C_C_T_Last(long groupId,
long classNameId,
long classPK,
int type,
OrderByComparator<SystemEvent> orderByComparator)
Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
|
static SystemEvent |
fetchByG_S_First(long groupId,
long systemEventSetKey,
OrderByComparator<SystemEvent> orderByComparator)
Returns the first system event in the ordered set where groupId = ? and systemEventSetKey = ?.
|
static SystemEvent |
fetchByG_S_Last(long groupId,
long systemEventSetKey,
OrderByComparator<SystemEvent> orderByComparator)
Returns the last system event in the ordered set where groupId = ? and systemEventSetKey = ?.
|
static SystemEvent |
fetchByGroupId_First(long groupId,
OrderByComparator<SystemEvent> orderByComparator)
Returns the first system event in the ordered set where groupId = ?.
|
static SystemEvent |
fetchByGroupId_Last(long groupId,
OrderByComparator<SystemEvent> orderByComparator)
Returns the last system event in the ordered set where groupId = ?.
|
static SystemEvent |
fetchByPrimaryKey(long systemEventId)
Returns the system event with the primary key or returns
null if it could not be found. |
static Map<Serializable,SystemEvent> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
static List<SystemEvent> |
findAll()
Returns all the system events.
|
static List<SystemEvent> |
findAll(int start,
int end)
Returns a range of all the system events.
|
static List<SystemEvent> |
findAll(int start,
int end,
OrderByComparator<SystemEvent> orderByComparator)
Returns an ordered range of all the system events.
|
static List<SystemEvent> |
findAll(int start,
int end,
OrderByComparator<SystemEvent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the system events.
|
static SystemEvent |
findByG_C_C_First(long groupId,
long classNameId,
long classPK,
OrderByComparator<SystemEvent> orderByComparator)
Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
|
static SystemEvent |
findByG_C_C_Last(long groupId,
long classNameId,
long classPK,
OrderByComparator<SystemEvent> orderByComparator)
Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
|
static SystemEvent[] |
findByG_C_C_PrevAndNext(long systemEventId,
long groupId,
long classNameId,
long classPK,
OrderByComparator<SystemEvent> orderByComparator)
Returns the system events before and after the current system event in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
|
static SystemEvent |
findByG_C_C_T_First(long groupId,
long classNameId,
long classPK,
int type,
OrderByComparator<SystemEvent> orderByComparator)
Returns the first system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
|
static SystemEvent |
findByG_C_C_T_Last(long groupId,
long classNameId,
long classPK,
int type,
OrderByComparator<SystemEvent> orderByComparator)
Returns the last system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
|
static SystemEvent[] |
findByG_C_C_T_PrevAndNext(long systemEventId,
long groupId,
long classNameId,
long classPK,
int type,
OrderByComparator<SystemEvent> orderByComparator)
Returns the system events before and after the current system event in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static List<SystemEvent> |
findByG_C_C_T(long groupId,
long classNameId,
long classPK,
int type,
int start,
int end,
OrderByComparator<SystemEvent> orderByComparator)
Returns an ordered range of all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ?.
|
static List<SystemEvent> |
findByG_C_C_T(long groupId,
long classNameId,
long classPK,
int type,
int start,
int end,
OrderByComparator<SystemEvent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the system events where groupId = ? and classNameId = ? and classPK = ? and type = ?.
|
static List<SystemEvent> |
findByG_C_C(long groupId,
long classNameId,
long classPK)
Returns all the system events where groupId = ? and classNameId = ? and classPK = ?.
|
static 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 = ?.
|
static List<SystemEvent> |
findByG_C_C(long groupId,
long classNameId,
long classPK,
int start,
int end,
OrderByComparator<SystemEvent> orderByComparator)
Returns an ordered range of all the system events where groupId = ? and classNameId = ? and classPK = ?.
|
static List<SystemEvent> |
findByG_C_C(long groupId,
long classNameId,
long classPK,
int start,
int end,
OrderByComparator<SystemEvent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the system events where groupId = ? and classNameId = ? and classPK = ?.
|
static SystemEvent |
findByG_S_First(long groupId,
long systemEventSetKey,
OrderByComparator<SystemEvent> orderByComparator)
Returns the first system event in the ordered set where groupId = ? and systemEventSetKey = ?.
|
static SystemEvent |
findByG_S_Last(long groupId,
long systemEventSetKey,
OrderByComparator<SystemEvent> orderByComparator)
Returns the last system event in the ordered set where groupId = ? and systemEventSetKey = ?.
|
static SystemEvent[] |
findByG_S_PrevAndNext(long systemEventId,
long groupId,
long systemEventSetKey,
OrderByComparator<SystemEvent> orderByComparator)
Returns the system events before and after the current system event in the ordered set where groupId = ? and systemEventSetKey = ?.
|
static List<SystemEvent> |
findByG_S(long groupId,
long systemEventSetKey)
Returns all the system events where groupId = ? and systemEventSetKey = ?.
|
static List<SystemEvent> |
findByG_S(long groupId,
long systemEventSetKey,
int start,
int end)
Returns a range of all the system events where groupId = ? and systemEventSetKey = ?.
|
static List<SystemEvent> |
findByG_S(long groupId,
long systemEventSetKey,
int start,
int end,
OrderByComparator<SystemEvent> orderByComparator)
Returns an ordered range of all the system events where groupId = ? and systemEventSetKey = ?.
|
static List<SystemEvent> |
findByG_S(long groupId,
long systemEventSetKey,
int start,
int end,
OrderByComparator<SystemEvent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the system events where groupId = ? and systemEventSetKey = ?.
|
static SystemEvent |
findByGroupId_First(long groupId,
OrderByComparator<SystemEvent> orderByComparator)
Returns the first system event in the ordered set where groupId = ?.
|
static SystemEvent |
findByGroupId_Last(long groupId,
OrderByComparator<SystemEvent> orderByComparator)
Returns the last system event in the ordered set where groupId = ?.
|
static SystemEvent[] |
findByGroupId_PrevAndNext(long systemEventId,
long groupId,
OrderByComparator<SystemEvent> orderByComparator)
Returns the system events before and after the current system event in the ordered set where groupId = ?.
|
static List<SystemEvent> |
findByGroupId(long groupId)
Returns all the system events where groupId = ?.
|
static List<SystemEvent> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the system events where groupId = ?.
|
static List<SystemEvent> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SystemEvent> orderByComparator)
Returns an ordered range of all the system events where groupId = ?.
|
static List<SystemEvent> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<SystemEvent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the system events where groupId = ?.
|
static SystemEvent |
findByPrimaryKey(long systemEventId)
Returns the system event with the primary key or throws a
NoSuchSystemEventException if it could not be found. |
static List<SystemEvent> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static List<SystemEvent> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static List<SystemEvent> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<SystemEvent> orderByComparator) |
static Set<String> |
getBadColumnNames() |
static SystemEventPersistence |
getPersistence() |
static SystemEvent |
remove(long systemEventId)
Removes the system event with the primary key from the database.
|
static void |
removeAll()
Removes all the system events from the database.
|
static 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.
|
static void |
removeByG_C_C(long groupId,
long classNameId,
long classPK)
Removes all the system events where groupId = ? and classNameId = ? and classPK = ? from the database.
|
static void |
removeByG_S(long groupId,
long systemEventSetKey)
Removes all the system events where groupId = ? and systemEventSetKey = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the system events where groupId = ? from the database.
|
static SystemEvent |
update(SystemEvent systemEvent) |
static SystemEvent |
update(SystemEvent systemEvent,
ServiceContext serviceContext) |
static SystemEvent |
updateImpl(SystemEvent systemEvent) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(SystemEvent systemEvent)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<SystemEvent> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<SystemEvent> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<SystemEvent> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<SystemEvent> orderByComparator)
public static SystemEvent update(SystemEvent systemEvent)
public static SystemEvent update(SystemEvent systemEvent, ServiceContext serviceContext)
public static List<SystemEvent> findByGroupId(long groupId)
groupId
- the group IDpublic static List<SystemEvent> findByGroupId(long groupId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
groupId
- the group IDstart
- the lower bound of the range of system eventsend
- the upper bound of the range of system events (not inclusive)public static List<SystemEvent> findByGroupId(long groupId, int start, int end, OrderByComparator<SystemEvent> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
groupId
- the group IDstart
- the lower bound of the range of system eventsend
- the upper bound of the range of system events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<SystemEvent> findByGroupId(long groupId, int start, int end, OrderByComparator<SystemEvent> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
groupId
- the group IDstart
- the lower bound of the range of system eventsend
- the upper bound of the range of system events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SystemEvent findByGroupId_First(long groupId, OrderByComparator<SystemEvent> orderByComparator) throws NoSuchSystemEventException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSystemEventException
- if a matching system event could not be foundpublic static SystemEvent fetchByGroupId_First(long groupId, OrderByComparator<SystemEvent> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching system event could not be foundpublic static SystemEvent findByGroupId_Last(long groupId, OrderByComparator<SystemEvent> orderByComparator) throws NoSuchSystemEventException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSystemEventException
- if a matching system event could not be foundpublic static SystemEvent fetchByGroupId_Last(long groupId, OrderByComparator<SystemEvent> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching system event could not be foundpublic static SystemEvent[] findByGroupId_PrevAndNext(long systemEventId, long groupId, OrderByComparator<SystemEvent> orderByComparator) throws NoSuchSystemEventException
systemEventId
- the primary key of the current system eventgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSystemEventException
- if a system event with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static List<SystemEvent> findByG_S(long groupId, long systemEventSetKey)
groupId
- the group IDsystemEventSetKey
- the system event set keypublic static List<SystemEvent> findByG_S(long groupId, long systemEventSetKey, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
groupId
- the group IDsystemEventSetKey
- the system event set keystart
- the lower bound of the range of system eventsend
- the upper bound of the range of system events (not inclusive)public static List<SystemEvent> findByG_S(long groupId, long systemEventSetKey, int start, int end, OrderByComparator<SystemEvent> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
groupId
- the group IDsystemEventSetKey
- the system event set keystart
- the lower bound of the range of system eventsend
- the upper bound of the range of system events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<SystemEvent> findByG_S(long groupId, long systemEventSetKey, int start, int end, OrderByComparator<SystemEvent> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
groupId
- the group IDsystemEventSetKey
- the system event set keystart
- the lower bound of the range of system eventsend
- the upper bound of the range of system events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SystemEvent findByG_S_First(long groupId, long systemEventSetKey, OrderByComparator<SystemEvent> orderByComparator) throws NoSuchSystemEventException
groupId
- the group IDsystemEventSetKey
- the system event set keyorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSystemEventException
- if a matching system event could not be foundpublic static SystemEvent fetchByG_S_First(long groupId, long systemEventSetKey, OrderByComparator<SystemEvent> orderByComparator)
groupId
- the group IDsystemEventSetKey
- the system event set keyorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching system event could not be foundpublic static SystemEvent findByG_S_Last(long groupId, long systemEventSetKey, OrderByComparator<SystemEvent> orderByComparator) throws NoSuchSystemEventException
groupId
- the group IDsystemEventSetKey
- the system event set keyorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSystemEventException
- if a matching system event could not be foundpublic static SystemEvent fetchByG_S_Last(long groupId, long systemEventSetKey, OrderByComparator<SystemEvent> orderByComparator)
groupId
- the group IDsystemEventSetKey
- the system event set keyorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching system event could not be foundpublic static SystemEvent[] findByG_S_PrevAndNext(long systemEventId, long groupId, long systemEventSetKey, OrderByComparator<SystemEvent> orderByComparator) throws NoSuchSystemEventException
systemEventId
- the primary key of the current system eventgroupId
- the group IDsystemEventSetKey
- the system event set keyorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSystemEventException
- if a system event with the primary key could not be foundpublic static void removeByG_S(long groupId, long systemEventSetKey)
groupId
- the group IDsystemEventSetKey
- the system event set keypublic static int countByG_S(long groupId, long systemEventSetKey)
groupId
- the group IDsystemEventSetKey
- the system event set keypublic static List<SystemEvent> findByG_C_C(long groupId, long classNameId, long classPK)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkpublic static List<SystemEvent> findByG_C_C(long groupId, long classNameId, long classPK, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of system eventsend
- the upper bound of the range of system events (not inclusive)public static List<SystemEvent> findByG_C_C(long groupId, long classNameId, long classPK, int start, int end, OrderByComparator<SystemEvent> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of system eventsend
- the upper bound of the range of system events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<SystemEvent> findByG_C_C(long groupId, long classNameId, long classPK, int start, int end, OrderByComparator<SystemEvent> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of system eventsend
- the upper bound of the range of system events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SystemEvent findByG_C_C_First(long groupId, long classNameId, long classPK, OrderByComparator<SystemEvent> orderByComparator) throws NoSuchSystemEventException
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSystemEventException
- if a matching system event could not be foundpublic static SystemEvent fetchByG_C_C_First(long groupId, long classNameId, long classPK, OrderByComparator<SystemEvent> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching system event could not be foundpublic static SystemEvent findByG_C_C_Last(long groupId, long classNameId, long classPK, OrderByComparator<SystemEvent> orderByComparator) throws NoSuchSystemEventException
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSystemEventException
- if a matching system event could not be foundpublic static SystemEvent fetchByG_C_C_Last(long groupId, long classNameId, long classPK, OrderByComparator<SystemEvent> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching system event could not be foundpublic static SystemEvent[] findByG_C_C_PrevAndNext(long systemEventId, long groupId, long classNameId, long classPK, OrderByComparator<SystemEvent> orderByComparator) throws NoSuchSystemEventException
systemEventId
- the primary key of the current system eventgroupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSystemEventException
- if a system event with the primary key could not be foundpublic static void removeByG_C_C(long groupId, long classNameId, long classPK)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkpublic static int countByG_C_C(long groupId, long classNameId, long classPK)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pkpublic static List<SystemEvent> findByG_C_C_T(long groupId, long classNameId, long classPK, int type)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pktype
- the typepublic static List<SystemEvent> findByG_C_C_T(long groupId, long classNameId, long classPK, int type, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pktype
- the typestart
- the lower bound of the range of system eventsend
- the upper bound of the range of system events (not inclusive)public static List<SystemEvent> findByG_C_C_T(long groupId, long classNameId, long classPK, int type, int start, int end, OrderByComparator<SystemEvent> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pktype
- the typestart
- the lower bound of the range of system eventsend
- the upper bound of the range of system events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<SystemEvent> findByG_C_C_T(long groupId, long classNameId, long classPK, int type, int start, int end, OrderByComparator<SystemEvent> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pktype
- the typestart
- the lower bound of the range of system eventsend
- the upper bound of the range of system events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static SystemEvent findByG_C_C_T_First(long groupId, long classNameId, long classPK, int type, OrderByComparator<SystemEvent> orderByComparator) throws NoSuchSystemEventException
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pktype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSystemEventException
- if a matching system event could not be foundpublic static SystemEvent fetchByG_C_C_T_First(long groupId, long classNameId, long classPK, int type, OrderByComparator<SystemEvent> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pktype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching system event could not be foundpublic static SystemEvent findByG_C_C_T_Last(long groupId, long classNameId, long classPK, int type, OrderByComparator<SystemEvent> orderByComparator) throws NoSuchSystemEventException
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pktype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSystemEventException
- if a matching system event could not be foundpublic static SystemEvent fetchByG_C_C_T_Last(long groupId, long classNameId, long classPK, int type, OrderByComparator<SystemEvent> orderByComparator)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pktype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching system event could not be foundpublic static SystemEvent[] findByG_C_C_T_PrevAndNext(long systemEventId, long groupId, long classNameId, long classPK, int type, OrderByComparator<SystemEvent> orderByComparator) throws NoSuchSystemEventException
systemEventId
- the primary key of the current system eventgroupId
- the group IDclassNameId
- the class name IDclassPK
- the class pktype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSystemEventException
- if a system event with the primary key could not be foundpublic static void removeByG_C_C_T(long groupId, long classNameId, long classPK, int type)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pktype
- the typepublic static int countByG_C_C_T(long groupId, long classNameId, long classPK, int type)
groupId
- the group IDclassNameId
- the class name IDclassPK
- the class pktype
- the typepublic static void cacheResult(SystemEvent systemEvent)
systemEvent
- the system eventpublic static void cacheResult(List<SystemEvent> systemEvents)
systemEvents
- the system eventspublic static SystemEvent create(long systemEventId)
systemEventId
- the primary key for the new system eventpublic static SystemEvent remove(long systemEventId) throws NoSuchSystemEventException
systemEventId
- the primary key of the system eventNoSuchSystemEventException
- if a system event with the primary key could not be foundpublic static SystemEvent updateImpl(SystemEvent systemEvent)
public static SystemEvent findByPrimaryKey(long systemEventId) throws NoSuchSystemEventException
NoSuchSystemEventException
if it could not be found.systemEventId
- the primary key of the system eventNoSuchSystemEventException
- if a system event with the primary key could not be foundpublic static SystemEvent fetchByPrimaryKey(long systemEventId)
null
if it could not be found.systemEventId
- the primary key of the system eventnull
if a system event with the primary key could not be foundpublic static Map<Serializable,SystemEvent> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<SystemEvent> findAll()
public static List<SystemEvent> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
start
- the lower bound of the range of system eventsend
- the upper bound of the range of system events (not inclusive)public static List<SystemEvent> findAll(int start, int end, OrderByComparator<SystemEvent> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
start
- the lower bound of the range of system eventsend
- the upper bound of the range of system events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<SystemEvent> findAll(int start, int end, OrderByComparator<SystemEvent> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from 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.
start
- the lower bound of the range of system eventsend
- the upper bound of the range of system events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static Set<String> getBadColumnNames()
public static SystemEventPersistence getPersistence()