Liferay 6.1.2-ce-ga3

com.liferay.portal.service.persistence
Interface ReleasePersistence

All Superinterfaces:
BasePersistence<Release>
All Known Implementing Classes:
ReleasePersistenceImpl

public interface ReleasePersistence
extends BasePersistence<Release>

The persistence interface for the release service.

Caching information and settings can be found in portal.properties

See Also:
ReleasePersistenceImpl, ReleaseUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 void cacheResult(List<Release> releases)
          Caches the releases in the entity cache if it is enabled.
 void cacheResult(Release release)
          Caches the release in the entity cache if it is enabled.
 int countAll()
          Returns the number of releases.
 int countByServletContextName(String servletContextName)
          Returns the number of releases where servletContextName = ?.
 Release create(long releaseId)
          Creates a new release with the primary key.
 Release fetchByPrimaryKey(long releaseId)
          Returns the release with the primary key or returns null if it could not be found.
 Release fetchByServletContextName(String servletContextName)
          Returns the release where servletContextName = ? or returns null if it could not be found.
 Release fetchByServletContextName(String servletContextName, boolean retrieveFromCache)
          Returns the release where servletContextName = ? or returns null if it could not be found, optionally using the finder cache.
 List<Release> findAll()
          Returns all the releases.
 List<Release> findAll(int start, int end)
          Returns a range of all the releases.
 List<Release> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the releases.
 Release findByPrimaryKey(long releaseId)
          Returns the release with the primary key or throws a NoSuchReleaseException if it could not be found.
 Release findByServletContextName(String servletContextName)
          Returns the release where servletContextName = ? or throws a NoSuchReleaseException if it could not be found.
 Release remove(long releaseId)
          Removes the release with the primary key from the database.
 void removeAll()
          Removes all the releases from the database.
 Release removeByServletContextName(String servletContextName)
          Removes the release where servletContextName = ? from the database.
 Release updateImpl(Release release, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

void cacheResult(Release release)
Caches the release in the entity cache if it is enabled.

Parameters:
release - the release

cacheResult

void cacheResult(List<Release> releases)
Caches the releases in the entity cache if it is enabled.

Parameters:
releases - the 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,
                      SystemException
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
SystemException - if a system exception occurred

updateImpl

Release updateImpl(Release release,
                   boolean merge)
                   throws SystemException
Throws:
SystemException

findByPrimaryKey

Release findByPrimaryKey(long releaseId)
                         throws NoSuchReleaseException,
                                SystemException
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
SystemException - if a system exception occurred

fetchByPrimaryKey

Release fetchByPrimaryKey(long releaseId)
                          throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByServletContextName

Release findByServletContextName(String servletContextName)
                                 throws NoSuchReleaseException,
                                        SystemException
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
SystemException - if a system exception occurred

fetchByServletContextName

Release fetchByServletContextName(String servletContextName)
                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

fetchByServletContextName

Release fetchByServletContextName(String servletContextName,
                                  boolean retrieveFromCache)
                                  throws SystemException
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
retrieveFromCache - whether to use the finder cache
Returns:
the matching release, or null if a matching release could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<Release> findAll()
                      throws SystemException
Returns all the releases.

Returns:
the releases
Throws:
SystemException - if a system exception occurred

findAll

List<Release> findAll(int start,
                      int end)
                      throws SystemException
Returns a range of all the releases.

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.

Parameters:
start - the lower bound of the range of releases
end - the upper bound of the range of releases (not inclusive)
Returns:
the range of releases
Throws:
SystemException - if a system exception occurred

findAll

List<Release> findAll(int start,
                      int end,
                      OrderByComparator orderByComparator)
                      throws SystemException
Returns an ordered range of all the releases.

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.

Parameters:
start - the lower bound of the range of releases
end - the upper bound of the range of releases (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of releases
Throws:
SystemException - if a system exception occurred

removeByServletContextName

Release removeByServletContextName(String servletContextName)
                                   throws NoSuchReleaseException,
                                          SystemException
Removes the release where servletContextName = ? from the database.

Parameters:
servletContextName - the servlet context name
Returns:
the release that was removed
Throws:
SystemException - if a system exception occurred
NoSuchReleaseException

removeAll

void removeAll()
               throws SystemException
Removes all the releases from the database.

Throws:
SystemException - if a system exception occurred

countByServletContextName

int countByServletContextName(String servletContextName)
                              throws SystemException
Returns the number of releases where servletContextName = ?.

Parameters:
servletContextName - the servlet context name
Returns:
the number of matching releases
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of releases.

Returns:
the number of releases
Throws:
SystemException - if a system exception occurred

Liferay 6.1.2-ce-ga3