com.liferay.portlet.calendar.service.persistence
Class CalEventUtil
java.lang.Object
com.liferay.portlet.calendar.service.persistence.CalEventUtil
public class CalEventUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByG_R(long groupId,
boolean repeating)
|
static int |
countByG_T(long groupId,
java.lang.String type)
|
static int |
countByGroupId(long groupId)
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
|
static int |
countByUuid(java.lang.String uuid)
|
static CalEvent |
create(long eventId)
|
static CalEvent |
fetchByPrimaryKey(long eventId)
|
static CalEvent |
fetchByUUID_G(java.lang.String uuid,
long groupId)
|
static java.util.List<CalEvent> |
findAll()
|
static java.util.List<CalEvent> |
findAll(int start,
int end)
|
static java.util.List<CalEvent> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static CalEvent |
findByG_R_First(long groupId,
boolean repeating,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static CalEvent |
findByG_R_Last(long groupId,
boolean repeating,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static CalEvent[] |
findByG_R_PrevAndNext(long eventId,
long groupId,
boolean repeating,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<CalEvent> |
findByG_R(long groupId,
boolean repeating)
|
static java.util.List<CalEvent> |
findByG_R(long groupId,
boolean repeating,
int start,
int end)
|
static java.util.List<CalEvent> |
findByG_R(long groupId,
boolean repeating,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static CalEvent |
findByG_T_First(long groupId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static CalEvent |
findByG_T_Last(long groupId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static CalEvent[] |
findByG_T_PrevAndNext(long eventId,
long groupId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<CalEvent> |
findByG_T(long groupId,
java.lang.String type)
|
static java.util.List<CalEvent> |
findByG_T(long groupId,
java.lang.String type,
int start,
int end)
|
static java.util.List<CalEvent> |
findByG_T(long groupId,
java.lang.String type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static CalEvent |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static CalEvent |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static CalEvent[] |
findByGroupId_PrevAndNext(long eventId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<CalEvent> |
findByGroupId(long groupId)
|
static java.util.List<CalEvent> |
findByGroupId(long groupId,
int start,
int end)
|
static java.util.List<CalEvent> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static CalEvent |
findByPrimaryKey(long eventId)
|
static CalEvent |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static CalEvent |
findByUUID_G(java.lang.String uuid,
long groupId)
|
static CalEvent |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static CalEvent[] |
findByUuid_PrevAndNext(long eventId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<CalEvent> |
findByUuid(java.lang.String uuid)
|
static java.util.List<CalEvent> |
findByUuid(java.lang.String uuid,
int start,
int end)
|
static java.util.List<CalEvent> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static CalEventPersistence |
getPersistence()
|
static void |
registerListener(ModelListener listener)
|
static CalEvent |
remove(CalEvent calEvent)
|
static CalEvent |
remove(long eventId)
|
static void |
removeAll()
|
static void |
removeByG_R(long groupId,
boolean repeating)
|
static void |
removeByG_T(long groupId,
java.lang.String type)
|
static void |
removeByGroupId(long groupId)
|
static void |
removeByUUID_G(java.lang.String uuid,
long groupId)
|
static void |
removeByUuid(java.lang.String uuid)
|
void |
setPersistence(CalEventPersistence persistence)
|
static void |
unregisterListener(ModelListener listener)
|
static CalEvent |
update(CalEvent calEvent)
Deprecated. Use update(CalEvent calEvent, boolean merge) . |
static CalEvent |
update(CalEvent calEvent,
boolean merge)
Add, update, or merge, the entity. |
static CalEvent |
updateImpl(CalEvent calEvent,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CalEventUtil
public CalEventUtil()
create
public static CalEvent create(long eventId)
remove
public static CalEvent remove(long eventId)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
remove
public static CalEvent remove(CalEvent calEvent)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static CalEvent update(CalEvent calEvent)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(CalEvent calEvent, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static CalEvent update(CalEvent calEvent,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
calEvent
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when calEvent is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- Throws:
com.liferay.portal.SystemException
updateImpl
public static CalEvent updateImpl(CalEvent calEvent,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static CalEvent findByPrimaryKey(long eventId)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
fetchByPrimaryKey
public static CalEvent fetchByPrimaryKey(long eventId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<CalEvent> findByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<CalEvent> findByUuid(java.lang.String uuid,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<CalEvent> findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid_First
public static CalEvent findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
findByUuid_Last
public static CalEvent findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
findByUuid_PrevAndNext
public static CalEvent[] findByUuid_PrevAndNext(long eventId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
findByUUID_G
public static CalEvent findByUUID_G(java.lang.String uuid,
long groupId)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
fetchByUUID_G
public static CalEvent fetchByUUID_G(java.lang.String uuid,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List<CalEvent> findByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List<CalEvent> findByGroupId(long groupId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId
public static java.util.List<CalEvent> findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByGroupId_First
public static CalEvent findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
findByGroupId_Last
public static CalEvent findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
findByGroupId_PrevAndNext
public static CalEvent[] findByGroupId_PrevAndNext(long eventId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
findByG_T
public static java.util.List<CalEvent> findByG_T(long groupId,
java.lang.String type)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_T
public static java.util.List<CalEvent> findByG_T(long groupId,
java.lang.String type,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_T
public static java.util.List<CalEvent> findByG_T(long groupId,
java.lang.String type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_T_First
public static CalEvent findByG_T_First(long groupId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
findByG_T_Last
public static CalEvent findByG_T_Last(long groupId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
findByG_T_PrevAndNext
public static CalEvent[] findByG_T_PrevAndNext(long eventId,
long groupId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
findByG_R
public static java.util.List<CalEvent> findByG_R(long groupId,
boolean repeating)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_R
public static java.util.List<CalEvent> findByG_R(long groupId,
boolean repeating,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_R
public static java.util.List<CalEvent> findByG_R(long groupId,
boolean repeating,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByG_R_First
public static CalEvent findByG_R_First(long groupId,
boolean repeating,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
findByG_R_Last
public static CalEvent findByG_R_Last(long groupId,
boolean repeating,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
findByG_R_PrevAndNext
public static CalEvent[] findByG_R_PrevAndNext(long eventId,
long groupId,
boolean repeating,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<CalEvent> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<CalEvent> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<CalEvent> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUuid
public static void removeByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUUID_G
public static void removeByUUID_G(java.lang.String uuid,
long groupId)
throws com.liferay.portal.SystemException,
NoSuchEventException
- Throws:
com.liferay.portal.SystemException
NoSuchEventException
removeByGroupId
public static void removeByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByG_T
public static void removeByG_T(long groupId,
java.lang.String type)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByG_R
public static void removeByG_R(long groupId,
boolean repeating)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUuid
public static int countByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUUID_G
public static int countByUUID_G(java.lang.String uuid,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByGroupId
public static int countByGroupId(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByG_T
public static int countByG_T(long groupId,
java.lang.String type)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByG_R
public static int countByG_R(long groupId,
boolean repeating)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
registerListener
public static void registerListener(ModelListener listener)
unregisterListener
public static void unregisterListener(ModelListener listener)
getPersistence
public static CalEventPersistence getPersistence()
setPersistence
public void setPersistence(CalEventPersistence persistence)