Liferay 6.0.3

com.liferay.portal.service.persistence
Interface SubscriptionPersistence

All Superinterfaces:
BasePersistence<Subscription>
All Known Implementing Classes:
SubscriptionPersistenceImpl

public interface SubscriptionPersistence
extends BasePersistence<Subscription>

See Also:
SubscriptionPersistenceImpl, SubscriptionUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 void cacheResult(List<Subscription> subscriptions)
           
 void cacheResult(Subscription subscription)
           
 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)
           
 List<Subscription> findAll()
           
 List<Subscription> findAll(int start, int end)
           
 List<Subscription> findAll(int start, int end, OrderByComparator orderByComparator)
           
 Subscription findByC_C_C_First(long companyId, long classNameId, long classPK, OrderByComparator orderByComparator)
           
 Subscription findByC_C_C_Last(long companyId, long classNameId, long classPK, OrderByComparator orderByComparator)
           
 Subscription[] findByC_C_C_PrevAndNext(long subscriptionId, long companyId, long classNameId, long classPK, OrderByComparator orderByComparator)
           
 List<Subscription> findByC_C_C(long companyId, long classNameId, long classPK)
           
 List<Subscription> findByC_C_C(long companyId, long classNameId, long classPK, int start, int end)
           
 List<Subscription> findByC_C_C(long companyId, long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator)
           
 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, OrderByComparator orderByComparator)
           
 Subscription findByU_C_Last(long userId, long classNameId, OrderByComparator orderByComparator)
           
 Subscription[] findByU_C_PrevAndNext(long subscriptionId, long userId, long classNameId, OrderByComparator orderByComparator)
           
 List<Subscription> findByU_C(long userId, long classNameId)
           
 List<Subscription> findByU_C(long userId, long classNameId, int start, int end)
           
 List<Subscription> findByU_C(long userId, long classNameId, int start, int end, OrderByComparator orderByComparator)
           
 Subscription findByUserId_First(long userId, OrderByComparator orderByComparator)
           
 Subscription findByUserId_Last(long userId, OrderByComparator orderByComparator)
           
 Subscription[] findByUserId_PrevAndNext(long subscriptionId, long userId, OrderByComparator orderByComparator)
           
 List<Subscription> findByUserId(long userId)
           
 List<Subscription> findByUserId(long userId, int start, int end)
           
 List<Subscription> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
           
 Subscription remove(long subscriptionId)
           
 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 updateImpl(Subscription subscription, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

void cacheResult(Subscription subscription)

cacheResult

void cacheResult(List<Subscription> subscriptions)

create

Subscription create(long subscriptionId)

remove

Subscription remove(long subscriptionId)
                    throws NoSuchSubscriptionException,
                           SystemException
Throws:
NoSuchSubscriptionException
SystemException

updateImpl

Subscription updateImpl(Subscription subscription,
                        boolean merge)
                        throws SystemException
Throws:
SystemException

findByPrimaryKey

Subscription findByPrimaryKey(long subscriptionId)
                              throws NoSuchSubscriptionException,
                                     SystemException
Throws:
NoSuchSubscriptionException
SystemException

fetchByPrimaryKey

Subscription fetchByPrimaryKey(long subscriptionId)
                               throws SystemException
Throws:
SystemException

findByUserId

List<Subscription> findByUserId(long userId)
                                throws SystemException
Throws:
SystemException

findByUserId

List<Subscription> findByUserId(long userId,
                                int start,
                                int end)
                                throws SystemException
Throws:
SystemException

findByUserId

List<Subscription> findByUserId(long userId,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                                throws SystemException
Throws:
SystemException

findByUserId_First

Subscription findByUserId_First(long userId,
                                OrderByComparator orderByComparator)
                                throws NoSuchSubscriptionException,
                                       SystemException
Throws:
NoSuchSubscriptionException
SystemException

findByUserId_Last

Subscription findByUserId_Last(long userId,
                               OrderByComparator orderByComparator)
                               throws NoSuchSubscriptionException,
                                      SystemException
Throws:
NoSuchSubscriptionException
SystemException

findByUserId_PrevAndNext

Subscription[] findByUserId_PrevAndNext(long subscriptionId,
                                        long userId,
                                        OrderByComparator orderByComparator)
                                        throws NoSuchSubscriptionException,
                                               SystemException
Throws:
NoSuchSubscriptionException
SystemException

findByU_C

List<Subscription> findByU_C(long userId,
                             long classNameId)
                             throws SystemException
Throws:
SystemException

findByU_C

List<Subscription> findByU_C(long userId,
                             long classNameId,
                             int start,
                             int end)
                             throws SystemException
Throws:
SystemException

findByU_C

List<Subscription> findByU_C(long userId,
                             long classNameId,
                             int start,
                             int end,
                             OrderByComparator orderByComparator)
                             throws SystemException
Throws:
SystemException

findByU_C_First

Subscription findByU_C_First(long userId,
                             long classNameId,
                             OrderByComparator orderByComparator)
                             throws NoSuchSubscriptionException,
                                    SystemException
Throws:
NoSuchSubscriptionException
SystemException

findByU_C_Last

Subscription findByU_C_Last(long userId,
                            long classNameId,
                            OrderByComparator orderByComparator)
                            throws NoSuchSubscriptionException,
                                   SystemException
Throws:
NoSuchSubscriptionException
SystemException

findByU_C_PrevAndNext

Subscription[] findByU_C_PrevAndNext(long subscriptionId,
                                     long userId,
                                     long classNameId,
                                     OrderByComparator orderByComparator)
                                     throws NoSuchSubscriptionException,
                                            SystemException
Throws:
NoSuchSubscriptionException
SystemException

findByC_C_C

List<Subscription> findByC_C_C(long companyId,
                               long classNameId,
                               long classPK)
                               throws SystemException
Throws:
SystemException

findByC_C_C

List<Subscription> findByC_C_C(long companyId,
                               long classNameId,
                               long classPK,
                               int start,
                               int end)
                               throws SystemException
Throws:
SystemException

findByC_C_C

List<Subscription> findByC_C_C(long companyId,
                               long classNameId,
                               long classPK,
                               int start,
                               int end,
                               OrderByComparator orderByComparator)
                               throws SystemException
Throws:
SystemException

findByC_C_C_First

Subscription findByC_C_C_First(long companyId,
                               long classNameId,
                               long classPK,
                               OrderByComparator orderByComparator)
                               throws NoSuchSubscriptionException,
                                      SystemException
Throws:
NoSuchSubscriptionException
SystemException

findByC_C_C_Last

Subscription findByC_C_C_Last(long companyId,
                              long classNameId,
                              long classPK,
                              OrderByComparator orderByComparator)
                              throws NoSuchSubscriptionException,
                                     SystemException
Throws:
NoSuchSubscriptionException
SystemException

findByC_C_C_PrevAndNext

Subscription[] findByC_C_C_PrevAndNext(long subscriptionId,
                                       long companyId,
                                       long classNameId,
                                       long classPK,
                                       OrderByComparator orderByComparator)
                                       throws NoSuchSubscriptionException,
                                              SystemException
Throws:
NoSuchSubscriptionException
SystemException

findByC_U_C_C

Subscription findByC_U_C_C(long companyId,
                           long userId,
                           long classNameId,
                           long classPK)
                           throws NoSuchSubscriptionException,
                                  SystemException
Throws:
NoSuchSubscriptionException
SystemException

fetchByC_U_C_C

Subscription fetchByC_U_C_C(long companyId,
                            long userId,
                            long classNameId,
                            long classPK)
                            throws SystemException
Throws:
SystemException

fetchByC_U_C_C

Subscription fetchByC_U_C_C(long companyId,
                            long userId,
                            long classNameId,
                            long classPK,
                            boolean retrieveFromCache)
                            throws SystemException
Throws:
SystemException

findAll

List<Subscription> findAll()
                           throws SystemException
Throws:
SystemException

findAll

List<Subscription> findAll(int start,
                           int end)
                           throws SystemException
Throws:
SystemException

findAll

List<Subscription> findAll(int start,
                           int end,
                           OrderByComparator orderByComparator)
                           throws SystemException
Throws:
SystemException

removeByUserId

void removeByUserId(long userId)
                    throws SystemException
Throws:
SystemException

removeByU_C

void removeByU_C(long userId,
                 long classNameId)
                 throws SystemException
Throws:
SystemException

removeByC_C_C

void removeByC_C_C(long companyId,
                   long classNameId,
                   long classPK)
                   throws SystemException
Throws:
SystemException

removeByC_U_C_C

void removeByC_U_C_C(long companyId,
                     long userId,
                     long classNameId,
                     long classPK)
                     throws NoSuchSubscriptionException,
                            SystemException
Throws:
NoSuchSubscriptionException
SystemException

removeAll

void removeAll()
               throws SystemException
Throws:
SystemException

countByUserId

int countByUserId(long userId)
                  throws SystemException
Throws:
SystemException

countByU_C

int countByU_C(long userId,
               long classNameId)
               throws SystemException
Throws:
SystemException

countByC_C_C

int countByC_C_C(long companyId,
                 long classNameId,
                 long classPK)
                 throws SystemException
Throws:
SystemException

countByC_U_C_C

int countByC_U_C_C(long companyId,
                   long userId,
                   long classNameId,
                   long classPK)
                   throws SystemException
Throws:
SystemException

countAll

int countAll()
             throws SystemException
Throws:
SystemException

Liferay 6.0.3