com.liferay.portal.service.persistence
Interface SubscriptionPersistence
- All Superinterfaces:
- BasePersistence
public interface SubscriptionPersistence
- extends BasePersistence
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
void |
cacheResult(java.util.List<Subscription> subscriptions)
|
void |
cacheResult(Subscription subscription)
|
void |
clearCache()
|
int |
countAll()
|
int |
countByC_C_C(long companyId,
long classNameId,
long classPK)
|
int |
countByC_U_C_C(long companyId,
long userId,
long classNameId,
long classPK)
|
int |
countByU_C(long userId,
long classNameId)
|
int |
countByUserId(long userId)
|
Subscription |
create(long subscriptionId)
|
Subscription |
fetchByC_U_C_C(long companyId,
long userId,
long classNameId,
long classPK)
|
Subscription |
fetchByC_U_C_C(long companyId,
long userId,
long classNameId,
long classPK,
boolean retrieveFromCache)
|
Subscription |
fetchByPrimaryKey(long subscriptionId)
|
java.util.List<Subscription> |
findAll()
|
java.util.List<Subscription> |
findAll(int start,
int end)
|
java.util.List<Subscription> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Subscription |
findByC_C_C_First(long companyId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Subscription |
findByC_C_C_Last(long companyId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Subscription[] |
findByC_C_C_PrevAndNext(long subscriptionId,
long companyId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<Subscription> |
findByC_C_C(long companyId,
long classNameId,
long classPK)
|
java.util.List<Subscription> |
findByC_C_C(long companyId,
long classNameId,
long classPK,
int start,
int end)
|
java.util.List<Subscription> |
findByC_C_C(long companyId,
long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Subscription |
findByC_U_C_C(long companyId,
long userId,
long classNameId,
long classPK)
|
Subscription |
findByPrimaryKey(long subscriptionId)
|
Subscription |
findByU_C_First(long userId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Subscription |
findByU_C_Last(long userId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Subscription[] |
findByU_C_PrevAndNext(long subscriptionId,
long userId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<Subscription> |
findByU_C(long userId,
long classNameId)
|
java.util.List<Subscription> |
findByU_C(long userId,
long classNameId,
int start,
int end)
|
java.util.List<Subscription> |
findByU_C(long userId,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Subscription |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Subscription |
findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Subscription[] |
findByUserId_PrevAndNext(long subscriptionId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<Subscription> |
findByUserId(long userId)
|
java.util.List<Subscription> |
findByUserId(long userId,
int start,
int end)
|
java.util.List<Subscription> |
findByUserId(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
Subscription |
remove(long subscriptionId)
|
Subscription |
remove(Subscription subscription)
|
void |
removeAll()
|
void |
removeByC_C_C(long companyId,
long classNameId,
long classPK)
|
void |
removeByC_U_C_C(long companyId,
long userId,
long classNameId,
long classPK)
|
void |
removeByU_C(long userId,
long classNameId)
|
void |
removeByUserId(long userId)
|
Subscription |
update(Subscription subscription)
Deprecated. Use update(Subscription subscription, boolean merge) . |
Subscription |
update(Subscription subscription,
boolean merge)
Add, update, or merge, the entity. |
Subscription |
updateImpl(Subscription subscription,
boolean merge)
|
cacheResult
void cacheResult(Subscription subscription)
cacheResult
void cacheResult(java.util.List<Subscription> subscriptions)
clearCache
void clearCache()
- Specified by:
clearCache
in interface BasePersistence
create
Subscription create(long subscriptionId)
remove
Subscription remove(long subscriptionId)
throws NoSuchSubscriptionException,
com.liferay.portal.SystemException
- Throws:
NoSuchSubscriptionException
com.liferay.portal.SystemException
remove
Subscription remove(Subscription subscription)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
Subscription update(Subscription subscription)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(Subscription subscription, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
Subscription update(Subscription subscription,
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:
subscription
- 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 subscription 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
Subscription updateImpl(Subscription subscription,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
Subscription findByPrimaryKey(long subscriptionId)
throws NoSuchSubscriptionException,
com.liferay.portal.SystemException
- Throws:
NoSuchSubscriptionException
com.liferay.portal.SystemException
fetchByPrimaryKey
Subscription fetchByPrimaryKey(long subscriptionId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
java.util.List<Subscription> findByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
java.util.List<Subscription> findByUserId(long userId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUserId
java.util.List<Subscription> 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
Subscription findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchSubscriptionException,
com.liferay.portal.SystemException
- Throws:
NoSuchSubscriptionException
com.liferay.portal.SystemException
findByUserId_Last
Subscription findByUserId_Last(long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchSubscriptionException,
com.liferay.portal.SystemException
- Throws:
NoSuchSubscriptionException
com.liferay.portal.SystemException
findByUserId_PrevAndNext
Subscription[] findByUserId_PrevAndNext(long subscriptionId,
long userId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchSubscriptionException,
com.liferay.portal.SystemException
- Throws:
NoSuchSubscriptionException
com.liferay.portal.SystemException
findByU_C
java.util.List<Subscription> findByU_C(long userId,
long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByU_C
java.util.List<Subscription> findByU_C(long userId,
long classNameId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByU_C
java.util.List<Subscription> findByU_C(long userId,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByU_C_First
Subscription findByU_C_First(long userId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchSubscriptionException,
com.liferay.portal.SystemException
- Throws:
NoSuchSubscriptionException
com.liferay.portal.SystemException
findByU_C_Last
Subscription findByU_C_Last(long userId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchSubscriptionException,
com.liferay.portal.SystemException
- Throws:
NoSuchSubscriptionException
com.liferay.portal.SystemException
findByU_C_PrevAndNext
Subscription[] findByU_C_PrevAndNext(long subscriptionId,
long userId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchSubscriptionException,
com.liferay.portal.SystemException
- Throws:
NoSuchSubscriptionException
com.liferay.portal.SystemException
findByC_C_C
java.util.List<Subscription> findByC_C_C(long companyId,
long classNameId,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_C_C
java.util.List<Subscription> findByC_C_C(long companyId,
long classNameId,
long classPK,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_C_C
java.util.List<Subscription> findByC_C_C(long companyId,
long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_C_C_First
Subscription findByC_C_C_First(long companyId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchSubscriptionException,
com.liferay.portal.SystemException
- Throws:
NoSuchSubscriptionException
com.liferay.portal.SystemException
findByC_C_C_Last
Subscription findByC_C_C_Last(long companyId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchSubscriptionException,
com.liferay.portal.SystemException
- Throws:
NoSuchSubscriptionException
com.liferay.portal.SystemException
findByC_C_C_PrevAndNext
Subscription[] findByC_C_C_PrevAndNext(long subscriptionId,
long companyId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchSubscriptionException,
com.liferay.portal.SystemException
- Throws:
NoSuchSubscriptionException
com.liferay.portal.SystemException
findByC_U_C_C
Subscription findByC_U_C_C(long companyId,
long userId,
long classNameId,
long classPK)
throws NoSuchSubscriptionException,
com.liferay.portal.SystemException
- Throws:
NoSuchSubscriptionException
com.liferay.portal.SystemException
fetchByC_U_C_C
Subscription fetchByC_U_C_C(long companyId,
long userId,
long classNameId,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
fetchByC_U_C_C
Subscription fetchByC_U_C_C(long companyId,
long userId,
long classNameId,
long classPK,
boolean retrieveFromCache)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
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
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
java.util.List<Subscription> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
java.util.List<Subscription> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
java.util.List<Subscription> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUserId
void removeByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByU_C
void removeByU_C(long userId,
long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByC_C_C
void removeByC_C_C(long companyId,
long classNameId,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByC_U_C_C
void removeByC_U_C_C(long companyId,
long userId,
long classNameId,
long classPK)
throws NoSuchSubscriptionException,
com.liferay.portal.SystemException
- Throws:
NoSuchSubscriptionException
com.liferay.portal.SystemException
removeAll
void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUserId
int countByUserId(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByU_C
int countByU_C(long userId,
long classNameId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_C_C
int countByC_C_C(long companyId,
long classNameId,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_U_C_C
int countByC_U_C_C(long companyId,
long userId,
long classNameId,
long classPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException