Interface CTScorePersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CTScore>
@ProviderType
public interface CTScorePersistence
extends com.liferay.portal.kernel.service.persistence.BasePersistence<CTScore>
The persistence interface for the ct score service.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByCtCollectionId(long ctCollectionId) Returns the number of ct scores where ctCollectionId = ?.create(long ctScoreId) Creates a new ct score with the primary key.default CTScorefetchByCtCollectionId(long ctCollectionId) Returns the ct score where ctCollectionId = ? or returnsnullif it could not be found.fetchByCtCollectionId(long ctCollectionId, boolean useFinderCache) Returns the ct score where ctCollectionId = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByPrimaryKey(long ctScoreId) Returns the ct score with the primary key or returnsnullif it could not be found.findByCtCollectionId(long ctCollectionId) Returns the ct score where ctCollectionId = ? or throws aNoSuchScoreExceptionif it could not be found.findByPrimaryKey(long ctScoreId) Returns the ct score with the primary key or throws aNoSuchScoreExceptionif it could not be found.remove(long ctScoreId) Removes the ct score with the primary key from the database.removeByCtCollectionId(long ctCollectionId) Removes the ct score where ctCollectionId = ? from the database.updateImpl(CTScore ctScore) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
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
- Throws:
NoSuchScoreException- if a matching ct score could not be found
-
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
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
- Throws:
NoSuchScoreException- if a ct score with the primary key could not be found
-
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
- Throws:
NoSuchScoreException- if a ct score with the primary key could not be found
-
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
-