Liferay 7.0-ce-b4

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

All Superinterfaces:
BasePersistence<RatingsEntry>

@ProviderType
public interface RatingsEntryPersistence
extends BasePersistence<RatingsEntry>

The persistence interface for the ratings entry service.

Caching information and settings can be found in portal.properties

See Also:
com.liferay.portlet.ratings.service.persistence.impl.RatingsEntryPersistenceImpl, RatingsEntryUtil

Method Summary
 void cacheResult(List<RatingsEntry> ratingsEntries)
          Caches the ratings entries in the entity cache if it is enabled.
 void cacheResult(RatingsEntry ratingsEntry)
          Caches the ratings entry in the entity cache if it is enabled.
 int countAll()
          Returns the number of ratings entries.
 int countByC_C_S(long classNameId, long classPK, double score)
          Returns the number of ratings entries where classNameId = ? and classPK = ? and score = ?.
 int countByC_C(long classNameId, long classPK)
          Returns the number of ratings entries where classNameId = ? and classPK = ?.
 int countByU_C_C(long userId, long classNameId, long classPK)
          Returns the number of ratings entries where userId = ? and classNameId = ? and classPK = ?.
 int countByUuid_C(String uuid, long companyId)
          Returns the number of ratings entries where uuid = ? and companyId = ?.
 int countByUuid(String uuid)
          Returns the number of ratings entries where uuid = ?.
 RatingsEntry create(long entryId)
          Creates a new ratings entry with the primary key.
 RatingsEntry fetchByC_C_First(long classNameId, long classPK, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ?.
 RatingsEntry fetchByC_C_Last(long classNameId, long classPK, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ?.
 RatingsEntry fetchByC_C_S_First(long classNameId, long classPK, double score, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.
 RatingsEntry fetchByC_C_S_Last(long classNameId, long classPK, double score, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.
 RatingsEntry fetchByPrimaryKey(long entryId)
          Returns the ratings entry with the primary key or returns null if it could not be found.
 Map<Serializable,RatingsEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 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.
 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.
 RatingsEntry fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the first ratings entry in the ordered set where uuid = ? and companyId = ?.
 RatingsEntry fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the last ratings entry in the ordered set where uuid = ? and companyId = ?.
 RatingsEntry fetchByUuid_First(String uuid, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the first ratings entry in the ordered set where uuid = ?.
 RatingsEntry fetchByUuid_Last(String uuid, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the last ratings entry in the ordered set where uuid = ?.
 List<RatingsEntry> findAll()
          Returns all the ratings entries.
 List<RatingsEntry> findAll(int start, int end)
          Returns a range of all the ratings entries.
 List<RatingsEntry> findAll(int start, int end, OrderByComparator<RatingsEntry> orderByComparator)
          Returns an ordered range of all the ratings entries.
 List<RatingsEntry> findAll(int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the ratings entries.
 RatingsEntry findByC_C_First(long classNameId, long classPK, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ?.
 RatingsEntry findByC_C_Last(long classNameId, long classPK, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ?.
 RatingsEntry[] findByC_C_PrevAndNext(long entryId, long classNameId, long classPK, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = ? and classPK = ?.
 RatingsEntry findByC_C_S_First(long classNameId, long classPK, double score, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.
 RatingsEntry findByC_C_S_Last(long classNameId, long classPK, double score, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.
 RatingsEntry[] findByC_C_S_PrevAndNext(long entryId, long classNameId, long classPK, double score, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.
 List<RatingsEntry> findByC_C_S(long classNameId, long classPK, double score)
          Returns all the ratings entries where classNameId = ? and classPK = ? and score = ?.
 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 = ?.
 List<RatingsEntry> findByC_C_S(long classNameId, long classPK, double score, int start, int end, OrderByComparator<RatingsEntry> orderByComparator)
          Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ? and score = ?.
 List<RatingsEntry> findByC_C_S(long classNameId, long classPK, double score, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ? and score = ?.
 List<RatingsEntry> findByC_C(long classNameId, long classPK)
          Returns all the ratings entries where classNameId = ? and classPK = ?.
 List<RatingsEntry> findByC_C(long classNameId, long classPK, int start, int end)
          Returns a range of all the ratings entries where classNameId = ? and classPK = ?.
 List<RatingsEntry> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<RatingsEntry> orderByComparator)
          Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ?.
 List<RatingsEntry> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ?.
 RatingsEntry findByPrimaryKey(long entryId)
          Returns the ratings entry with the primary key or throws a NoSuchEntryException if it could not be found.
 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.
 RatingsEntry findByUuid_C_First(String uuid, long companyId, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the first ratings entry in the ordered set where uuid = ? and companyId = ?.
 RatingsEntry findByUuid_C_Last(String uuid, long companyId, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the last ratings entry in the ordered set where uuid = ? and companyId = ?.
 RatingsEntry[] findByUuid_C_PrevAndNext(long entryId, String uuid, long companyId, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the ratings entries before and after the current ratings entry in the ordered set where uuid = ? and companyId = ?.
 List<RatingsEntry> findByUuid_C(String uuid, long companyId)
          Returns all the ratings entries where uuid = ? and companyId = ?.
 List<RatingsEntry> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the ratings entries where uuid = ? and companyId = ?.
 List<RatingsEntry> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<RatingsEntry> orderByComparator)
          Returns an ordered range of all the ratings entries where uuid = ? and companyId = ?.
 List<RatingsEntry> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the ratings entries where uuid = ? and companyId = ?.
 RatingsEntry findByUuid_First(String uuid, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the first ratings entry in the ordered set where uuid = ?.
 RatingsEntry findByUuid_Last(String uuid, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the last ratings entry in the ordered set where uuid = ?.
 RatingsEntry[] findByUuid_PrevAndNext(long entryId, String uuid, OrderByComparator<RatingsEntry> orderByComparator)
          Returns the ratings entries before and after the current ratings entry in the ordered set where uuid = ?.
 List<RatingsEntry> findByUuid(String uuid)
          Returns all the ratings entries where uuid = ?.
 List<RatingsEntry> findByUuid(String uuid, int start, int end)
          Returns a range of all the ratings entries where uuid = ?.
 List<RatingsEntry> findByUuid(String uuid, int start, int end, OrderByComparator<RatingsEntry> orderByComparator)
          Returns an ordered range of all the ratings entries where uuid = ?.
 List<RatingsEntry> findByUuid(String uuid, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the ratings entries where uuid = ?.
 Set<String> getBadColumnNames()
           
 RatingsEntry remove(long entryId)
          Removes the ratings entry with the primary key from the database.
 void removeAll()
          Removes all the ratings entries from the database.
 void removeByC_C_S(long classNameId, long classPK, double score)
          Removes all the ratings entries where classNameId = ? and classPK = ? and score = ? from the database.
 void removeByC_C(long classNameId, long classPK)
          Removes all the ratings entries where classNameId = ? and classPK = ? from the database.
 RatingsEntry removeByU_C_C(long userId, long classNameId, long classPK)
          Removes the ratings entry where userId = ? and classNameId = ? and classPK = ? from the database.
 void removeByUuid_C(String uuid, long companyId)
          Removes all the ratings entries where uuid = ? and companyId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the ratings entries where uuid = ? from the database.
 RatingsEntry updateImpl(RatingsEntry ratingsEntry)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByUuid

List<RatingsEntry> findByUuid(String uuid)
Returns all the ratings entries where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the matching ratings entries

findByUuid

List<RatingsEntry> findByUuid(String uuid,
                              int start,
                              int end)
Returns a range of all the ratings entries where uuid = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from RatingsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
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

findByUuid

List<RatingsEntry> findByUuid(String uuid,
                              int start,
                              int end,
                              OrderByComparator<RatingsEntry> orderByComparator)
Returns an ordered range of all the ratings entries where uuid = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from RatingsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
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

findByUuid

List<RatingsEntry> findByUuid(String uuid,
                              int start,
                              int end,
                              OrderByComparator<RatingsEntry> orderByComparator,
                              boolean retrieveFromCache)
Returns an ordered range of all the ratings entries where uuid = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from RatingsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching ratings entries

findByUuid_First

RatingsEntry findByUuid_First(String uuid,
                              OrderByComparator<RatingsEntry> orderByComparator)
                              throws NoSuchEntryException
Returns the first ratings entry in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
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

fetchByUuid_First

RatingsEntry fetchByUuid_First(String uuid,
                               OrderByComparator<RatingsEntry> orderByComparator)
Returns the first ratings entry in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
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

findByUuid_Last

RatingsEntry findByUuid_Last(String uuid,
                             OrderByComparator<RatingsEntry> orderByComparator)
                             throws NoSuchEntryException
Returns the last ratings entry in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
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

fetchByUuid_Last

RatingsEntry fetchByUuid_Last(String uuid,
                              OrderByComparator<RatingsEntry> orderByComparator)
Returns the last ratings entry in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
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

findByUuid_PrevAndNext

RatingsEntry[] findByUuid_PrevAndNext(long entryId,
                                      String uuid,
                                      OrderByComparator<RatingsEntry> orderByComparator)
                                      throws NoSuchEntryException
Returns the ratings entries before and after the current ratings entry in the ordered set where uuid = ?.

Parameters:
entryId - the primary key of the current ratings entry
uuid - the uuid
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

removeByUuid

void removeByUuid(String uuid)
Removes all the ratings entries where uuid = ? from the database.

Parameters:
uuid - the uuid

countByUuid

int countByUuid(String uuid)
Returns the number of ratings entries where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the number of matching ratings entries

findByUuid_C

List<RatingsEntry> findByUuid_C(String uuid,
                                long companyId)
Returns all the ratings entries where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching ratings entries

findByUuid_C

List<RatingsEntry> findByUuid_C(String uuid,
                                long companyId,
                                int start,
                                int end)
Returns a range of all the ratings entries where uuid = ? and companyId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from RatingsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
companyId - the company ID
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

findByUuid_C

List<RatingsEntry> findByUuid_C(String uuid,
                                long companyId,
                                int start,
                                int end,
                                OrderByComparator<RatingsEntry> orderByComparator)
Returns an ordered range of all the ratings entries where uuid = ? and companyId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from RatingsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
companyId - the company ID
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

findByUuid_C

List<RatingsEntry> findByUuid_C(String uuid,
                                long companyId,
                                int start,
                                int end,
                                OrderByComparator<RatingsEntry> orderByComparator,
                                boolean retrieveFromCache)
Returns an ordered range of all the ratings entries where uuid = ? and companyId = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from RatingsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
companyId - the company ID
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching ratings entries

findByUuid_C_First

RatingsEntry findByUuid_C_First(String uuid,
                                long companyId,
                                OrderByComparator<RatingsEntry> orderByComparator)
                                throws NoSuchEntryException
Returns the first ratings entry in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
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

fetchByUuid_C_First

RatingsEntry fetchByUuid_C_First(String uuid,
                                 long companyId,
                                 OrderByComparator<RatingsEntry> orderByComparator)
Returns the first ratings entry in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
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

findByUuid_C_Last

RatingsEntry findByUuid_C_Last(String uuid,
                               long companyId,
                               OrderByComparator<RatingsEntry> orderByComparator)
                               throws NoSuchEntryException
Returns the last ratings entry in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
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

fetchByUuid_C_Last

RatingsEntry fetchByUuid_C_Last(String uuid,
                                long companyId,
                                OrderByComparator<RatingsEntry> orderByComparator)
Returns the last ratings entry in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
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

findByUuid_C_PrevAndNext

RatingsEntry[] findByUuid_C_PrevAndNext(long entryId,
                                        String uuid,
                                        long companyId,
                                        OrderByComparator<RatingsEntry> orderByComparator)
                                        throws NoSuchEntryException
Returns the ratings entries before and after the current ratings entry in the ordered set where uuid = ? and companyId = ?.

Parameters:
entryId - the primary key of the current ratings entry
uuid - the uuid
companyId - the company ID
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

removeByUuid_C

void removeByUuid_C(String uuid,
                    long companyId)
Removes all the ratings entries where uuid = ? and companyId = ? from the database.

Parameters:
uuid - the uuid
companyId - the company ID

countByUuid_C

int countByUuid_C(String uuid,
                  long companyId)
Returns the number of ratings entries where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching ratings entries

findByC_C

List<RatingsEntry> findByC_C(long classNameId,
                             long classPK)
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

findByC_C

List<RatingsEntry> findByC_C(long classNameId,
                             long classPK,
                             int start,
                             int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from RatingsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByC_C

List<RatingsEntry> findByC_C(long classNameId,
                             long classPK,
                             int start,
                             int end,
                             OrderByComparator<RatingsEntry> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from RatingsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByC_C

List<RatingsEntry> findByC_C(long classNameId,
                             long classPK,
                             int start,
                             int end,
                             OrderByComparator<RatingsEntry> orderByComparator,
                             boolean retrieveFromCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from RatingsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching ratings entries

findByC_C_First

RatingsEntry findByC_C_First(long classNameId,
                             long classPK,
                             OrderByComparator<RatingsEntry> orderByComparator)
                             throws 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

fetchByC_C_First

RatingsEntry fetchByC_C_First(long classNameId,
                              long classPK,
                              OrderByComparator<RatingsEntry> orderByComparator)
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

findByC_C_Last

RatingsEntry findByC_C_Last(long classNameId,
                            long classPK,
                            OrderByComparator<RatingsEntry> orderByComparator)
                            throws 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

fetchByC_C_Last

RatingsEntry fetchByC_C_Last(long classNameId,
                             long classPK,
                             OrderByComparator<RatingsEntry> orderByComparator)
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

findByC_C_PrevAndNext

RatingsEntry[] findByC_C_PrevAndNext(long entryId,
                                     long classNameId,
                                     long classPK,
                                     OrderByComparator<RatingsEntry> orderByComparator)
                                     throws 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

removeByC_C

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

Parameters:
classNameId - the class name ID
classPK - the class p k

countByC_C

int countByC_C(long classNameId,
               long classPK)
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

findByU_C_C

RatingsEntry findByU_C_C(long userId,
                         long classNameId,
                         long classPK)
                         throws 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

fetchByU_C_C

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

fetchByU_C_C

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.

Parameters:
userId - the user ID
classNameId - the class name ID
classPK - the class p k
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching ratings entry, or null if a matching ratings entry could not be found

removeByU_C_C

RatingsEntry removeByU_C_C(long userId,
                           long classNameId,
                           long classPK)
                           throws 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:
NoSuchEntryException

countByU_C_C

int countByU_C_C(long userId,
                 long classNameId,
                 long classPK)
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

findByC_C_S

List<RatingsEntry> findByC_C_S(long classNameId,
                               long classPK,
                               double score)
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

findByC_C_S

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 = ?.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from RatingsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByC_C_S

List<RatingsEntry> findByC_C_S(long classNameId,
                               long classPK,
                               double score,
                               int start,
                               int end,
                               OrderByComparator<RatingsEntry> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from RatingsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findByC_C_S

List<RatingsEntry> findByC_C_S(long classNameId,
                               long classPK,
                               double score,
                               int start,
                               int end,
                               OrderByComparator<RatingsEntry> orderByComparator,
                               boolean retrieveFromCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from RatingsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching ratings entries

findByC_C_S_First

RatingsEntry findByC_C_S_First(long classNameId,
                               long classPK,
                               double score,
                               OrderByComparator<RatingsEntry> orderByComparator)
                               throws 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

fetchByC_C_S_First

RatingsEntry fetchByC_C_S_First(long classNameId,
                                long classPK,
                                double score,
                                OrderByComparator<RatingsEntry> orderByComparator)
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

findByC_C_S_Last

RatingsEntry findByC_C_S_Last(long classNameId,
                              long classPK,
                              double score,
                              OrderByComparator<RatingsEntry> orderByComparator)
                              throws 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

fetchByC_C_S_Last

RatingsEntry fetchByC_C_S_Last(long classNameId,
                               long classPK,
                               double score,
                               OrderByComparator<RatingsEntry> orderByComparator)
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

findByC_C_S_PrevAndNext

RatingsEntry[] findByC_C_S_PrevAndNext(long entryId,
                                       long classNameId,
                                       long classPK,
                                       double score,
                                       OrderByComparator<RatingsEntry> orderByComparator)
                                       throws 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

removeByC_C_S

void removeByC_C_S(long classNameId,
                   long classPK,
                   double score)
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

countByC_C_S

int countByC_C_S(long classNameId,
                 long classPK,
                 double score)
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

cacheResult

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

Parameters:
ratingsEntry - the ratings entry

cacheResult

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

Parameters:
ratingsEntries - the ratings entries

create

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

RatingsEntry remove(long entryId)
                    throws 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

updateImpl

RatingsEntry updateImpl(RatingsEntry ratingsEntry)

findByPrimaryKey

RatingsEntry findByPrimaryKey(long entryId)
                              throws 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

fetchByPrimaryKey

RatingsEntry fetchByPrimaryKey(long entryId)
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

fetchByPrimaryKeys

Map<Serializable,RatingsEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<RatingsEntry>

findAll

List<RatingsEntry> findAll()
Returns all the ratings entries.

Returns:
the ratings entries

findAll

List<RatingsEntry> findAll(int start,
                           int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from RatingsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findAll

List<RatingsEntry> findAll(int start,
                           int end,
                           OrderByComparator<RatingsEntry> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from RatingsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

findAll

List<RatingsEntry> findAll(int start,
                           int end,
                           OrderByComparator<RatingsEntry> orderByComparator,
                           boolean retrieveFromCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from RatingsEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of ratings entries

removeAll

void removeAll()
Removes all the ratings entries from the database.


countAll

int countAll()
Returns the number of ratings entries.

Returns:
the number of ratings entries

getBadColumnNames

Set<String> getBadColumnNames()
Specified by:
getBadColumnNames in interface BasePersistence<RatingsEntry>

Liferay 7.0-ce-b4