com.liferay.portlet.ratings.service.persistence
Interface RatingsEntryPersistence


public interface RatingsEntryPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByC_C(long classNameId, long classPK)
           
 int countByU_C_C(long userId, long classNameId, long classPK)
           
 RatingsEntry create(long entryId)
           
 RatingsEntry fetchByPrimaryKey(long entryId)
           
 RatingsEntry fetchByU_C_C(long userId, long classNameId, long classPK)
           
 java.util.List findAll()
           
 java.util.List findAll(int begin, int end)
           
 java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 RatingsEntry findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 RatingsEntry findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 RatingsEntry[] findByC_C_PrevAndNext(long entryId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByC_C(long classNameId, long classPK)
           
 java.util.List findByC_C(long classNameId, long classPK, int begin, int end)
           
 java.util.List findByC_C(long classNameId, long classPK, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 RatingsEntry findByPrimaryKey(long entryId)
           
 RatingsEntry findByU_C_C(long userId, long classNameId, long classPK)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 RatingsEntry remove(long entryId)
           
 RatingsEntry remove(RatingsEntry ratingsEntry)
           
 void removeAll()
           
 void removeByC_C(long classNameId, long classPK)
           
 void removeByU_C_C(long userId, long classNameId, long classPK)
           
 RatingsEntry update(RatingsEntry ratingsEntry)
           
 RatingsEntry update(RatingsEntry ratingsEntry, boolean merge)
           
 RatingsEntry updateImpl(RatingsEntry ratingsEntry, boolean merge)
           
 

Method Detail

create

public RatingsEntry create(long entryId)

remove

public RatingsEntry remove(long entryId)
                    throws com.liferay.portal.SystemException,
                           NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

remove

public RatingsEntry remove(RatingsEntry ratingsEntry)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public RatingsEntry update(RatingsEntry ratingsEntry)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public RatingsEntry update(RatingsEntry ratingsEntry,
                           boolean merge)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImpl

public RatingsEntry updateImpl(RatingsEntry ratingsEntry,
                               boolean merge)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public RatingsEntry findByPrimaryKey(long entryId)
                              throws com.liferay.portal.SystemException,
                                     NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

fetchByPrimaryKey

public RatingsEntry fetchByPrimaryKey(long entryId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_C

public java.util.List findByC_C(long classNameId,
                                long classPK)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_C

public java.util.List findByC_C(long classNameId,
                                long classPK,
                                int begin,
                                int end)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_C

public java.util.List findByC_C(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_First

public RatingsEntry findByC_C_First(long classNameId,
                                    long classPK,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException,
                                    NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

findByC_C_Last

public RatingsEntry findByC_C_Last(long classNameId,
                                   long classPK,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws com.liferay.portal.SystemException,
                                   NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

findByC_C_PrevAndNext

public RatingsEntry[] findByC_C_PrevAndNext(long entryId,
                                            long classNameId,
                                            long classPK,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

findByU_C_C

public RatingsEntry findByU_C_C(long userId,
                                long classNameId,
                                long classPK)
                         throws com.liferay.portal.SystemException,
                                NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

fetchByU_C_C

public RatingsEntry fetchByU_C_C(long userId,
                                 long classNameId,
                                 long classPK)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

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

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                           int begin,
                                           int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll()
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByC_C

public void removeByC_C(long classNameId,
                        long classPK)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByU_C_C

public void removeByU_C_C(long userId,
                          long classNameId,
                          long classPK)
                   throws com.liferay.portal.SystemException,
                          NoSuchEntryException
Throws:
com.liferay.portal.SystemException
NoSuchEntryException

removeAll

public void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_C

public int countByC_C(long classNameId,
                      long classPK)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByU_C_C

public int countByU_C_C(long userId,
                        long classNameId,
                        long classPK)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException