com.liferay.portal.service.persistence
Class ReleaseUtil
java.lang.Object
com.liferay.portal.service.persistence.ReleaseUtil
public class ReleaseUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
- Author:
- Brian Wing Shun Chan
- See Also:
ReleasePersistence
,
ReleasePersistenceImpl
Method Summary |
static void |
cacheResult(java.util.List<Release> releases)
|
static void |
cacheResult(Release release)
|
static void |
clearCache()
|
static int |
countAll()
|
static Release |
create(long releaseId)
|
static Release |
fetchByPrimaryKey(long releaseId)
|
static java.util.List<Release> |
findAll()
|
static java.util.List<Release> |
findAll(int start,
int end)
|
static java.util.List<Release> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Release |
findByPrimaryKey(long releaseId)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static ReleasePersistence |
getPersistence()
|
static Release |
remove(long releaseId)
|
static Release |
remove(Release release)
|
static void |
removeAll()
|
void |
setPersistence(ReleasePersistence persistence)
|
static Release |
update(Release release)
Deprecated. Use update(Release, boolean merge) . |
static Release |
update(Release release,
boolean merge)
Add, update, or merge, the entity. |
static Release |
updateImpl(Release release,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReleaseUtil
public ReleaseUtil()
cacheResult
public static void cacheResult(Release release)
cacheResult
public static void cacheResult(java.util.List<Release> releases)
clearCache
public static void clearCache()
create
public static Release create(long releaseId)
remove
public static Release remove(long releaseId)
throws NoSuchReleaseException,
com.liferay.portal.SystemException
- Throws:
NoSuchReleaseException
com.liferay.portal.SystemException
remove
public static Release remove(Release release)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static Release update(Release release)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(Release, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static Release update(Release release,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
release
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The default
value is false. Setting merge to true is more expensive and
should only be true when release is transient. See
LEP-5473 for a detailed discussion of this method.
- Returns:
- the entity that was added, updated, or merged
- Throws:
com.liferay.portal.SystemException
updateImpl
public static Release updateImpl(Release release,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static Release findByPrimaryKey(long releaseId)
throws NoSuchReleaseException,
com.liferay.portal.SystemException
- Throws:
NoSuchReleaseException
com.liferay.portal.SystemException
fetchByPrimaryKey
public static Release fetchByPrimaryKey(long releaseId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<Release> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<Release> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<Release> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPersistence
public static ReleasePersistence getPersistence()
setPersistence
public void setPersistence(ReleasePersistence persistence)