com.liferay.portlet.ratings.service.persistence
Class RatingsEntryUtil

java.lang.Object
  extended by com.liferay.portlet.ratings.service.persistence.RatingsEntryUtil

public class RatingsEntryUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
RatingsEntryUtil()
           
 
Method Summary
static int countAll()
           
static int countByC_C(long classNameId, long classPK)
           
static int countByU_C_C(long userId, long classNameId, long classPK)
           
static RatingsEntry create(long entryId)
           
static RatingsEntry fetchByPrimaryKey(long entryId)
           
static RatingsEntry fetchByU_C_C(long userId, long classNameId, long classPK)
           
static java.util.List<RatingsEntry> findAll()
           
static java.util.List<RatingsEntry> findAll(int start, int end)
           
static java.util.List<RatingsEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static RatingsEntry findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static RatingsEntry findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static RatingsEntry[] findByC_C_PrevAndNext(long entryId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<RatingsEntry> findByC_C(long classNameId, long classPK)
           
static java.util.List<RatingsEntry> findByC_C(long classNameId, long classPK, int start, int end)
           
static java.util.List<RatingsEntry> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static RatingsEntry findByPrimaryKey(long entryId)
           
static RatingsEntry findByU_C_C(long userId, long classNameId, long classPK)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static RatingsEntryPersistence getPersistence()
           
static RatingsEntry remove(long entryId)
           
static RatingsEntry remove(RatingsEntry ratingsEntry)
           
static void removeAll()
           
static void removeByC_C(long classNameId, long classPK)
           
static void removeByU_C_C(long userId, long classNameId, long classPK)
           
 void setPersistence(RatingsEntryPersistence persistence)
           
static RatingsEntry update(RatingsEntry ratingsEntry)
          Deprecated. Use update(RatingsEntry ratingsEntry, boolean merge).
static RatingsEntry update(RatingsEntry ratingsEntry, boolean merge)
          Add, update, or merge, the entity.
static RatingsEntry updateImpl(RatingsEntry ratingsEntry, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RatingsEntryUtil

public RatingsEntryUtil()
Method Detail

create

public static RatingsEntry create(long entryId)

remove

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

remove

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

update

public static RatingsEntry update(RatingsEntry ratingsEntry)
                           throws com.liferay.portal.SystemException
Deprecated. Use update(RatingsEntry ratingsEntry, boolean merge).

Throws:
com.liferay.portal.SystemException

update

public static RatingsEntry update(RatingsEntry ratingsEntry,
                                  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:
ratingsEntry - 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 ratingsEntry 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

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

findByPrimaryKey

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

fetchByPrimaryKey

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

findByC_C

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

findByC_C

public static java.util.List<RatingsEntry> findByC_C(long classNameId,
                                                     long classPK,
                                                     int start,
                                                     int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_C

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

public static 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 static 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 static 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 static 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 static RatingsEntry fetchByU_C_C(long userId,
                                        long classNameId,
                                        long classPK)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

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

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

public static java.util.List<RatingsEntry> findAll()
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<RatingsEntry> findAll(int start,
                                                   int end)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<RatingsEntry> findAll(int start,
                                                   int end,
                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByC_C

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

removeByU_C_C

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

removeAll

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

countByC_C

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

countByU_C_C

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

countAll

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

getPersistence

public static RatingsEntryPersistence getPersistence()

setPersistence

public void setPersistence(RatingsEntryPersistence persistence)