com.liferay.portal.service.persistence
Class LockUtil

java.lang.Object
  extended by 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
Generated:

Constructor Summary
LockUtil()
           
 
Method Summary
static void cacheResult(java.util.List<Lock> locks)
           
static void cacheResult(Lock lock)
           
static void clearCache()
           
static void clearCache(Lock lock)
           
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)
           
 int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
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 orderByComparator)
           
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 orderByComparator)
           
static Lock findByExpirationDate_Last(java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static Lock[] findByExpirationDate_PrevAndNext(long lockId, java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
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 orderByComparator)
           
static Lock findByPrimaryKey(long lockId)
           
static Lock findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static Lock findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static Lock[] findByUuid_PrevAndNext(long lockId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
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 orderByComparator)
           
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 com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).
static Lock update(Lock lock, boolean merge)
           
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
 

Constructor Detail

LockUtil

public LockUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(Lock lock)
See Also:
com.liferay.portal.service.persistence.BasePersistence#clearCache(Lock)

countWithDynamicQuery

public int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

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
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

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
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

remove

public static Lock remove(Lock lock)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static Lock update(Lock lock,
                          boolean merge)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

cacheResult

public static void cacheResult(Lock lock)

cacheResult

public static void cacheResult(java.util.List<Lock> locks)

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

update

public static Lock update(Lock lock)
                   throws com.liferay.portal.SystemException
Deprecated. Use com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).

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 orderByComparator)
                                       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 orderByComparator)
                             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 orderByComparator)
                            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 orderByComparator)
                                     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 orderByComparator)
                                                 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 orderByComparator)
                                       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 orderByComparator)
                                      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 orderByComparator)
                                               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

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 orderByComparator)
                                    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)