com.liferay.portal.service.persistence
Interface SubscriptionPersistence


public interface SubscriptionPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 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 countByUserId(long userId)
           
 Subscription create(long subscriptionId)
           
 Subscription fetchByC_U_C_C(long companyId, long userId, long classNameId, long classPK)
           
 Subscription fetchByPrimaryKey(long subscriptionId)
           
 java.util.List<Subscription> findAll()
           
 java.util.List<Subscription> findAll(int begin, int end)
           
 java.util.List<Subscription> findAll(int begin, 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 begin, int end)
           
 java.util.List<Subscription> findByC_C_C(long companyId, long classNameId, long classPK, int begin, 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 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 begin, int end)
           
 java.util.List<Subscription> findByUserId(long userId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<Subscription> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List<Subscription> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, 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 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)
           
 

Method Detail

create

Subscription create(long subscriptionId)

remove

Subscription remove(long subscriptionId)
                    throws com.liferay.portal.SystemException,
                           NoSuchSubscriptionException
Throws:
com.liferay.portal.SystemException
NoSuchSubscriptionException

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 merge
merge - 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 com.liferay.portal.SystemException,
                                     NoSuchSubscriptionException
Throws:
com.liferay.portal.SystemException
NoSuchSubscriptionException

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 begin,
                                          int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

java.util.List<Subscription> findByUserId(long userId,
                                          int begin,
                                          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 com.liferay.portal.SystemException,
                                       NoSuchSubscriptionException
Throws:
com.liferay.portal.SystemException
NoSuchSubscriptionException

findByUserId_Last

Subscription findByUserId_Last(long userId,
                               com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException,
                                      NoSuchSubscriptionException
Throws:
com.liferay.portal.SystemException
NoSuchSubscriptionException

findByUserId_PrevAndNext

Subscription[] findByUserId_PrevAndNext(long subscriptionId,
                                        long userId,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchSubscriptionException
Throws:
com.liferay.portal.SystemException
NoSuchSubscriptionException

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 begin,
                                         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 begin,
                                         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 com.liferay.portal.SystemException,
                                      NoSuchSubscriptionException
Throws:
com.liferay.portal.SystemException
NoSuchSubscriptionException

findByC_C_C_Last

Subscription findByC_C_C_Last(long companyId,
                              long classNameId,
                              long classPK,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchSubscriptionException
Throws:
com.liferay.portal.SystemException
NoSuchSubscriptionException

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 com.liferay.portal.SystemException,
                                              NoSuchSubscriptionException
Throws:
com.liferay.portal.SystemException
NoSuchSubscriptionException

findByC_U_C_C

Subscription findByC_U_C_C(long companyId,
                           long userId,
                           long classNameId,
                           long classPK)
                           throws com.liferay.portal.SystemException,
                                  NoSuchSubscriptionException
Throws:
com.liferay.portal.SystemException
NoSuchSubscriptionException

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

findWithDynamicQuery

java.util.List<Subscription> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

java.util.List<Subscription> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                  int begin,
                                                  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 begin,
                                     int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<Subscription> findAll(int begin,
                                     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

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 com.liferay.portal.SystemException,
                            NoSuchSubscriptionException
Throws:
com.liferay.portal.SystemException
NoSuchSubscriptionException

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

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