@ProviderType
public class ScorePointUtil
extends java.lang.Object
com.liferay.content.targeting.rule.score.points.service.persistence.impl.ScorePointPersistenceImpl
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
ScorePointPersistence
,
com.liferay.content.targeting.rule.score.points.service.persistence.impl.ScorePointPersistenceImpl
Constructor and Description |
---|
ScorePointUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<ScorePoint> scorePoints)
Caches the score points in the entity cache if it is enabled.
|
static void |
cacheResult(ScorePoint scorePoint)
Caches the score point in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ScorePoint scorePoint) |
static int |
countAll()
Returns the number of score points.
|
static int |
countByC_U(long anonymousUserId,
long userSegmentId)
Returns the number of score points where anonymousUserId = ? and userSegmentId = ?.
|
static int |
countByUserSegmentId(long userSegmentId)
Returns the number of score points where userSegmentId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of score points where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of score points where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static ScorePoint |
create(long scorePointId)
Creates a new score point with the primary key.
|
static ScorePoint |
fetchByC_U(long anonymousUserId,
long userSegmentId)
Returns the score point where anonymousUserId = ? and userSegmentId = ? or returns
null if it could not be found. |
static ScorePoint |
fetchByC_U(long anonymousUserId,
long userSegmentId,
boolean retrieveFromCache)
Returns the score point where anonymousUserId = ? and userSegmentId = ? or returns
null if it could not be found, optionally using the finder cache. |
static ScorePoint |
fetchByPrimaryKey(long scorePointId)
Returns the score point with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,ScorePoint> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static ScorePoint |
fetchByUserSegmentId_First(long userSegmentId,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns the first score point in the ordered set where userSegmentId = ?.
|
static ScorePoint |
fetchByUserSegmentId_Last(long userSegmentId,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns the last score point in the ordered set where userSegmentId = ?.
|
static ScorePoint |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns the first score point in the ordered set where uuid = ? and companyId = ?.
|
static ScorePoint |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns the last score point in the ordered set where uuid = ? and companyId = ?.
|
static ScorePoint |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns the first score point in the ordered set where uuid = ?.
|
static ScorePoint |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns the last score point in the ordered set where uuid = ?.
|
static java.util.List<ScorePoint> |
findAll()
Returns all the score points.
|
static java.util.List<ScorePoint> |
findAll(int start,
int end)
Returns a range of all the score points.
|
static java.util.List<ScorePoint> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns an ordered range of all the score points.
|
static java.util.List<ScorePoint> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the score points.
|
static ScorePoint |
findByC_U(long anonymousUserId,
long userSegmentId)
Returns the score point where anonymousUserId = ? and userSegmentId = ? or throws a
NoSuchScorePointException if it could not be found. |
static ScorePoint |
findByPrimaryKey(long scorePointId)
Returns the score point with the primary key or throws a
NoSuchScorePointException if it could not be found. |
static ScorePoint |
findByUserSegmentId_First(long userSegmentId,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns the first score point in the ordered set where userSegmentId = ?.
|
static ScorePoint |
findByUserSegmentId_Last(long userSegmentId,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns the last score point in the ordered set where userSegmentId = ?.
|
static ScorePoint[] |
findByUserSegmentId_PrevAndNext(long scorePointId,
long userSegmentId,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns the score points before and after the current score point in the ordered set where userSegmentId = ?.
|
static java.util.List<ScorePoint> |
findByUserSegmentId(long userSegmentId)
Returns all the score points where userSegmentId = ?.
|
static java.util.List<ScorePoint> |
findByUserSegmentId(long userSegmentId,
int start,
int end)
Returns a range of all the score points where userSegmentId = ?.
|
static java.util.List<ScorePoint> |
findByUserSegmentId(long userSegmentId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns an ordered range of all the score points where userSegmentId = ?.
|
static java.util.List<ScorePoint> |
findByUserSegmentId(long userSegmentId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the score points where userSegmentId = ?.
|
static ScorePoint |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns the first score point in the ordered set where uuid = ? and companyId = ?.
|
static ScorePoint |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns the last score point in the ordered set where uuid = ? and companyId = ?.
|
static ScorePoint[] |
findByUuid_C_PrevAndNext(long scorePointId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns the score points before and after the current score point in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<ScorePoint> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the score points where uuid = ? and companyId = ?.
|
static java.util.List<ScorePoint> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the score points where uuid = ? and companyId = ?.
|
static java.util.List<ScorePoint> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns an ordered range of all the score points where uuid = ? and companyId = ?.
|
static java.util.List<ScorePoint> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the score points where uuid = ? and companyId = ?.
|
static ScorePoint |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns the first score point in the ordered set where uuid = ?.
|
static ScorePoint |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns the last score point in the ordered set where uuid = ?.
|
static ScorePoint[] |
findByUuid_PrevAndNext(long scorePointId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns the score points before and after the current score point in the ordered set where uuid = ?.
|
static java.util.List<ScorePoint> |
findByUuid(java.lang.String uuid)
Returns all the score points where uuid = ?.
|
static java.util.List<ScorePoint> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the score points where uuid = ?.
|
static java.util.List<ScorePoint> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
Returns an ordered range of all the score points where uuid = ?.
|
static java.util.List<ScorePoint> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the score points where uuid = ?.
|
static java.util.List<ScorePoint> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<ScorePoint> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ScorePoint> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static ScorePointPersistence |
getPersistence() |
static ScorePoint |
remove(long scorePointId)
Removes the score point with the primary key from the database.
|
static void |
removeAll()
Removes all the score points from the database.
|
static ScorePoint |
removeByC_U(long anonymousUserId,
long userSegmentId)
Removes the score point where anonymousUserId = ? and userSegmentId = ? from the database.
|
static void |
removeByUserSegmentId(long userSegmentId)
Removes all the score points where userSegmentId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the score points where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the score points where uuid = ? from the database.
|
static ScorePoint |
update(ScorePoint scorePoint) |
static ScorePoint |
update(ScorePoint scorePoint,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static ScorePoint |
updateImpl(ScorePoint scorePoint) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ScorePoint scorePoint)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.List<ScorePoint> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<ScorePoint> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<ScorePoint> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ScorePoint update(ScorePoint scorePoint)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static ScorePoint update(ScorePoint scorePoint, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<ScorePoint> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ScorePoint> findByUuid(java.lang.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 ScorePointModelImpl
. 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 score pointsend
- the upper bound of the range of score points (not inclusive)public static java.util.List<ScorePoint> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> 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 ScorePointModelImpl
. 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 score pointsend
- the upper bound of the range of score points (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ScorePoint> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> 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 ScorePointModelImpl
. 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 score pointsend
- the upper bound of the range of score points (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static ScorePoint findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator) throws NoSuchScorePointException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchScorePointException
- if a matching score point could not be foundpublic static ScorePoint fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching score point could not be foundpublic static ScorePoint findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator) throws NoSuchScorePointException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchScorePointException
- if a matching score point could not be foundpublic static ScorePoint fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching score point could not be foundpublic static ScorePoint[] findByUuid_PrevAndNext(long scorePointId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator) throws NoSuchScorePointException
scorePointId
- the primary key of the current score pointuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchScorePointException
- if a score point with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<ScorePoint> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ScorePoint> findByUuid_C(java.lang.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 ScorePointModelImpl
. 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 score pointsend
- the upper bound of the range of score points (not inclusive)public static java.util.List<ScorePoint> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> 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 ScorePointModelImpl
. 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 score pointsend
- the upper bound of the range of score points (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ScorePoint> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> 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 ScorePointModelImpl
. 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 score pointsend
- the upper bound of the range of score points (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static ScorePoint findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator) throws NoSuchScorePointException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchScorePointException
- if a matching score point could not be foundpublic static ScorePoint fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching score point could not be foundpublic static ScorePoint findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator) throws NoSuchScorePointException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchScorePointException
- if a matching score point could not be foundpublic static ScorePoint fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching score point could not be foundpublic static ScorePoint[] findByUuid_C_PrevAndNext(long scorePointId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator) throws NoSuchScorePointException
scorePointId
- the primary key of the current score pointuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchScorePointException
- if a score point with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<ScorePoint> findByUserSegmentId(long userSegmentId)
userSegmentId
- the user segment IDpublic static java.util.List<ScorePoint> findByUserSegmentId(long userSegmentId, 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 ScorePointModelImpl
. 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.
userSegmentId
- the user segment IDstart
- the lower bound of the range of score pointsend
- the upper bound of the range of score points (not inclusive)public static java.util.List<ScorePoint> findByUserSegmentId(long userSegmentId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> 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 ScorePointModelImpl
. 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.
userSegmentId
- the user segment IDstart
- the lower bound of the range of score pointsend
- the upper bound of the range of score points (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ScorePoint> findByUserSegmentId(long userSegmentId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> 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 ScorePointModelImpl
. 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.
userSegmentId
- the user segment IDstart
- the lower bound of the range of score pointsend
- the upper bound of the range of score points (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static ScorePoint findByUserSegmentId_First(long userSegmentId, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator) throws NoSuchScorePointException
userSegmentId
- the user segment IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchScorePointException
- if a matching score point could not be foundpublic static ScorePoint fetchByUserSegmentId_First(long userSegmentId, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
userSegmentId
- the user segment IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching score point could not be foundpublic static ScorePoint findByUserSegmentId_Last(long userSegmentId, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator) throws NoSuchScorePointException
userSegmentId
- the user segment IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchScorePointException
- if a matching score point could not be foundpublic static ScorePoint fetchByUserSegmentId_Last(long userSegmentId, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator)
userSegmentId
- the user segment IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching score point could not be foundpublic static ScorePoint[] findByUserSegmentId_PrevAndNext(long scorePointId, long userSegmentId, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> orderByComparator) throws NoSuchScorePointException
scorePointId
- the primary key of the current score pointuserSegmentId
- the user segment IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchScorePointException
- if a score point with the primary key could not be foundpublic static void removeByUserSegmentId(long userSegmentId)
userSegmentId
- the user segment IDpublic static int countByUserSegmentId(long userSegmentId)
userSegmentId
- the user segment IDpublic static ScorePoint findByC_U(long anonymousUserId, long userSegmentId) throws NoSuchScorePointException
NoSuchScorePointException
if it could not be found.anonymousUserId
- the anonymous user IDuserSegmentId
- the user segment IDNoSuchScorePointException
- if a matching score point could not be foundpublic static ScorePoint fetchByC_U(long anonymousUserId, long userSegmentId)
null
if it could not be found. Uses the finder cache.anonymousUserId
- the anonymous user IDuserSegmentId
- the user segment IDnull
if a matching score point could not be foundpublic static ScorePoint fetchByC_U(long anonymousUserId, long userSegmentId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.anonymousUserId
- the anonymous user IDuserSegmentId
- the user segment IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching score point could not be foundpublic static ScorePoint removeByC_U(long anonymousUserId, long userSegmentId) throws NoSuchScorePointException
anonymousUserId
- the anonymous user IDuserSegmentId
- the user segment IDNoSuchScorePointException
public static int countByC_U(long anonymousUserId, long userSegmentId)
anonymousUserId
- the anonymous user IDuserSegmentId
- the user segment IDpublic static void cacheResult(ScorePoint scorePoint)
scorePoint
- the score pointpublic static void cacheResult(java.util.List<ScorePoint> scorePoints)
scorePoints
- the score pointspublic static ScorePoint create(long scorePointId)
scorePointId
- the primary key for the new score pointpublic static ScorePoint remove(long scorePointId) throws NoSuchScorePointException
scorePointId
- the primary key of the score pointNoSuchScorePointException
- if a score point with the primary key could not be foundpublic static ScorePoint updateImpl(ScorePoint scorePoint)
public static ScorePoint findByPrimaryKey(long scorePointId) throws NoSuchScorePointException
NoSuchScorePointException
if it could not be found.scorePointId
- the primary key of the score pointNoSuchScorePointException
- if a score point with the primary key could not be foundpublic static ScorePoint fetchByPrimaryKey(long scorePointId)
null
if it could not be found.scorePointId
- the primary key of the score pointnull
if a score point with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,ScorePoint> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<ScorePoint> findAll()
public static java.util.List<ScorePoint> 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 ScorePointModelImpl
. 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 score pointsend
- the upper bound of the range of score points (not inclusive)public static java.util.List<ScorePoint> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> 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 ScorePointModelImpl
. 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 score pointsend
- the upper bound of the range of score points (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<ScorePoint> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ScorePoint> 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 ScorePointModelImpl
. 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 score pointsend
- the upper bound of the range of score points (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 java.util.Set<java.lang.String> getBadColumnNames()
public static ScorePointPersistence getPersistence()