|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.ratings.service.persistence.RatingsEntryUtil
public class RatingsEntryUtil
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.
Never modify this class directly. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
RatingsEntryPersistence
,
RatingsEntryPersistenceImpl
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()
Counts all the ratings entries. |
static int |
countByC_C(long classNameId,
long classPK)
Counts all the ratings entries where classNameId = ? and classPK = ?. |
static int |
countByU_C_C(long userId,
long classNameId,
long classPK)
Counts all the 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 |
fetchByPrimaryKey(long entryId)
Finds 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)
Finds 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)
Finds 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()
Finds all the ratings entries. |
static List<RatingsEntry> |
findAll(int start,
int end)
Finds a range of all the ratings entries. |
static List<RatingsEntry> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the ratings entries. |
static RatingsEntry |
findByC_C_First(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Finds the first ratings entry in the ordered set where classNameId = ? and classPK = ?. |
static RatingsEntry |
findByC_C_Last(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Finds 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)
Finds the ratings entries before and after the current ratings entry in the ordered set where classNameId = ? and classPK = ?. |
static List<RatingsEntry> |
findByC_C(long classNameId,
long classPK)
Finds all the ratings entries where classNameId = ? and classPK = ?. |
static List<RatingsEntry> |
findByC_C(long classNameId,
long classPK,
int start,
int end)
Finds 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)
Finds an ordered range of all the ratings entries where classNameId = ? and classPK = ?. |
static RatingsEntry |
findByPrimaryKey(long entryId)
Finds 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)
Finds 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 RatingsEntry |
remove(RatingsEntry ratingsEntry)
|
static void |
removeAll()
Removes all the ratings entries from the database. |
static void |
removeByC_C(long classNameId,
long classPK)
Removes all the ratings entries where classNameId = ? and classPK = ? from the database. |
static void |
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)
|
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 |
---|
public RatingsEntryUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(RatingsEntry ratingsEntry)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<RatingsEntry> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<RatingsEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<RatingsEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static RatingsEntry remove(RatingsEntry ratingsEntry) throws SystemException
SystemException
BasePersistence.remove(com.liferay.portal.model.BaseModel)
public static RatingsEntry update(RatingsEntry ratingsEntry, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static RatingsEntry update(RatingsEntry ratingsEntry, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(RatingsEntry ratingsEntry)
ratingsEntry
- the ratings entry to cachepublic static void cacheResult(List<RatingsEntry> ratingsEntries)
ratingsEntries
- the ratings entries to cachepublic static RatingsEntry create(long entryId)
entryId
- the primary key for the new ratings entry
public static 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 occurredpublic static RatingsEntry updateImpl(RatingsEntry ratingsEntry, boolean merge) throws SystemException
SystemException
public static 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 occurredpublic static 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 occurredpublic static 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 occurredpublic static 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 occurredpublic static 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 occurredpublic static 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 occurredpublic static 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 occurredpublic static 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 occurredpublic static 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 occurredpublic static 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 occurredpublic static 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 occurredpublic static List<RatingsEntry> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static 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 occurredpublic static 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 occurredpublic static 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 occurredpublic static 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
public static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static 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 occurredpublic static 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 occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static RatingsEntryPersistence getPersistence()
public void setPersistence(RatingsEntryPersistence persistence)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |