Class RatingsEntryUtil
com.liferay.portlet.ratings.service.persistence.impl.RatingsEntryPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(RatingsEntry ratingsEntry) Caches the ratings entry in the entity cache if it is enabled.static void
cacheResult
(List<RatingsEntry> ratingsEntries) Caches the ratings entries in the entity cache if it is enabled.static void
static void
clearCache
(RatingsEntry ratingsEntry) static int
countAll()
Returns the number of ratings entries.static int
countByC_C
(long classNameId, long classPK) Returns the number of ratings entries where classNameId = ? and classPK = ?.static int
countByC_C_S
(long classNameId, long classPK, double score) Returns the number of ratings entries where classNameId = ? and classPK = ? and score = ?.static int
countByU_C_C
(long userId, long classNameId, long classPK) Returns the number of ratings entries where userId = ? and classNameId = ? and classPK = ?.static int
countByU_C_C
(long userId, long classNameId, long[] classPKs) Returns the number of ratings entries where userId = ? and classNameId = ? and classPK = any ?.static int
countByUuid
(String uuid) Returns the number of ratings entries where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of ratings entries where uuid = ? and companyId = ?.static long
countWithDynamicQuery
(DynamicQuery dynamicQuery) static RatingsEntry
create
(long entryId) Creates a new ratings entry with the primary key.static RatingsEntry
fetchByC_C_First
(long classNameId, long classPK, OrderByComparator<RatingsEntry> orderByComparator) Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ?.static RatingsEntry
fetchByC_C_Last
(long classNameId, long classPK, OrderByComparator<RatingsEntry> orderByComparator) Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ?.static RatingsEntry
fetchByC_C_S_First
(long classNameId, long classPK, double score, OrderByComparator<RatingsEntry> orderByComparator) Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.static RatingsEntry
fetchByC_C_S_Last
(long classNameId, long classPK, double score, OrderByComparator<RatingsEntry> orderByComparator) Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?.static RatingsEntry
fetchByPrimaryKey
(long entryId) Returns the ratings entry with the primary key or returnsnull
if it could not be found.static Map<Serializable,
RatingsEntry> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static RatingsEntry
fetchByU_C_C
(long userId, long classNameId, long classPK) Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or returnsnull
if it could not be found.static RatingsEntry
fetchByU_C_C
(long userId, long classNameId, long classPK, boolean useFinderCache) Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or returnsnull
if it could not be found, optionally using the finder cache.static RatingsEntry
fetchByUuid_C_First
(String uuid, long companyId, OrderByComparator<RatingsEntry> orderByComparator) Returns the first ratings entry in the ordered set where uuid = ? and companyId = ?.static RatingsEntry
fetchByUuid_C_Last
(String uuid, long companyId, OrderByComparator<RatingsEntry> orderByComparator) Returns the last ratings entry in the ordered set where uuid = ? and companyId = ?.static RatingsEntry
fetchByUuid_First
(String uuid, OrderByComparator<RatingsEntry> orderByComparator) Returns the first ratings entry in the ordered set where uuid = ?.static RatingsEntry
fetchByUuid_Last
(String uuid, OrderByComparator<RatingsEntry> orderByComparator) Returns the last ratings entry in the ordered set where uuid = ?.static List<RatingsEntry>
findAll()
Returns all the ratings entries.static List<RatingsEntry>
findAll
(int start, int end) Returns a range of all the ratings entries.static List<RatingsEntry>
findAll
(int start, int end, OrderByComparator<RatingsEntry> orderByComparator) Returns an ordered range of all the ratings entries.static List<RatingsEntry>
findAll
(int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ratings entries.static List<RatingsEntry>
findByC_C
(long classNameId, long classPK) Returns all the ratings entries where classNameId = ? and classPK = ?.static List<RatingsEntry>
findByC_C
(long classNameId, long classPK, int start, int end) Returns a range of all the ratings entries where classNameId = ? and classPK = ?.static List<RatingsEntry>
findByC_C
(long classNameId, long classPK, int start, int end, OrderByComparator<RatingsEntry> orderByComparator) Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ?.static List<RatingsEntry>
findByC_C
(long classNameId, long classPK, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ?.static RatingsEntry
findByC_C_First
(long classNameId, long classPK, OrderByComparator<RatingsEntry> orderByComparator) Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ?.static RatingsEntry
findByC_C_Last
(long classNameId, long classPK, OrderByComparator<RatingsEntry> orderByComparator) Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ?.static RatingsEntry[]
findByC_C_PrevAndNext
(long entryId, long classNameId, long classPK, OrderByComparator<RatingsEntry> orderByComparator) Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = ? and classPK = ?.static List<RatingsEntry>
findByC_C_S
(long classNameId, long classPK, double score) Returns all the ratings entries where classNameId = ? and classPK = ? and score = ?.static List<RatingsEntry>
findByC_C_S
(long classNameId, long classPK, double score, int start, int end) Returns a range of all the ratings entries where classNameId = ? and classPK = ? and score = ?.static List<RatingsEntry>
findByC_C_S
(long classNameId, long classPK, double score, int start, int end, OrderByComparator<RatingsEntry> orderByComparator) Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ? and score = ?.static List<RatingsEntry>
findByC_C_S
(long classNameId, long classPK, double score, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ? and score = ?.static 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 = ?.static 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 = ?.static 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 = ?.static RatingsEntry
findByPrimaryKey
(long entryId) Returns the ratings entry with the primary key or throws aNoSuchEntryException
if it could not be found.static RatingsEntry
findByU_C_C
(long userId, long classNameId, long classPK) Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or throws aNoSuchEntryException
if it could not be found.static List<RatingsEntry>
findByU_C_C
(long userId, long classNameId, long[] classPKs) Returns all the ratings entries where userId = ? and classNameId = ? and classPK = any ?.static List<RatingsEntry>
findByU_C_C
(long userId, long classNameId, long[] classPKs, int start, int end) Returns a range of all the ratings entries where userId = ? and classNameId = ? and classPK = any ?.static List<RatingsEntry>
findByU_C_C
(long userId, long classNameId, long[] classPKs, int start, int end, OrderByComparator<RatingsEntry> orderByComparator) Returns an ordered range of all the ratings entries where userId = ? and classNameId = ? and classPK = any ?.static List<RatingsEntry>
findByU_C_C
(long userId, long classNameId, long[] classPKs, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ratings entries where userId = ? and classNameId = ? and classPK = ?, optionally using the finder cache.static List<RatingsEntry>
findByUuid
(String uuid) Returns all the ratings entries where uuid = ?.static List<RatingsEntry>
findByUuid
(String uuid, int start, int end) Returns a range of all the ratings entries where uuid = ?.static List<RatingsEntry>
findByUuid
(String uuid, int start, int end, OrderByComparator<RatingsEntry> orderByComparator) Returns an ordered range of all the ratings entries where uuid = ?.static List<RatingsEntry>
findByUuid
(String uuid, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ratings entries where uuid = ?.static List<RatingsEntry>
findByUuid_C
(String uuid, long companyId) Returns all the ratings entries where uuid = ? and companyId = ?.static List<RatingsEntry>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the ratings entries where uuid = ? and companyId = ?.static 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 = ?.static List<RatingsEntry>
findByUuid_C
(String uuid, long companyId, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ratings entries where uuid = ? and companyId = ?.static RatingsEntry
findByUuid_C_First
(String uuid, long companyId, OrderByComparator<RatingsEntry> orderByComparator) Returns the first ratings entry in the ordered set where uuid = ? and companyId = ?.static RatingsEntry
findByUuid_C_Last
(String uuid, long companyId, OrderByComparator<RatingsEntry> orderByComparator) Returns the last ratings entry in the ordered set where uuid = ? and companyId = ?.static 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 = ?.static RatingsEntry
findByUuid_First
(String uuid, OrderByComparator<RatingsEntry> orderByComparator) Returns the first ratings entry in the ordered set where uuid = ?.static RatingsEntry
findByUuid_Last
(String uuid, OrderByComparator<RatingsEntry> orderByComparator) Returns the last ratings entry in the ordered set where uuid = ?.static 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 = ?.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<RatingsEntry> orderByComparator) static RatingsEntryPersistence
static RatingsEntry
remove
(long entryId) Removes the ratings entry with the primary key from the database.static void
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
removeByC_C_S
(long classNameId, long classPK, double score) Removes all the ratings entries where classNameId = ? and classPK = ? and score = ? from the database.static RatingsEntry
removeByU_C_C
(long userId, long classNameId, long classPK) Removes the ratings entry where userId = ? and classNameId = ? and classPK = ? from the database.static void
removeByUuid
(String uuid) Removes all the ratings entries where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the ratings entries where uuid = ? and companyId = ? from the database.static void
setPersistence
(RatingsEntryPersistence persistence) static RatingsEntry
update
(RatingsEntry ratingsEntry) static RatingsEntry
update
(RatingsEntry ratingsEntry, ServiceContext serviceContext) static RatingsEntry
updateImpl
(RatingsEntry ratingsEntry)
-
Constructor Details
-
RatingsEntryUtil
public RatingsEntryUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<RatingsEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) -
findWithDynamicQuery
public static List<RatingsEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<RatingsEntry> orderByComparator) -
update
-
update
-
findByUuid
Returns all the ratings entries where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching ratings entries
-
findByUuid
Returns a range of all the ratings entries where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of ratings entriesend
- the upper bound of the range of ratings entries (not inclusive)- Returns:
- the range of matching ratings entries
-
findByUuid
public static 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
uuid
- the uuidstart
- 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 (optionallynull
)- Returns:
- the ordered range of matching ratings entries
-
findByUuid
public static List<RatingsEntry> findByUuid(String uuid, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ratings entries where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
uuid
- the uuidstart
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ratings entries
-
findByUuid_First
public static RatingsEntry findByUuid_First(String uuid, OrderByComparator<RatingsEntry> orderByComparator) throws NoSuchEntryException Returns the first ratings entry in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ratings entry
- Throws:
NoSuchEntryException
- if a matching ratings entry could not be foundNoSuchEntryException
-
fetchByUuid_First
public static RatingsEntry fetchByUuid_First(String uuid, OrderByComparator<RatingsEntry> orderByComparator) Returns the first ratings entry in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ratings entry, or
null
if a matching ratings entry could not be found
-
findByUuid_Last
public static RatingsEntry findByUuid_Last(String uuid, OrderByComparator<RatingsEntry> orderByComparator) throws NoSuchEntryException Returns the last ratings entry in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ratings entry
- Throws:
NoSuchEntryException
- if a matching ratings entry could not be foundNoSuchEntryException
-
fetchByUuid_Last
public static RatingsEntry fetchByUuid_Last(String uuid, OrderByComparator<RatingsEntry> orderByComparator) Returns the last ratings entry in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ratings entry, or
null
if a matching ratings entry could not be found
-
findByUuid_PrevAndNext
public static 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 entryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ratings entry
- Throws:
NoSuchEntryException
- if a ratings entry with the primary key could not be foundNoSuchEntryException
-
removeByUuid
Removes all the ratings entries where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of ratings entries where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching ratings entries
-
findByUuid_C
Returns all the ratings entries where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching ratings entries
-
findByUuid_C
Returns a range of all the ratings entries where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of ratings entriesend
- the upper bound of the range of ratings entries (not inclusive)- Returns:
- the range of matching ratings entries
-
findByUuid_C
public static 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- 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 (optionallynull
)- Returns:
- the ordered range of matching ratings entries
-
findByUuid_C
public static List<RatingsEntry> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean useFinderCache) 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ratings entries
-
findByUuid_C_First
public static 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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ratings entry
- Throws:
NoSuchEntryException
- if a matching ratings entry could not be foundNoSuchEntryException
-
fetchByUuid_C_First
public static 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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ratings entry, or
null
if a matching ratings entry could not be found
-
findByUuid_C_Last
public static 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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ratings entry
- Throws:
NoSuchEntryException
- if a matching ratings entry could not be foundNoSuchEntryException
-
fetchByUuid_C_Last
public static 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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ratings entry, or
null
if a matching ratings entry could not be found
-
findByUuid_C_PrevAndNext
public static 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 entryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ratings entry
- Throws:
NoSuchEntryException
- if a ratings entry with the primary key could not be foundNoSuchEntryException
-
removeByUuid_C
Removes all the ratings entries where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of ratings entries where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching ratings entries
-
findByC_C
Returns all the ratings entries where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching ratings entries
-
findByC_C
Returns a range of all the ratings entries where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of ratings entriesend
- the upper bound of the range of ratings entries (not inclusive)- Returns:
- the range of matching ratings entries
-
findByC_C
public static 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- 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 (optionallynull
)- Returns:
- the ordered range of matching ratings entries
-
findByC_C
public static List<RatingsEntry> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean useFinderCache) 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ratings entries
-
findByC_C_First
public static 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 IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ratings entry
- Throws:
NoSuchEntryException
- if a matching ratings entry could not be foundNoSuchEntryException
-
fetchByC_C_First
public static 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 IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ratings entry, or
null
if a matching ratings entry could not be found
-
findByC_C_Last
public static 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 IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ratings entry
- Throws:
NoSuchEntryException
- if a matching ratings entry could not be foundNoSuchEntryException
-
fetchByC_C_Last
public static 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 IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ratings entry, or
null
if a matching ratings entry could not be found
-
findByC_C_PrevAndNext
public static 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 entryclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ratings entry
- Throws:
NoSuchEntryException
- if a ratings entry with the primary key could not be foundNoSuchEntryException
-
removeByC_C
public static void removeByC_C(long classNameId, long classPK) Removes all the ratings entries where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pk
-
countByC_C
public static int countByC_C(long classNameId, long classPK) Returns the number of ratings entries where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching ratings entries
-
findByU_C_C
Returns all the ratings entries where userId = ? and classNameId = ? and classPK = any ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
userId
- the user IDclassNameId
- the class name IDclassPKs
- the class pks- Returns:
- the matching ratings entries
-
findByU_C_C
public static List<RatingsEntry> findByU_C_C(long userId, long classNameId, long[] classPKs, int start, int end) Returns a range of all the ratings entries where userId = ? and classNameId = ? and classPK = any ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
userId
- the user IDclassNameId
- the class name IDclassPKs
- the class pksstart
- the lower bound of the range of ratings entriesend
- the upper bound of the range of ratings entries (not inclusive)- Returns:
- the range of matching ratings entries
-
findByU_C_C
public static List<RatingsEntry> findByU_C_C(long userId, long classNameId, long[] classPKs, int start, int end, OrderByComparator<RatingsEntry> orderByComparator) Returns an ordered range of all the ratings entries where userId = ? and classNameId = ? and classPK = any ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
userId
- the user IDclassNameId
- the class name IDclassPKs
- the class pksstart
- 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 (optionallynull
)- Returns:
- the ordered range of matching ratings entries
-
findByU_C_C
public static List<RatingsEntry> findByU_C_C(long userId, long classNameId, long[] classPKs, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ratings entries where userId = ? and classNameId = ? and classPK = ?, optionally using the finder cache.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
userId
- the user IDclassNameId
- the class name IDclassPKs
- the class pksstart
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ratings entries
-
findByU_C_C
public static RatingsEntry findByU_C_C(long userId, long classNameId, long classPK) throws NoSuchEntryException Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or throws aNoSuchEntryException
if it could not be found.- Parameters:
userId
- the user IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching ratings entry
- Throws:
NoSuchEntryException
- if a matching ratings entry could not be foundNoSuchEntryException
-
fetchByU_C_C
Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
userId
- the user IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching ratings entry, or
null
if a matching ratings entry could not be found
-
fetchByU_C_C
public static RatingsEntry fetchByU_C_C(long userId, long classNameId, long classPK, boolean useFinderCache) Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
userId
- the user IDclassNameId
- the class name IDclassPK
- the class pkuseFinderCache
- whether to use the finder cache- Returns:
- the matching ratings entry, or
null
if a matching ratings entry could not be found
-
removeByU_C_C
public static 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 IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the ratings entry that was removed
- Throws:
NoSuchEntryException
-
countByU_C_C
public static 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 IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching ratings entries
-
countByU_C_C
public static int countByU_C_C(long userId, long classNameId, long[] classPKs) Returns the number of ratings entries where userId = ? and classNameId = ? and classPK = any ?.- Parameters:
userId
- the user IDclassNameId
- the class name IDclassPKs
- the class pks- Returns:
- the number of matching ratings entries
-
findByC_C_S
Returns all the ratings entries where classNameId = ? and classPK = ? and score = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkscore
- the score- Returns:
- the matching ratings entries
-
findByC_C_S
public static List<RatingsEntry> findByC_C_S(long classNameId, long classPK, double score, int start, int end) Returns a range of all the ratings entries where classNameId = ? and classPK = ? and score = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkscore
- the scorestart
- the lower bound of the range of ratings entriesend
- the upper bound of the range of ratings entries (not inclusive)- Returns:
- the range of matching ratings entries
-
findByC_C_S
public static 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkscore
- 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 (optionallynull
)- Returns:
- the ordered range of matching ratings entries
-
findByC_C_S
public static List<RatingsEntry> findByC_C_S(long classNameId, long classPK, double score, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean useFinderCache) 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkscore
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ratings entries
-
findByC_C_S_First
public static 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 IDclassPK
- the class pkscore
- the scoreorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ratings entry
- Throws:
NoSuchEntryException
- if a matching ratings entry could not be foundNoSuchEntryException
-
fetchByC_C_S_First
public static 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 IDclassPK
- the class pkscore
- the scoreorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ratings entry, or
null
if a matching ratings entry could not be found
-
findByC_C_S_Last
public static 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 IDclassPK
- the class pkscore
- the scoreorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ratings entry
- Throws:
NoSuchEntryException
- if a matching ratings entry could not be foundNoSuchEntryException
-
fetchByC_C_S_Last
public static 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 IDclassPK
- the class pkscore
- the scoreorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ratings entry, or
null
if a matching ratings entry could not be found
-
findByC_C_S_PrevAndNext
public static 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 entryclassNameId
- the class name IDclassPK
- the class pkscore
- the scoreorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ratings entry
- Throws:
NoSuchEntryException
- if a ratings entry with the primary key could not be foundNoSuchEntryException
-
removeByC_C_S
public static void removeByC_C_S(long classNameId, long classPK, double score) Removes all the ratings entries where classNameId = ? and classPK = ? and score = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pkscore
- the score
-
countByC_C_S
public static 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 IDclassPK
- the class pkscore
- the score- Returns:
- the number of matching ratings entries
-
cacheResult
Caches the ratings entry in the entity cache if it is enabled.- Parameters:
ratingsEntry
- the ratings entry
-
cacheResult
Caches the ratings entries in the entity cache if it is enabled.- Parameters:
ratingsEntries
- the ratings entries
-
create
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
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 foundNoSuchEntryException
-
updateImpl
-
findByPrimaryKey
Returns the ratings entry with the primary key or throws aNoSuchEntryException
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 foundNoSuchEntryException
-
fetchByPrimaryKey
Returns the ratings entry with the primary key or returnsnull
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
-
findAll
Returns all the ratings entries.- Returns:
- the ratings entries
-
findAll
Returns a range of all the ratings entries.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
start
- the lower bound of the range of ratings entriesend
- the upper bound of the range of ratings entries (not inclusive)- Returns:
- the range of ratings entries
-
findAll
public static 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of ratings entries
-
findAll
public static List<RatingsEntry> findAll(int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ratings entries.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRatingsEntryModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of ratings entries
-
removeAll
public static void removeAll()Removes all the ratings entries from the database. -
countAll
public static int countAll()Returns the number of ratings entries.- Returns:
- the number of ratings entries
-
getPersistence
-
setPersistence
-