|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RatingsEntryPersistence
The persistence interface for the ratings entry service.
Never modify this interface directly. Modify service.xml and rerun ServiceBuilder to regnerate this interface.
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()
Counts all the ratings entries. |
int |
countByC_C(long classNameId,
long classPK)
Counts all the ratings entries where classNameId = ? and classPK = ?. |
int |
countByU_C_C(long userId,
long classNameId,
long classPK)
Counts all the ratings entries where userId = ? and classNameId = ? and classPK = ?. |
RatingsEntry |
create(long entryId)
Creates a new ratings entry with the primary key. |
RatingsEntry |
fetchByPrimaryKey(long entryId)
Finds the ratings entry with the primary key or returns null if it could not be found. |
RatingsEntry |
fetchByU_C_C(long userId,
long classNameId,
long classPK)
Finds 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)
Finds the ratings entry where userId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. |
List<RatingsEntry> |
findAll()
Finds all the ratings entries. |
List<RatingsEntry> |
findAll(int start,
int end)
Finds a range of all the ratings entries. |
List<RatingsEntry> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the ratings entries. |
RatingsEntry |
findByC_C_First(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Finds the first ratings entry in the ordered set where classNameId = ? and classPK = ?. |
RatingsEntry |
findByC_C_Last(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Finds the last ratings entry in the ordered set where classNameId = ? and classPK = ?. |
RatingsEntry[] |
findByC_C_PrevAndNext(long entryId,
long classNameId,
long classPK,
OrderByComparator orderByComparator)
Finds the ratings entries before and after the current ratings entry in the ordered set where classNameId = ? and classPK = ?. |
List<RatingsEntry> |
findByC_C(long classNameId,
long classPK)
Finds all the ratings entries where classNameId = ? and classPK = ?. |
List<RatingsEntry> |
findByC_C(long classNameId,
long classPK,
int start,
int end)
Finds a range of all the ratings entries where classNameId = ? and classPK = ?. |
List<RatingsEntry> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the ratings entries where classNameId = ? and classPK = ?. |
RatingsEntry |
findByPrimaryKey(long entryId)
Finds 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)
Finds the ratings entry where userId = ? and classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found. |
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(long classNameId,
long classPK)
Removes all the ratings entries where classNameId = ? and classPK = ? from the database. |
void |
removeByU_C_C(long userId,
long classNameId,
long classPK)
Removes the ratings entry where userId = ? and classNameId = ? and classPK = ? from the database. |
RatingsEntry |
updateImpl(RatingsEntry ratingsEntry,
boolean merge)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
| Method Detail |
|---|
void cacheResult(RatingsEntry ratingsEntry)
ratingsEntry - the ratings entry to cachevoid cacheResult(List<RatingsEntry> ratingsEntries)
ratingsEntries - the ratings entries to cacheRatingsEntry create(long entryId)
entryId - the primary key for the new ratings entry
RatingsEntry remove(long entryId)
throws SystemException,
NoSuchEntryException
entryId - the primary key of the ratings entry to remove
NoSuchEntryException - if a ratings entry with the primary key could not be found
SystemException - if a system exception occurred
RatingsEntry updateImpl(RatingsEntry ratingsEntry,
boolean merge)
throws SystemException
SystemException
RatingsEntry findByPrimaryKey(long entryId)
throws SystemException,
NoSuchEntryException
NoSuchEntryException if it could not be found.
entryId - the primary key of the ratings entry to find
NoSuchEntryException - if a ratings entry with the primary key could not be found
SystemException - if a system exception occurred
RatingsEntry fetchByPrimaryKey(long entryId)
throws SystemException
null if it could not be found.
entryId - the primary key of the ratings entry to find
null if a ratings entry with the primary key could not be found
SystemException - if a system exception occurred
List<RatingsEntry> findByC_C(long classNameId,
long classPK)
throws SystemException
classNameId - the class name id to search withclassPK - the class p k to search with
SystemException - if a system exception occurred
List<RatingsEntry> findByC_C(long classNameId,
long classPK,
int start,
int end)
throws SystemException
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.
classNameId - the class name id to search withclassPK - the class p k to search withstart - the lower bound of the range of ratings entries to returnend - the upper bound of the range of ratings entries to return (not inclusive)
SystemException - if a system exception occurred
List<RatingsEntry> findByC_C(long classNameId,
long classPK,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
classNameId - the class name id to search withclassPK - the class p k to search withstart - the lower bound of the range of ratings entries to returnend - the upper bound of the range of ratings entries to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
RatingsEntry findByC_C_First(long classNameId,
long classPK,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchEntryException
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.
classNameId - the class name id to search withclassPK - the class p k to search withorderByComparator - the comparator to order the set by
NoSuchEntryException - if a matching ratings entry could not be found
SystemException - if a system exception occurred
RatingsEntry findByC_C_Last(long classNameId,
long classPK,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchEntryException
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.
classNameId - the class name id to search withclassPK - the class p k to search withorderByComparator - the comparator to order the set by
NoSuchEntryException - if a matching ratings entry could not be found
SystemException - if a system exception occurred
RatingsEntry[] findByC_C_PrevAndNext(long entryId,
long classNameId,
long classPK,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchEntryException
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.
entryId - the primary key of the current ratings entryclassNameId - the class name id to search withclassPK - the class p k to search withorderByComparator - the comparator to order the set by
NoSuchEntryException - if a ratings entry with the primary key could not be found
SystemException - if a system exception occurred
RatingsEntry findByU_C_C(long userId,
long classNameId,
long classPK)
throws SystemException,
NoSuchEntryException
NoSuchEntryException if it could not be found.
userId - the user id to search withclassNameId - the class name id to search withclassPK - the class p k to search with
NoSuchEntryException - if a matching ratings entry could not be found
SystemException - if a system exception occurred
RatingsEntry fetchByU_C_C(long userId,
long classNameId,
long classPK)
throws SystemException
null if it could not be found. Uses the finder cache.
userId - the user id to search withclassNameId - the class name id to search withclassPK - the class p k to search with
null if a matching ratings entry could not be found
SystemException - if a system exception occurred
RatingsEntry fetchByU_C_C(long userId,
long classNameId,
long classPK,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
userId - the user id to search withclassNameId - the class name id to search withclassPK - the class p k to search with
null if a matching ratings entry could not be found
SystemException - if a system exception occurred
List<RatingsEntry> findAll()
throws SystemException
SystemException - if a system exception occurred
List<RatingsEntry> findAll(int start,
int end)
throws SystemException
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.
start - the lower bound of the range of ratings entries to returnend - the upper bound of the range of ratings entries to return (not inclusive)
SystemException - if a system exception occurred
List<RatingsEntry> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
start - the lower bound of the range of ratings entries to returnend - the upper bound of the range of ratings entries to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
void removeByC_C(long classNameId,
long classPK)
throws SystemException
classNameId - the class name id to search withclassPK - the class p k to search with
SystemException - if a system exception occurred
void removeByU_C_C(long userId,
long classNameId,
long classPK)
throws SystemException,
NoSuchEntryException
userId - the user id to search withclassNameId - the class name id to search withclassPK - the class p k to search with
SystemException - if a system exception occurred
NoSuchEntryException
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countByC_C(long classNameId,
long classPK)
throws SystemException
classNameId - the class name id to search withclassPK - the class p k to search with
SystemException - if a system exception occurred
int countByU_C_C(long userId,
long classNameId,
long classPK)
throws SystemException
userId - the user id to search withclassNameId - the class name id to search withclassPK - the class p k to search with
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||