@ProviderType
public class RatingsEntryUtil
extends Object
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
RatingsEntryPersistence
,
RatingsEntryPersistenceImpl
Constructor and Description |
---|
RatingsEntryUtil() |
Modifier and Type | Method and Description |
---|---|
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()
Returns the number of ratings entries.
|
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 |
countByC_C(long classNameId,
long classPK)
Returns the number of ratings entries where classNameId = ? and classPK = ?.
|
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_C(String uuid,
long companyId)
Returns the number of ratings entries where uuid = ? and companyId = ?.
|
static int |
countByUuid(String uuid)
Returns the number of ratings entries where uuid = ?.
|
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 returns
null 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 returns
null if it could not be found. |
static 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. |
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 retrieveFromCache)
Returns an ordered range of all the ratings entries.
|
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 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 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 retrieveFromCache)
Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ? and score = ?.
|
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 retrieveFromCache)
Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ?.
|
static RatingsEntry |
findByPrimaryKey(long entryId)
Returns 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)
Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or throws a
NoSuchEntryException 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 retrieveFromCache)
Returns an ordered range of all the ratings entries where userId = ? and classNameId = ? and classPK = ?, optionally using the finder cache.
|
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 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 retrieveFromCache)
Returns an ordered range of all the ratings entries 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> |
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 retrieveFromCache)
Returns an ordered range of all the ratings entries 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 Set<String> |
getBadColumnNames() |
static RatingsEntryPersistence |
getPersistence() |
static RatingsEntry |
remove(long entryId)
Removes the ratings entry with the primary key from the database.
|
static void |
removeAll()
Removes all the ratings entries 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 void |
removeByC_C(long classNameId,
long classPK)
Removes all the ratings entries where classNameId = ? and classPK = ? 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_C(String uuid,
long companyId)
Removes all the ratings entries where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(String uuid)
Removes all the ratings entries where uuid = ? from the database.
|
static RatingsEntry |
update(RatingsEntry ratingsEntry) |
static RatingsEntry |
update(RatingsEntry ratingsEntry,
ServiceContext serviceContext) |
static RatingsEntry |
updateImpl(RatingsEntry ratingsEntry) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(RatingsEntry ratingsEntry)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<RatingsEntry> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<RatingsEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<RatingsEntry> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<RatingsEntry> orderByComparator)
public static RatingsEntry update(RatingsEntry ratingsEntry)
public static RatingsEntry update(RatingsEntry ratingsEntry, ServiceContext serviceContext)
public static List<RatingsEntry> findByUuid(String uuid)
uuid
- the uuidpublic static List<RatingsEntry> findByUuid(String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of ratings entriesend
- the upper bound of the range of ratings entries (not inclusive)public static List<RatingsEntry> findByUuid(String uuid, int start, int end, OrderByComparator<RatingsEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static List<RatingsEntry> findByUuid(String uuid, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static RatingsEntry findByUuid_First(String uuid, OrderByComparator<RatingsEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ratings entry could not be foundpublic static RatingsEntry fetchByUuid_First(String uuid, OrderByComparator<RatingsEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ratings entry could not be foundpublic static RatingsEntry findByUuid_Last(String uuid, OrderByComparator<RatingsEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ratings entry could not be foundpublic static RatingsEntry fetchByUuid_Last(String uuid, OrderByComparator<RatingsEntry> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ratings entry could not be foundpublic static RatingsEntry[] findByUuid_PrevAndNext(long entryId, String uuid, OrderByComparator<RatingsEntry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current ratings entryuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a ratings entry with the primary key could not be foundpublic static void removeByUuid(String uuid)
uuid
- the uuidpublic static int countByUuid(String uuid)
uuid
- the uuidpublic static List<RatingsEntry> findByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static List<RatingsEntry> findByUuid_C(String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)public static List<RatingsEntry> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<RatingsEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static List<RatingsEntry> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static RatingsEntry findByUuid_C_First(String uuid, long companyId, OrderByComparator<RatingsEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ratings entry could not be foundpublic static RatingsEntry fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<RatingsEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ratings entry could not be foundpublic static RatingsEntry findByUuid_C_Last(String uuid, long companyId, OrderByComparator<RatingsEntry> orderByComparator) throws NoSuchEntryException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ratings entry could not be foundpublic static RatingsEntry fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<RatingsEntry> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ratings entry could not be foundpublic static RatingsEntry[] findByUuid_C_PrevAndNext(long entryId, String uuid, long companyId, OrderByComparator<RatingsEntry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current ratings entryuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a ratings entry with the primary key could not be foundpublic static void removeByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static List<RatingsEntry> findByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static List<RatingsEntry> findByC_C(long classNameId, long classPK, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)public static List<RatingsEntry> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<RatingsEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static List<RatingsEntry> findByC_C(long classNameId, long classPK, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static RatingsEntry findByC_C_First(long classNameId, long classPK, OrderByComparator<RatingsEntry> orderByComparator) throws NoSuchEntryException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ratings entry could not be foundpublic static RatingsEntry fetchByC_C_First(long classNameId, long classPK, OrderByComparator<RatingsEntry> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ratings entry could not be foundpublic static RatingsEntry findByC_C_Last(long classNameId, long classPK, OrderByComparator<RatingsEntry> orderByComparator) throws NoSuchEntryException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ratings entry could not be foundpublic static RatingsEntry fetchByC_C_Last(long classNameId, long classPK, OrderByComparator<RatingsEntry> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ratings entry could not be foundpublic static RatingsEntry[] findByC_C_PrevAndNext(long entryId, long classNameId, long classPK, OrderByComparator<RatingsEntry> orderByComparator) throws NoSuchEntryException
entryId
- the primary key of the current ratings entryclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a ratings entry with the primary key could not be foundpublic static void removeByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static int countByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static List<RatingsEntry> findByU_C_C(long userId, long classNameId, long[] classPKs)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDclassNameId
- the class name IDclassPKs
- the class pkspublic static List<RatingsEntry> findByU_C_C(long userId, long classNameId, long[] classPKs, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)public static List<RatingsEntry> findByU_C_C(long userId, long classNameId, long[] classPKs, int start, int end, OrderByComparator<RatingsEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static List<RatingsEntry> findByU_C_C(long userId, long classNameId, long[] classPKs, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userId
- the user IDclassNameId
- 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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static RatingsEntry findByU_C_C(long userId, long classNameId, long classPK) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.userId
- the user IDclassNameId
- the class name IDclassPK
- the class pkNoSuchEntryException
- if a matching ratings entry could not be foundpublic static RatingsEntry fetchByU_C_C(long userId, long classNameId, long classPK)
null
if it could not be found. Uses the finder cache.userId
- the user IDclassNameId
- the class name IDclassPK
- the class pknull
if a matching ratings entry could not be foundpublic static RatingsEntry fetchByU_C_C(long userId, long classNameId, long classPK, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.userId
- the user IDclassNameId
- the class name IDclassPK
- the class pkretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching ratings entry could not be foundpublic static RatingsEntry removeByU_C_C(long userId, long classNameId, long classPK) throws NoSuchEntryException
userId
- the user IDclassNameId
- the class name IDclassPK
- the class pkNoSuchEntryException
public static int countByU_C_C(long userId, long classNameId, long classPK)
userId
- the user IDclassNameId
- the class name IDclassPK
- the class pkpublic static int countByU_C_C(long userId, long classNameId, long[] classPKs)
userId
- the user IDclassNameId
- the class name IDclassPKs
- the class pkspublic static List<RatingsEntry> findByC_C_S(long classNameId, long classPK, double score)
classNameId
- the class name IDclassPK
- the class pkscore
- the scorepublic static List<RatingsEntry> findByC_C_S(long classNameId, long classPK, double score, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)public static List<RatingsEntry> findByC_C_S(long classNameId, long classPK, double score, int start, int end, OrderByComparator<RatingsEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static List<RatingsEntry> findByC_C_S(long classNameId, long classPK, double score, int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static RatingsEntry findByC_C_S_First(long classNameId, long classPK, double score, OrderByComparator<RatingsEntry> orderByComparator) throws NoSuchEntryException
classNameId
- the class name IDclassPK
- the class pkscore
- the scoreorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ratings entry could not be foundpublic static RatingsEntry fetchByC_C_S_First(long classNameId, long classPK, double score, OrderByComparator<RatingsEntry> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkscore
- the scoreorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ratings entry could not be foundpublic static RatingsEntry findByC_C_S_Last(long classNameId, long classPK, double score, OrderByComparator<RatingsEntry> orderByComparator) throws NoSuchEntryException
classNameId
- the class name IDclassPK
- the class pkscore
- the scoreorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching ratings entry could not be foundpublic static RatingsEntry fetchByC_C_S_Last(long classNameId, long classPK, double score, OrderByComparator<RatingsEntry> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkscore
- the scoreorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ratings entry could not be foundpublic static RatingsEntry[] findByC_C_S_PrevAndNext(long entryId, long classNameId, long classPK, double score, OrderByComparator<RatingsEntry> orderByComparator) throws NoSuchEntryException
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 (optionally null
)NoSuchEntryException
- if a ratings entry with the primary key could not be foundpublic static void removeByC_C_S(long classNameId, long classPK, double score)
classNameId
- the class name IDclassPK
- the class pkscore
- the scorepublic static int countByC_C_S(long classNameId, long classPK, double score)
classNameId
- the class name IDclassPK
- the class pkscore
- the scorepublic static void cacheResult(RatingsEntry ratingsEntry)
ratingsEntry
- the ratings entrypublic static void cacheResult(List<RatingsEntry> ratingsEntries)
ratingsEntries
- the ratings entriespublic static RatingsEntry create(long entryId)
entryId
- the primary key for the new ratings entrypublic static RatingsEntry remove(long entryId) throws NoSuchEntryException
entryId
- the primary key of the ratings entryNoSuchEntryException
- if a ratings entry with the primary key could not be foundpublic static RatingsEntry updateImpl(RatingsEntry ratingsEntry)
public static RatingsEntry findByPrimaryKey(long entryId) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.entryId
- the primary key of the ratings entryNoSuchEntryException
- if a ratings entry with the primary key could not be foundpublic static RatingsEntry fetchByPrimaryKey(long entryId)
null
if it could not be found.entryId
- the primary key of the ratings entrynull
if a ratings entry with the primary key could not be foundpublic static Map<Serializable,RatingsEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<RatingsEntry> findAll()
public static List<RatingsEntry> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of ratings entriesend
- the upper bound of the range of ratings entries (not inclusive)public static List<RatingsEntry> findAll(int start, int end, OrderByComparator<RatingsEntry> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)public static List<RatingsEntry> findAll(int start, int end, OrderByComparator<RatingsEntry> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from RatingsEntryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static Set<String> getBadColumnNames()
public static RatingsEntryPersistence getPersistence()