Class CTScoreUtil
java.lang.Object
com.liferay.change.tracking.service.persistence.CTScoreUtil
The persistence utility for the ct score service. This utility wraps
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 voidcacheResult(CTScore ctScore) static voidcacheResult(List<CTScore> ctScores) static voidstatic voidclearCache(CTScore ctScore) static intcountByCtCollectionId(long ctCollectionId) Returns the number of ct scores where ctCollectionId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CTScorecreate(long ctScoreId) Creates a new ct score with the primary key.static CTScorefetchByCtCollectionId(long ctCollectionId) Returns the ct score where ctCollectionId = ? or returnsnullif it could not be found.static CTScorefetchByCtCollectionId(long ctCollectionId, boolean useFinderCache) Returns the ct score where ctCollectionId = ? or returnsnullif it could not be found, optionally using the finder cache.static CTScorefetchByPrimaryKey(long ctScoreId) Returns the ct score with the primary key or returnsnullif it could not be found.static Map<Serializable, CTScore> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static CTScorefindByCtCollectionId(long ctCollectionId) Returns the ct score where ctCollectionId = ? or throws aNoSuchScoreExceptionif it could not be found.static CTScorefindByPrimaryKey(long ctScoreId) Returns the ct score with the primary key or throws aNoSuchScoreExceptionif 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 CTScorePersistencestatic CTScoreremove(long ctScoreId) Removes the ct score with the primary key from the database.static CTScoreremoveByCtCollectionId(long ctCollectionId) Removes the ct score where ctCollectionId = ? from the database.static voidsetPersistence(CTScorePersistence persistence) static CTScorestatic CTScorestatic CTScoreupdateImpl(CTScore ctScore)
-
Constructor Details
-
CTScoreUtil
public CTScoreUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<CTScore> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<CTScore> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
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:
-
update
- See Also:
-
update
public static CTScore update(CTScore ctScore, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByCtCollectionId
Returns the ct score where ctCollectionId = ? or throws aNoSuchScoreExceptionif it could not be found.- Parameters:
ctCollectionId- the ct collection ID- Returns:
- the matching ct score
-
fetchByCtCollectionId
Returns the ct score where ctCollectionId = ? or returnsnullif 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
nullif 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
-
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
-
updateImpl
-
findByPrimaryKey
Returns the ct score with the primary key or throws aNoSuchScoreExceptionif it could not be found.- Parameters:
ctScoreId- the primary key of the ct score- Returns:
- the ct score
-
fetchByPrimaryKey
Returns the ct score with the primary key or returnsnullif it could not be found.- Parameters:
ctScoreId- the primary key of the ct score- Returns:
- the ct score, or
nullif a ct score with the primary key could not be found
-
fetchByCtCollectionId
Returns the ct score where ctCollectionId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
ctCollectionId- the ct collection ID- Returns:
- the matching ct score, or
nullif a matching ct score could not be found
-
getPersistence
-
setPersistence
-