Class CTScoreUtil
com.liferay.change.tracking.service.persistence.impl.CTScorePersistenceImpl
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CTScore ctScore) Caches the ct score in the entity cache if it is enabled.static void
cacheResult
(List<CTScore> ctScores) Caches the ct scores in the entity cache if it is enabled.static void
static void
clearCache
(CTScore ctScore) static int
countAll()
Returns the number of ct scores.static int
countByCtCollectionId
(long ctCollectionId) Returns the number of ct scores where ctCollectionId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CTScore
create
(long ctScoreId) Creates a new ct score with the primary key.static CTScore
fetchByCtCollectionId
(long ctCollectionId) Returns the ct score where ctCollectionId = ? or returnsnull
if it could not be found.static CTScore
fetchByCtCollectionId
(long ctCollectionId, boolean useFinderCache) Returns the ct score where ctCollectionId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CTScore
fetchByPrimaryKey
(long ctScoreId) Returns the ct score with the primary key or returnsnull
if it could not be found.static Map<Serializable,
CTScore> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) findAll()
Returns all the ct scores.findAll
(int start, int end) Returns a range of all the ct scores.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTScore> orderByComparator) Returns an ordered range of all the ct scores.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTScore> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ct scores.static CTScore
findByCtCollectionId
(long ctCollectionId) Returns the ct score where ctCollectionId = ? or throws aNoSuchScoreException
if it could not be found.static CTScore
findByPrimaryKey
(long ctScoreId) Returns the ct score with the primary key or throws aNoSuchScoreException
if it could not be found.findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTScore> orderByComparator) static CTScorePersistence
static CTScore
remove
(long ctScoreId) Removes the ct score with the primary key from the database.static void
Removes all the ct scores from the database.static CTScore
removeByCtCollectionId
(long ctCollectionId) Removes the ct score where ctCollectionId = ? from the database.static void
setPersistence
(CTScorePersistence persistence) static CTScore
static CTScore
static CTScore
updateImpl
(CTScore ctScore)
-
Constructor Details
-
CTScoreUtil
public CTScoreUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CTScore> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CTScore> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CTScore> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTScore> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CTScore update(CTScore ctScore, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCtCollectionId
Returns the ct score where ctCollectionId = ? or throws aNoSuchScoreException
if it could not be found.- Parameters:
ctCollectionId
- the ct collection ID- Returns:
- the matching ct score
- Throws:
NoSuchScoreException
- if a matching ct score could not be foundNoSuchScoreException
-
fetchByCtCollectionId
Returns the ct score where ctCollectionId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
ctCollectionId
- the ct collection ID- Returns:
- the matching ct score, or
null
if a matching ct score could not be found
-
fetchByCtCollectionId
Returns the ct score where ctCollectionId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
ctCollectionId
- the ct collection IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching ct score, or
null
if a matching ct score could not be found
-
removeByCtCollectionId
Removes the ct score where ctCollectionId = ? from the database.- Parameters:
ctCollectionId
- the ct collection ID- Returns:
- the ct score that was removed
- Throws:
NoSuchScoreException
-
countByCtCollectionId
public static int countByCtCollectionId(long ctCollectionId) Returns the number of ct scores where ctCollectionId = ?.- Parameters:
ctCollectionId
- the ct collection ID- Returns:
- the number of matching ct scores
-
cacheResult
Caches the ct score in the entity cache if it is enabled.- Parameters:
ctScore
- the ct score
-
cacheResult
Caches the ct scores in the entity cache if it is enabled.- Parameters:
ctScores
- the ct scores
-
create
Creates a new ct score with the primary key. Does not add the ct score to the database.- Parameters:
ctScoreId
- the primary key for the new ct score- Returns:
- the new ct score
-
remove
Removes the ct score with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
ctScoreId
- the primary key of the ct score- Returns:
- the ct score that was removed
- Throws:
NoSuchScoreException
- if a ct score with the primary key could not be foundNoSuchScoreException
-
updateImpl
-
findByPrimaryKey
Returns the ct score with the primary key or throws aNoSuchScoreException
if it could not be found.- Parameters:
ctScoreId
- the primary key of the ct score- Returns:
- the ct score
- Throws:
NoSuchScoreException
- if a ct score with the primary key could not be foundNoSuchScoreException
-
fetchByPrimaryKey
Returns the ct score with the primary key or returnsnull
if it could not be found.- Parameters:
ctScoreId
- the primary key of the ct score- Returns:
- the ct score, or
null
if a ct score with the primary key could not be found
-
findAll
Returns all the ct scores.- Returns:
- the ct scores
-
findAll
Returns a range of all the ct scores.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 fromCTScoreModelImpl
.- Parameters:
start
- the lower bound of the range of ct scoresend
- the upper bound of the range of ct scores (not inclusive)- Returns:
- the range of ct scores
-
findAll
public static List<CTScore> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTScore> orderByComparator) Returns an ordered range of all the ct scores.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 fromCTScoreModelImpl
.- Parameters:
start
- the lower bound of the range of ct scoresend
- the upper bound of the range of ct scores (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of ct scores
-
findAll
public static List<CTScore> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTScore> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ct scores.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 fromCTScoreModelImpl
.- Parameters:
start
- the lower bound of the range of ct scoresend
- the upper bound of the range of ct scores (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of ct scores
-
removeAll
public static void removeAll()Removes all the ct scores from the database. -
countAll
public static int countAll()Returns the number of ct scores.- Returns:
- the number of ct scores
-
getPersistence
-
setPersistence
-