com.liferay.portlet.announcements.service.persistence
Class AnnouncementsDeliveryUtil
java.lang.Object
com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryUtil
public class AnnouncementsDeliveryUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
- Author:
- Brian Wing Shun Chan
- See Also:
AnnouncementsDeliveryPersistence
,
AnnouncementsDeliveryPersistenceImpl
Method Summary |
static void |
cacheResult(AnnouncementsDelivery announcementsDelivery)
|
static void |
cacheResult(java.util.List<AnnouncementsDelivery> announcementsDeliveries)
|
static void |
clearCache()
|
static int |
countAll()
|
static int |
countByU_T(long userId,
java.lang.String type)
|
static int |
countByUserId(long userId)
|
static AnnouncementsDelivery |
create(long deliveryId)
|
static AnnouncementsDelivery |
fetchByPrimaryKey(long deliveryId)
|
static AnnouncementsDelivery |
fetchByU_T(long userId,
java.lang.String type)
|
static AnnouncementsDelivery |
fetchByU_T(long userId,
java.lang.String type,
boolean retrieveFromCache)
|
static java.util.List<AnnouncementsDelivery> |
findAll()
|
static java.util.List<AnnouncementsDelivery> |
findAll(int start,
int end)
|
static java.util.List<AnnouncementsDelivery> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static AnnouncementsDelivery |
findByPrimaryKey(long deliveryId)
|
static AnnouncementsDelivery |
findByU_T(long userId,
java.lang.String type)
|
static AnnouncementsDelivery |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static AnnouncementsDelivery |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static AnnouncementsDelivery[] |
findByUserId_PrevAndNext(long deliveryId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<AnnouncementsDelivery> |
findByUserId(long userId)
|
static java.util.List<AnnouncementsDelivery> |
findByUserId(long userId,
int start,
int end)
|
static java.util.List<AnnouncementsDelivery> |
findByUserId(long userId,
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 AnnouncementsDeliveryPersistence |
getPersistence()
|
static AnnouncementsDelivery |
remove(AnnouncementsDelivery announcementsDelivery)
|
static AnnouncementsDelivery |
remove(long deliveryId)
|
static void |
removeAll()
|
static void |
removeByU_T(long userId,
java.lang.String type)
|
static void |
removeByUserId(long userId)
|
void |
setPersistence(AnnouncementsDeliveryPersistence persistence)
|
static AnnouncementsDelivery |
update(AnnouncementsDelivery announcementsDelivery)
Deprecated. Use update(AnnouncementsDelivery, boolean merge) . |
static AnnouncementsDelivery |
update(AnnouncementsDelivery announcementsDelivery,
boolean merge)
Add, update, or merge, the entity. |
static AnnouncementsDelivery |
updateImpl(AnnouncementsDelivery announcementsDelivery,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnouncementsDeliveryUtil
public AnnouncementsDeliveryUtil()
cacheResult
public static void cacheResult(AnnouncementsDelivery announcementsDelivery)
cacheResult
public static void cacheResult(java.util.List<AnnouncementsDelivery> announcementsDeliveries)
clearCache
public static void clearCache()
create
public static AnnouncementsDelivery create(long deliveryId)
remove
public static AnnouncementsDelivery remove(long deliveryId)
throws com.liferay.portal.SystemException,
NoSuchDeliveryException
- Throws:
com.liferay.portal.SystemException
NoSuchDeliveryException
remove
public static AnnouncementsDelivery remove(AnnouncementsDelivery announcementsDelivery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static AnnouncementsDelivery update(AnnouncementsDelivery announcementsDelivery)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(AnnouncementsDelivery, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static AnnouncementsDelivery update(AnnouncementsDelivery announcementsDelivery,
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:
announcementsDelivery
- 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 announcementsDelivery is transient. See
LEP-5473 for a detailed discussion of this method.
- Returns:
- the entity that was added, updated, or merged
- Throws:
com.liferay.portal.SystemException
updateImpl
public static AnnouncementsDelivery updateImpl(AnnouncementsDelivery announcementsDelivery,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static AnnouncementsDelivery findByPrimaryKey(long deliveryId)
throws com.liferay.portal.SystemException,
NoSuchDeliveryException
- Throws:
com.liferay.portal.SystemException
NoSuchDeliveryException
fetchByPrimaryKey
public static AnnouncementsDelivery fetchByPrimaryKey(long deliveryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List<AnnouncementsDelivery> findByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List<AnnouncementsDelivery> findByUserId(long userId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
public static java.util.List<AnnouncementsDelivery> findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId_First
public static AnnouncementsDelivery findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchDeliveryException
- Throws:
com.liferay.portal.SystemException
NoSuchDeliveryException
findByUserId_Last
public static AnnouncementsDelivery findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchDeliveryException
- Throws:
com.liferay.portal.SystemException
NoSuchDeliveryException
findByUserId_PrevAndNext
public static AnnouncementsDelivery[] findByUserId_PrevAndNext(long deliveryId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchDeliveryException
- Throws:
com.liferay.portal.SystemException
NoSuchDeliveryException
findByU_T
public static AnnouncementsDelivery findByU_T(long userId,
java.lang.String type)
throws com.liferay.portal.SystemException,
NoSuchDeliveryException
- Throws:
com.liferay.portal.SystemException
NoSuchDeliveryException
fetchByU_T
public static AnnouncementsDelivery fetchByU_T(long userId,
java.lang.String type)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
fetchByU_T
public static AnnouncementsDelivery fetchByU_T(long userId,
java.lang.String type,
boolean retrieveFromCache)
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)
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<AnnouncementsDelivery> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<AnnouncementsDelivery> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<AnnouncementsDelivery> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUserId
public static void removeByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByU_T
public static void removeByU_T(long userId,
java.lang.String type)
throws com.liferay.portal.SystemException,
NoSuchDeliveryException
- Throws:
com.liferay.portal.SystemException
NoSuchDeliveryException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUserId
public static int countByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByU_T
public static int countByU_T(long userId,
java.lang.String type)
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
getPersistence
public static AnnouncementsDeliveryPersistence getPersistence()
setPersistence
public void setPersistence(AnnouncementsDeliveryPersistence persistence)