Interface ReleasePersistence

All Superinterfaces:
BasePersistence<Release>

@ProviderType public interface ReleasePersistence extends BasePersistence<Release>
The persistence interface for the release service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
Generated:
  • Method Details

    • findByServletContextName

      Release findByServletContextName(String servletContextName) throws NoSuchReleaseException
      Returns the release where servletContextName = ? or throws a NoSuchReleaseException if it could not be found.
      Parameters:
      servletContextName - the servlet context name
      Returns:
      the matching release
      Throws:
      NoSuchReleaseException - if a matching release could not be found
    • fetchByServletContextName

      Release fetchByServletContextName(String servletContextName, boolean useFinderCache)
      Returns the release where servletContextName = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      servletContextName - the servlet context name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching release, or null if a matching release could not be found
    • removeByServletContextName

      Release removeByServletContextName(String servletContextName) throws NoSuchReleaseException
      Removes the release where servletContextName = ? from the database.
      Parameters:
      servletContextName - the servlet context name
      Returns:
      the release that was removed
      Throws:
      NoSuchReleaseException
    • countByServletContextName

      int countByServletContextName(String servletContextName)
      Returns the number of releases where servletContextName = ?.
      Parameters:
      servletContextName - the servlet context name
      Returns:
      the number of matching releases
    • create

      Release create(long releaseId)
      Creates a new release with the primary key. Does not add the release to the database.
      Parameters:
      releaseId - the primary key for the new release
      Returns:
      the new release
    • remove

      Release remove(long releaseId) throws NoSuchReleaseException
      Removes the release with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      releaseId - the primary key of the release
      Returns:
      the release that was removed
      Throws:
      NoSuchReleaseException - if a release with the primary key could not be found
    • updateImpl

      Release updateImpl(Release release)
    • findByPrimaryKey

      Release findByPrimaryKey(long releaseId) throws NoSuchReleaseException
      Returns the release with the primary key or throws a NoSuchReleaseException if it could not be found.
      Parameters:
      releaseId - the primary key of the release
      Returns:
      the release
      Throws:
      NoSuchReleaseException - if a release with the primary key could not be found
    • fetchByPrimaryKey

      Release fetchByPrimaryKey(long releaseId)
      Returns the release with the primary key or returns null if it could not be found.
      Parameters:
      releaseId - the primary key of the release
      Returns:
      the release, or null if a release with the primary key could not be found
    • fetchByServletContextName

      default Release fetchByServletContextName(String servletContextName)
      Returns the release where servletContextName = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      servletContextName - the servlet context name
      Returns:
      the matching release, or null if a matching release could not be found