com.liferay.portal.service.persistence
Class LockUtil
java.lang.Object
com.liferay.portal.service.persistence.LockUtil
public class LockUtil
- 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:
LockPersistence
,
LockPersistenceImpl
Method Summary |
static void |
cacheResult(java.util.List<Lock> locks)
|
static void |
cacheResult(Lock lock)
|
static void |
clearCache()
|
static int |
countAll()
|
static int |
countByC_K(java.lang.String className,
java.lang.String key)
|
static int |
countByExpirationDate(java.util.Date expirationDate)
|
static int |
countByUuid(java.lang.String uuid)
|
static Lock |
create(long lockId)
|
static Lock |
fetchByC_K(java.lang.String className,
java.lang.String key)
|
static Lock |
fetchByC_K(java.lang.String className,
java.lang.String key,
boolean retrieveFromCache)
|
static Lock |
fetchByPrimaryKey(long lockId)
|
static java.util.List<Lock> |
findAll()
|
static java.util.List<Lock> |
findAll(int start,
int end)
|
static java.util.List<Lock> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Lock |
findByC_K(java.lang.String className,
java.lang.String key)
|
static Lock |
findByExpirationDate_First(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Lock |
findByExpirationDate_Last(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Lock[] |
findByExpirationDate_PrevAndNext(long lockId,
java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<Lock> |
findByExpirationDate(java.util.Date expirationDate)
|
static java.util.List<Lock> |
findByExpirationDate(java.util.Date expirationDate,
int start,
int end)
|
static java.util.List<Lock> |
findByExpirationDate(java.util.Date expirationDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Lock |
findByPrimaryKey(long lockId)
|
static Lock |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Lock |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Lock[] |
findByUuid_PrevAndNext(long lockId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<Lock> |
findByUuid(java.lang.String uuid)
|
static java.util.List<Lock> |
findByUuid(java.lang.String uuid,
int start,
int end)
|
static java.util.List<Lock> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
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 LockPersistence |
getPersistence()
|
static Lock |
remove(Lock lock)
|
static Lock |
remove(long lockId)
|
static void |
removeAll()
|
static void |
removeByC_K(java.lang.String className,
java.lang.String key)
|
static void |
removeByExpirationDate(java.util.Date expirationDate)
|
static void |
removeByUuid(java.lang.String uuid)
|
void |
setPersistence(LockPersistence persistence)
|
static Lock |
update(Lock lock)
Deprecated. Use update(Lock, boolean merge) . |
static Lock |
update(Lock lock,
boolean merge)
Add, update, or merge, the entity. |
static Lock |
updateImpl(Lock lock,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LockUtil
public LockUtil()
cacheResult
public static void cacheResult(Lock lock)
cacheResult
public static void cacheResult(java.util.List<Lock> locks)
clearCache
public static void clearCache()
create
public static Lock create(long lockId)
remove
public static Lock remove(long lockId)
throws NoSuchLockException,
com.liferay.portal.SystemException
- Throws:
NoSuchLockException
com.liferay.portal.SystemException
remove
public static Lock remove(Lock lock)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static Lock update(Lock lock)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(Lock, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static Lock update(Lock lock,
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:
lock
- 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 lock 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 Lock updateImpl(Lock lock,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static Lock findByPrimaryKey(long lockId)
throws NoSuchLockException,
com.liferay.portal.SystemException
- Throws:
NoSuchLockException
com.liferay.portal.SystemException
fetchByPrimaryKey
public static Lock fetchByPrimaryKey(long lockId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<Lock> findByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<Lock> findByUuid(java.lang.String uuid,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<Lock> findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid_First
public static Lock findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchLockException,
com.liferay.portal.SystemException
- Throws:
NoSuchLockException
com.liferay.portal.SystemException
findByUuid_Last
public static Lock findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchLockException,
com.liferay.portal.SystemException
- Throws:
NoSuchLockException
com.liferay.portal.SystemException
findByUuid_PrevAndNext
public static Lock[] findByUuid_PrevAndNext(long lockId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchLockException,
com.liferay.portal.SystemException
- Throws:
NoSuchLockException
com.liferay.portal.SystemException
findByExpirationDate
public static java.util.List<Lock> findByExpirationDate(java.util.Date expirationDate)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByExpirationDate
public static java.util.List<Lock> findByExpirationDate(java.util.Date expirationDate,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByExpirationDate
public static java.util.List<Lock> findByExpirationDate(java.util.Date expirationDate,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByExpirationDate_First
public static Lock findByExpirationDate_First(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchLockException,
com.liferay.portal.SystemException
- Throws:
NoSuchLockException
com.liferay.portal.SystemException
findByExpirationDate_Last
public static Lock findByExpirationDate_Last(java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchLockException,
com.liferay.portal.SystemException
- Throws:
NoSuchLockException
com.liferay.portal.SystemException
findByExpirationDate_PrevAndNext
public static Lock[] findByExpirationDate_PrevAndNext(long lockId,
java.util.Date expirationDate,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchLockException,
com.liferay.portal.SystemException
- Throws:
NoSuchLockException
com.liferay.portal.SystemException
findByC_K
public static Lock findByC_K(java.lang.String className,
java.lang.String key)
throws NoSuchLockException,
com.liferay.portal.SystemException
- Throws:
NoSuchLockException
com.liferay.portal.SystemException
fetchByC_K
public static Lock fetchByC_K(java.lang.String className,
java.lang.String key)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
fetchByC_K
public static Lock fetchByC_K(java.lang.String className,
java.lang.String key,
boolean retrieveFromCache)
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<Lock> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<Lock> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<Lock> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUuid
public static void removeByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByExpirationDate
public static void removeByExpirationDate(java.util.Date expirationDate)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByC_K
public static void removeByC_K(java.lang.String className,
java.lang.String key)
throws NoSuchLockException,
com.liferay.portal.SystemException
- Throws:
NoSuchLockException
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUuid
public static int countByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByExpirationDate
public static int countByExpirationDate(java.util.Date expirationDate)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_K
public static int countByC_K(java.lang.String className,
java.lang.String key)
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 LockPersistence getPersistence()
setPersistence
public void setPersistence(LockPersistence persistence)