com.liferay.portal.service.persistence
Interface SubscriptionPersistence

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface SubscriptionPersistence
extends BasePersistence

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 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 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 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)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

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 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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Subscription> findByUserId(long userId)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Subscription> findByUserId(long userId,
                                                        int start,
                                                        int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

findByC_C_C

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Subscription> findAll()
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Subscription> findAll(int start,
                                                   int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByUserId(long userId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_C_C

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByC_C_C(long companyId,
                               long classNameId,
                               long classPK)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_U_C_C

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByC_U_C_C(long companyId,
                                 long userId,
                                 long classNameId,
                                 long classPK)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException