|
Liferay 6.1.2-ce-ga3 | |||||||||
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.
Caching information and settings can be found in portal.properties
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 = ?. |
RatingsEntry |
create(long entryId)
Creates a new ratings entry with the primary key. |
RatingsEntry |
fetchByC_C_First(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ?. |
RatingsEntry |
fetchByC_C_Last(long classNameId,
long classPK,
OrderByComparator 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 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 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. |
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. |
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 orderByComparator)
Returns an ordered range of all the ratings entries. |
RatingsEntry |
findByC_C_First(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ?. |
RatingsEntry |
findByC_C_Last(long classNameId,
long classPK,
OrderByComparator 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 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 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 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 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 orderByComparator)
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 orderByComparator)
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 |
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. |
RatingsEntry |
updateImpl(RatingsEntry ratingsEntry,
boolean merge)
|
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
Method Detail |
---|
void cacheResult(RatingsEntry ratingsEntry)
ratingsEntry
- the ratings entryvoid cacheResult(List<RatingsEntry> ratingsEntries)
ratingsEntries
- the ratings entriesRatingsEntry 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
NoSuchEntryException
- if a ratings entry with the primary key could not be found
SystemException
- if a system exception occurredRatingsEntry 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
NoSuchEntryException
- if a ratings entry with the primary key could not be found
SystemException
- if a system exception occurredRatingsEntry fetchByPrimaryKey(long entryId) throws SystemException
null
if it could not be found.
entryId
- the primary key of the ratings entry
null
if a ratings entry with the primary key could not be found
SystemException
- if a system exception occurredList<RatingsEntry> findByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredList<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 IDclassPK
- the class p kstart
- the lower bound of the range of ratings entriesend
- the upper bound of the range of ratings entries (not inclusive)
SystemException
- if a system exception occurredList<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 IDclassPK
- the class p kstart
- the lower bound of the range of ratings entriesend
- the upper bound of the range of ratings entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredRatingsEntry findByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
classNameId
- the class name IDclassPK
- the class p korderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching ratings entry could not be found
SystemException
- if a system exception occurredRatingsEntry fetchByC_C_First(long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException
classNameId
- the class name IDclassPK
- the class p korderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching ratings entry could not be found
SystemException
- if a system exception occurredRatingsEntry findByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
classNameId
- the class name IDclassPK
- the class p korderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching ratings entry could not be found
SystemException
- if a system exception occurredRatingsEntry fetchByC_C_Last(long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException
classNameId
- the class name IDclassPK
- the class p korderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching ratings entry could not be found
SystemException
- if a system exception occurredRatingsEntry[] findByC_C_PrevAndNext(long entryId, long classNameId, long classPK, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
entryId
- the primary key of the current ratings entryclassNameId
- the class name IDclassPK
- the class p korderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a ratings entry with the primary key could not be found
SystemException
- if a system exception occurredRatingsEntry findByU_C_C(long userId, long classNameId, long classPK) throws SystemException, NoSuchEntryException
NoSuchEntryException
if it could not be found.
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p k
NoSuchEntryException
- if a matching ratings entry could not be found
SystemException
- if a system exception occurredRatingsEntry 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 IDclassNameId
- the class name IDclassPK
- the class p k
null
if a matching ratings entry could not be found
SystemException
- if a system exception occurredRatingsEntry 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 IDclassNameId
- the class name IDclassPK
- the class p kretrieveFromCache
- whether to use the finder cache
null
if a matching ratings entry could not be found
SystemException
- if a system exception occurredList<RatingsEntry> findByC_C_S(long classNameId, long classPK, double score) throws SystemException
classNameId
- the class name IDclassPK
- the class p kscore
- the score
SystemException
- if a system exception occurredList<RatingsEntry> findByC_C_S(long classNameId, long classPK, double score, 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 IDclassPK
- the class p kscore
- the scorestart
- the lower bound of the range of ratings entriesend
- the upper bound of the range of ratings entries (not inclusive)
SystemException
- if a system exception occurredList<RatingsEntry> findByC_C_S(long classNameId, long classPK, double score, 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 IDclassPK
- the class p kscore
- the scorestart
- the lower bound of the range of ratings entriesend
- the upper bound of the range of ratings entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredRatingsEntry findByC_C_S_First(long classNameId, long classPK, double score, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
classNameId
- the class name IDclassPK
- the class p kscore
- the scoreorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching ratings entry could not be found
SystemException
- if a system exception occurredRatingsEntry fetchByC_C_S_First(long classNameId, long classPK, double score, OrderByComparator orderByComparator) throws SystemException
classNameId
- the class name IDclassPK
- the class p kscore
- the scoreorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching ratings entry could not be found
SystemException
- if a system exception occurredRatingsEntry findByC_C_S_Last(long classNameId, long classPK, double score, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
classNameId
- the class name IDclassPK
- the class p kscore
- the scoreorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a matching ratings entry could not be found
SystemException
- if a system exception occurredRatingsEntry fetchByC_C_S_Last(long classNameId, long classPK, double score, OrderByComparator orderByComparator) throws SystemException
classNameId
- the class name IDclassPK
- the class p kscore
- the scoreorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching ratings entry could not be found
SystemException
- if a system exception occurredRatingsEntry[] findByC_C_S_PrevAndNext(long entryId, long classNameId, long classPK, double score, OrderByComparator orderByComparator) throws SystemException, NoSuchEntryException
entryId
- the primary key of the current ratings entryclassNameId
- the class name IDclassPK
- the class p kscore
- the scoreorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchEntryException
- if a ratings entry with the primary key could not be found
SystemException
- if a system exception occurredList<RatingsEntry> findAll() throws SystemException
SystemException
- if a system exception occurredList<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 entriesend
- the upper bound of the range of ratings entries (not inclusive)
SystemException
- if a system exception occurredList<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 entriesend
- the upper bound of the range of ratings entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredvoid removeByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredRatingsEntry removeByU_C_C(long userId, long classNameId, long classPK) throws SystemException, NoSuchEntryException
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurred
NoSuchEntryException
void removeByC_C_S(long classNameId, long classPK, double score) throws SystemException
classNameId
- the class name IDclassPK
- the class p kscore
- the score
SystemException
- if a system exception occurredvoid removeAll() throws SystemException
SystemException
- if a system exception occurredint countByC_C(long classNameId, long classPK) throws SystemException
classNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredint countByU_C_C(long userId, long classNameId, long classPK) throws SystemException
userId
- the user IDclassNameId
- the class name IDclassPK
- the class p k
SystemException
- if a system exception occurredint countByC_C_S(long classNameId, long classPK, double score) throws SystemException
classNameId
- the class name IDclassPK
- the class p kscore
- the score
SystemException
- if a system exception occurredint countAll() throws SystemException
SystemException
- if a system exception occurred
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |