Liferay 6.1.2-ce-ga3

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

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

public class RatingsEntryUtil
extends Object

The persistence utility for the ratings entry service. This utility wraps RatingsEntryPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
RatingsEntryPersistence, RatingsEntryPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
RatingsEntryUtil()
           
 
Method Summary
static void cacheResult(List<RatingsEntry> ratingsEntries)
          Caches the ratings entries in the entity cache if it is enabled.
static void cacheResult(RatingsEntry ratingsEntry)
          Caches the ratings entry in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(RatingsEntry ratingsEntry)
           
static int countAll()
          Returns the number of ratings entries.
static int countByC_C_S(long classNameId, long classPK, double score)
          Returns the number of ratings entries where classNameId = ? and classPK = ? and score = ?.
static int countByC_C(long classNameId, long classPK)
          Returns the number of ratings entries where classNameId = ? and classPK = ?.
static int countByU_C_C(long userId, long classNameId, long classPK)
          Returns the number of ratings entries where userId = ? and classNameId = ? and classPK = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static RatingsEntry create(long entryId)
          Creates a new ratings entry with the primary key.
static RatingsEntry fetchByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ?.
static RatingsEntry fetchByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ?.
static RatingsEntry fetchByC_C_S_First(long classNameId, long classPK, double score, OrderByComparator orderByComparator)
          Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.
static RatingsEntry fetchByC_C_S_Last(long classNameId, long classPK, double score, OrderByComparator orderByComparator)
          Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.
static RatingsEntry fetchByPrimaryKey(long entryId)
          Returns the ratings entry with the primary key or returns null if it could not be found.
static RatingsEntry fetchByU_C_C(long userId, long classNameId, long classPK)
          Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or returns null if it could not be found.
static RatingsEntry fetchByU_C_C(long userId, long classNameId, long classPK, boolean retrieveFromCache)
          Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
static List<RatingsEntry> findAll()
          Returns all the ratings entries.
static List<RatingsEntry> findAll(int start, int end)
          Returns a range of all the ratings entries.
static List<RatingsEntry> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the ratings entries.
static RatingsEntry findByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ?.
static RatingsEntry findByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ?.
static RatingsEntry[] findByC_C_PrevAndNext(long entryId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = ? and classPK = ?.
static RatingsEntry findByC_C_S_First(long classNameId, long classPK, double score, OrderByComparator orderByComparator)
          Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.
static RatingsEntry findByC_C_S_Last(long classNameId, long classPK, double score, OrderByComparator orderByComparator)
          Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.
static RatingsEntry[] findByC_C_S_PrevAndNext(long entryId, long classNameId, long classPK, double score, OrderByComparator orderByComparator)
          Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.
static List<RatingsEntry> findByC_C_S(long classNameId, long classPK, double score)
          Returns all the ratings entries where classNameId = ? and classPK = ? and score = ?.
static List<RatingsEntry> findByC_C_S(long classNameId, long classPK, double score, int start, int end)
          Returns a range of all the ratings entries where classNameId = ? and classPK = ? and score = ?.
static List<RatingsEntry> findByC_C_S(long classNameId, long classPK, double score, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ? and score = ?.
static List<RatingsEntry> findByC_C(long classNameId, long classPK)
          Returns all the ratings entries where classNameId = ? and classPK = ?.
static List<RatingsEntry> findByC_C(long classNameId, long classPK, int start, int end)
          Returns a range of all the ratings entries where classNameId = ? and classPK = ?.
static List<RatingsEntry> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ?.
static RatingsEntry findByPrimaryKey(long entryId)
          Returns the ratings entry with the primary key or throws a NoSuchEntryException if it could not be found.
static RatingsEntry findByU_C_C(long userId, long classNameId, long classPK)
          Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.
static List<RatingsEntry> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<RatingsEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<RatingsEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static RatingsEntryPersistence getPersistence()
           
static RatingsEntry remove(long entryId)
          Removes the ratings entry with the primary key from the database.
static void removeAll()
          Removes all the ratings entries from the database.
static void removeByC_C_S(long classNameId, long classPK, double score)
          Removes all the ratings entries where classNameId = ? and classPK = ? and score = ? from the database.
static void removeByC_C(long classNameId, long classPK)
          Removes all the ratings entries where classNameId = ? and classPK = ? from the database.
static RatingsEntry removeByU_C_C(long userId, long classNameId, long classPK)
          Removes the ratings entry where userId = ? and classNameId = ? and classPK = ? from the database.
 void setPersistence(RatingsEntryPersistence persistence)
          Deprecated.  
static RatingsEntry update(RatingsEntry ratingsEntry, boolean merge)
           
static RatingsEntry update(RatingsEntry ratingsEntry, boolean merge, ServiceContext serviceContext)
           
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

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(RatingsEntry ratingsEntry)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<RatingsEntry> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                               throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<RatingsEntry> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                      int start,
                                                      int end)
                                               throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<RatingsEntry> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                      int start,
                                                      int end,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static RatingsEntry update(RatingsEntry ratingsEntry,
                                  boolean merge)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static RatingsEntry update(RatingsEntry ratingsEntry,
                                  boolean merge,
                                  ServiceContext serviceContext)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(RatingsEntry ratingsEntry)
Caches the ratings entry in the entity cache if it is enabled.

Parameters:
ratingsEntry - the ratings entry

cacheResult

public static void cacheResult(List<RatingsEntry> ratingsEntries)
Caches the ratings entries in the entity cache if it is enabled.

Parameters:
ratingsEntries - the ratings entries

create

public static RatingsEntry create(long entryId)
Creates a new ratings entry with the primary key. Does not add the ratings entry to the database.

Parameters:
entryId - the primary key for the new ratings entry
Returns:
the new ratings entry

remove

public static RatingsEntry remove(long entryId)
                           throws SystemException,
                                  NoSuchEntryException
Removes the ratings entry with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
entryId - the primary key of the ratings entry
Returns:
the ratings entry that was removed
Throws:
NoSuchEntryException - if a ratings entry with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static RatingsEntry updateImpl(RatingsEntry ratingsEntry,
                                      boolean merge)
                               throws SystemException
Throws:
SystemException

findByPrimaryKey

public static RatingsEntry findByPrimaryKey(long entryId)
                                     throws SystemException,
                                            NoSuchEntryException
Returns the ratings entry with the primary key or throws a NoSuchEntryException if it could not be found.

Parameters:
entryId - the primary key of the ratings entry
Returns:
the ratings entry
Throws:
NoSuchEntryException - if a ratings entry with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static RatingsEntry fetchByPrimaryKey(long entryId)
                                      throws SystemException
Returns the ratings entry with the primary key or returns null if it could not be found.

Parameters:
entryId - the primary key of the ratings entry
Returns:
the ratings entry, or null if a ratings entry with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByC_C

public static List<RatingsEntry> findByC_C(long classNameId,
                                           long classPK)
                                    throws SystemException
Returns all the ratings entries where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the matching ratings entries
Throws:
SystemException - if a system exception occurred

findByC_C

public static List<RatingsEntry> findByC_C(long classNameId,
                                           long classPK,
                                           int start,
                                           int end)
                                    throws SystemException
Returns a range of all the ratings entries where classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of ratings entries
end - the upper bound of the range of ratings entries (not inclusive)
Returns:
the range of matching ratings entries
Throws:
SystemException - if a system exception occurred

findByC_C

public static List<RatingsEntry> findByC_C(long classNameId,
                                           long classPK,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of ratings entries
end - the upper bound of the range of ratings entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching ratings entries
Throws:
SystemException - if a system exception occurred

findByC_C_First

public static RatingsEntry findByC_C_First(long classNameId,
                                           long classPK,
                                           OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchEntryException
Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching ratings entry
Throws:
NoSuchEntryException - if a matching ratings entry could not be found
SystemException - if a system exception occurred

fetchByC_C_First

public static RatingsEntry fetchByC_C_First(long classNameId,
                                            long classPK,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching ratings entry, or null if a matching ratings entry could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_Last

public static RatingsEntry findByC_C_Last(long classNameId,
                                          long classPK,
                                          OrderByComparator orderByComparator)
                                   throws SystemException,
                                          NoSuchEntryException
Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching ratings entry
Throws:
NoSuchEntryException - if a matching ratings entry could not be found
SystemException - if a system exception occurred

fetchByC_C_Last

public static RatingsEntry fetchByC_C_Last(long classNameId,
                                           long classPK,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching ratings entry, or null if a matching ratings entry could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_PrevAndNext

public static RatingsEntry[] findByC_C_PrevAndNext(long entryId,
                                                   long classNameId,
                                                   long classPK,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchEntryException
Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = ? and classPK = ?.

Parameters:
entryId - the primary key of the current ratings entry
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next ratings entry
Throws:
NoSuchEntryException - if a ratings entry with the primary key could not be found
SystemException - if a system exception occurred

findByU_C_C

public static RatingsEntry findByU_C_C(long userId,
                                       long classNameId,
                                       long classPK)
                                throws SystemException,
                                       NoSuchEntryException
Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.

Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
Returns:
the matching ratings entry
Throws:
NoSuchEntryException - if a matching ratings entry could not be found
SystemException - if a system exception occurred

fetchByU_C_C

public static RatingsEntry fetchByU_C_C(long userId,
                                        long classNameId,
                                        long classPK)
                                 throws SystemException
Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
Returns:
the matching ratings entry, or null if a matching ratings entry could not be found
Throws:
SystemException - if a system exception occurred

fetchByU_C_C

public static RatingsEntry fetchByU_C_C(long userId,
                                        long classNameId,
                                        long classPK,
                                        boolean retrieveFromCache)
                                 throws SystemException
Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
retrieveFromCache - whether to use the finder cache
Returns:
the matching ratings entry, or null if a matching ratings entry could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_S

public static List<RatingsEntry> findByC_C_S(long classNameId,
                                             long classPK,
                                             double score)
                                      throws SystemException
Returns all the ratings entries where classNameId = ? and classPK = ? and score = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
score - the score
Returns:
the matching ratings entries
Throws:
SystemException - if a system exception occurred

findByC_C_S

public static List<RatingsEntry> findByC_C_S(long classNameId,
                                             long classPK,
                                             double score,
                                             int start,
                                             int end)
                                      throws SystemException
Returns a range of all the ratings entries where classNameId = ? and classPK = ? and score = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
classNameId - the class name ID
classPK - the class p k
score - the score
start - the lower bound of the range of ratings entries
end - the upper bound of the range of ratings entries (not inclusive)
Returns:
the range of matching ratings entries
Throws:
SystemException - if a system exception occurred

findByC_C_S

public static List<RatingsEntry> findByC_C_S(long classNameId,
                                             long classPK,
                                             double score,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ? and score = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
classNameId - the class name ID
classPK - the class p k
score - the score
start - the lower bound of the range of ratings entries
end - the upper bound of the range of ratings entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching ratings entries
Throws:
SystemException - if a system exception occurred

findByC_C_S_First

public static RatingsEntry findByC_C_S_First(long classNameId,
                                             long classPK,
                                             double score,
                                             OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchEntryException
Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
score - the score
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching ratings entry
Throws:
NoSuchEntryException - if a matching ratings entry could not be found
SystemException - if a system exception occurred

fetchByC_C_S_First

public static RatingsEntry fetchByC_C_S_First(long classNameId,
                                              long classPK,
                                              double score,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
score - the score
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching ratings entry, or null if a matching ratings entry could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_S_Last

public static RatingsEntry findByC_C_S_Last(long classNameId,
                                            long classPK,
                                            double score,
                                            OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchEntryException
Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
score - the score
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching ratings entry
Throws:
NoSuchEntryException - if a matching ratings entry could not be found
SystemException - if a system exception occurred

fetchByC_C_S_Last

public static RatingsEntry fetchByC_C_S_Last(long classNameId,
                                             long classPK,
                                             double score,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
score - the score
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching ratings entry, or null if a matching ratings entry could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_S_PrevAndNext

public static RatingsEntry[] findByC_C_S_PrevAndNext(long entryId,
                                                     long classNameId,
                                                     long classPK,
                                                     double score,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchEntryException
Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.

Parameters:
entryId - the primary key of the current ratings entry
classNameId - the class name ID
classPK - the class p k
score - the score
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next ratings entry
Throws:
NoSuchEntryException - if a ratings entry with the primary key could not be found
SystemException - if a system exception occurred

findAll

public static List<RatingsEntry> findAll()
                                  throws SystemException
Returns all the ratings entries.

Returns:
the ratings entries
Throws:
SystemException - if a system exception occurred

findAll

public static List<RatingsEntry> findAll(int start,
                                         int end)
                                  throws SystemException
Returns a range of all the ratings entries.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of ratings entries
end - the upper bound of the range of ratings entries (not inclusive)
Returns:
the range of ratings entries
Throws:
SystemException - if a system exception occurred

findAll

public static List<RatingsEntry> findAll(int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Returns an ordered range of all the ratings entries.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of ratings entries
end - the upper bound of the range of ratings entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of ratings entries
Throws:
SystemException - if a system exception occurred

removeByC_C

public static void removeByC_C(long classNameId,
                               long classPK)
                        throws SystemException
Removes all the ratings entries where classNameId = ? and classPK = ? from the database.

Parameters:
classNameId - the class name ID
classPK - the class p k
Throws:
SystemException - if a system exception occurred

removeByU_C_C

public static RatingsEntry removeByU_C_C(long userId,
                                         long classNameId,
                                         long classPK)
                                  throws SystemException,
                                         NoSuchEntryException
Removes the ratings entry where userId = ? and classNameId = ? and classPK = ? from the database.

Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
Returns:
the ratings entry that was removed
Throws:
SystemException - if a system exception occurred
NoSuchEntryException

removeByC_C_S

public static void removeByC_C_S(long classNameId,
                                 long classPK,
                                 double score)
                          throws SystemException
Removes all the ratings entries where classNameId = ? and classPK = ? and score = ? from the database.

Parameters:
classNameId - the class name ID
classPK - the class p k
score - the score
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the ratings entries from the database.

Throws:
SystemException - if a system exception occurred

countByC_C

public static int countByC_C(long classNameId,
                             long classPK)
                      throws SystemException
Returns the number of ratings entries where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching ratings entries
Throws:
SystemException - if a system exception occurred

countByU_C_C

public static int countByU_C_C(long userId,
                               long classNameId,
                               long classPK)
                        throws SystemException
Returns the number of ratings entries where userId = ? and classNameId = ? and classPK = ?.

Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching ratings entries
Throws:
SystemException - if a system exception occurred

countByC_C_S

public static int countByC_C_S(long classNameId,
                               long classPK,
                               double score)
                        throws SystemException
Returns the number of ratings entries where classNameId = ? and classPK = ? and score = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
score - the score
Returns:
the number of matching ratings entries
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Returns the number of ratings entries.

Returns:
the number of ratings entries
Throws:
SystemException - if a system exception occurred

getPersistence

public static RatingsEntryPersistence getPersistence()

setPersistence

public void setPersistence(RatingsEntryPersistence persistence)
Deprecated. 


Liferay 6.1.2-ce-ga3