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 Type
    Method
    Description
    void
    Caches the ct score in the entity cache if it is enabled.
    void
    Caches the ct scores in the entity cache if it is enabled.
    int
    Returns the number of ct scores.
    int
    countByCtCollectionId(long ctCollectionId)
    Returns the number of ct scores where ctCollectionId = ?.
    create(long ctScoreId)
    Creates a new ct score with the primary key.
    fetchByCtCollectionId(long ctCollectionId)
    Returns the ct score where ctCollectionId = ? or returns null if it could not be found.
    fetchByCtCollectionId(long ctCollectionId, boolean useFinderCache)
    Returns the ct score where ctCollectionId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByPrimaryKey(long ctScoreId)
    Returns the ct score with the primary key or returns null if it could not be found.
    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.
    findByCtCollectionId(long ctCollectionId)
    Returns the ct score where ctCollectionId = ? or throws a NoSuchScoreException if it could not be found.
    findByPrimaryKey(long ctScoreId)
    Returns the ct score with the primary key or throws a NoSuchScoreException if it could not be found.
    remove(long ctScoreId)
    Removes the ct score with the primary key from the database.
    void
    Removes all the ct scores from the database.
    removeByCtCollectionId(long ctCollectionId)
    Removes the ct score where ctCollectionId = ? from the database.
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByCtCollectionId

      CTScore findByCtCollectionId(long ctCollectionId) throws NoSuchScoreException
      Returns the ct score where ctCollectionId = ? or throws a NoSuchScoreException 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 found
    • fetchByCtCollectionId

      CTScore fetchByCtCollectionId(long ctCollectionId)
      Returns the ct score where ctCollectionId = ? or returns null 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

      CTScore fetchByCtCollectionId(long ctCollectionId, boolean useFinderCache)
      Returns the ct score where ctCollectionId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      ctCollectionId - the ct collection ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching ct score, or null if a matching ct score could not be found
    • removeByCtCollectionId

      CTScore removeByCtCollectionId(long ctCollectionId) throws NoSuchScoreException
      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
    • cacheResult

      void cacheResult(CTScore ctScore)
      Caches the ct score in the entity cache if it is enabled.
      Parameters:
      ctScore - the ct score
    • cacheResult

      void cacheResult(List<CTScore> ctScores)
      Caches the ct scores in the entity cache if it is enabled.
      Parameters:
      ctScores - the ct scores
    • create

      CTScore create(long ctScoreId)
      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

      CTScore remove(long ctScoreId) throws NoSuchScoreException
      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

      CTScore updateImpl(CTScore ctScore)
    • findByPrimaryKey

      CTScore findByPrimaryKey(long ctScoreId) throws NoSuchScoreException
      Returns the ct score with the primary key or throws a NoSuchScoreException 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 found
    • fetchByPrimaryKey

      CTScore fetchByPrimaryKey(long ctScoreId)
      Returns the ct score with the primary key or returns null 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

      List<CTScore> findAll()
      Returns all the ct scores.
      Returns:
      the ct scores
    • findAll

      List<CTScore> findAll(int start, int end)
      Returns a range of all the ct scores.

      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, then the query will include the default ORDER BY logic from CTScoreModelImpl.

      Parameters:
      start - the lower bound of the range of ct scores
      end - the upper bound of the range of ct scores (not inclusive)
      Returns:
      the range of ct scores
    • findAll

      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 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, then the query will include the default ORDER BY logic from CTScoreModelImpl.

      Parameters:
      start - the lower bound of the range of ct scores
      end - the upper bound of the range of ct scores (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of ct scores
    • findAll

      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 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, then the query will include the default ORDER BY logic from CTScoreModelImpl.

      Parameters:
      start - the lower bound of the range of ct scores
      end - the upper bound of the range of ct scores (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of ct scores
    • removeAll

      void removeAll()
      Removes all the ct scores from the database.
    • countAll

      int countAll()
      Returns the number of ct scores.
      Returns:
      the number of ct scores