Liferay 6.0.3

com.liferay.portal.service.persistence
Class LockUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.LockUtil

public class LockUtil
extends Object

See Also:
LockPersistence, LockPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
LockUtil()
           
 
Method Summary
static void cacheResult(List<Lock> locks)
           
static void cacheResult(Lock lock)
           
static void clearCache()
           
static void clearCache(Lock lock)
           
static int countAll()
           
static int countByC_K(String className, String key)
           
static int countByLtExpirationDate(Date expirationDate)
           
static int countByUuid(String uuid)
           
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static Lock create(long lockId)
           
static Lock fetchByC_K(String className, String key)
           
static Lock fetchByC_K(String className, String key, boolean retrieveFromCache)
           
static Lock fetchByPrimaryKey(long lockId)
           
static List<Lock> findAll()
           
static List<Lock> findAll(int start, int end)
           
static List<Lock> findAll(int start, int end, OrderByComparator orderByComparator)
           
static Lock findByC_K(String className, String key)
           
static Lock findByLtExpirationDate_First(Date expirationDate, OrderByComparator orderByComparator)
           
static Lock findByLtExpirationDate_Last(Date expirationDate, OrderByComparator orderByComparator)
           
static Lock[] findByLtExpirationDate_PrevAndNext(long lockId, Date expirationDate, OrderByComparator orderByComparator)
           
static List<Lock> findByLtExpirationDate(Date expirationDate)
           
static List<Lock> findByLtExpirationDate(Date expirationDate, int start, int end)
           
static List<Lock> findByLtExpirationDate(Date expirationDate, int start, int end, OrderByComparator orderByComparator)
           
static Lock findByPrimaryKey(long lockId)
           
static Lock findByUuid_First(String uuid, OrderByComparator orderByComparator)
           
static Lock findByUuid_Last(String uuid, OrderByComparator orderByComparator)
           
static Lock[] findByUuid_PrevAndNext(long lockId, String uuid, OrderByComparator orderByComparator)
           
static List<Lock> findByUuid(String uuid)
           
static List<Lock> findByUuid(String uuid, int start, int end)
           
static List<Lock> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
           
static List<Lock> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<Lock> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<Lock> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static LockPersistence getPersistence()
           
static Lock remove(Lock lock)
           
static Lock remove(long lockId)
           
static void removeAll()
           
static void removeByC_K(String className, String key)
           
static void removeByLtExpirationDate(Date expirationDate)
           
static void removeByUuid(String uuid)
           
 void setPersistence(LockPersistence persistence)
           
static Lock update(Lock lock, boolean merge)
           
static Lock update(Lock lock, boolean merge, ServiceContext serviceContext)
           
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:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<Lock> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<Lock> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<Lock> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                              int start,
                                              int end,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

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

update

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

update

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

cacheResult

public static void cacheResult(Lock lock)

cacheResult

public static void cacheResult(List<Lock> locks)

create

public static Lock create(long lockId)

remove

public static Lock remove(long lockId)
                   throws NoSuchLockException,
                          SystemException
Throws:
NoSuchLockException
SystemException

updateImpl

public static Lock updateImpl(Lock lock,
                              boolean merge)
                       throws SystemException
Throws:
SystemException

findByPrimaryKey

public static Lock findByPrimaryKey(long lockId)
                             throws NoSuchLockException,
                                    SystemException
Throws:
NoSuchLockException
SystemException

fetchByPrimaryKey

public static Lock fetchByPrimaryKey(long lockId)
                              throws SystemException
Throws:
SystemException

findByUuid

public static List<Lock> findByUuid(String uuid)
                             throws SystemException
Throws:
SystemException

findByUuid

public static List<Lock> findByUuid(String uuid,
                                    int start,
                                    int end)
                             throws SystemException
Throws:
SystemException

findByUuid

public static List<Lock> findByUuid(String uuid,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Throws:
SystemException

findByUuid_First

public static Lock findByUuid_First(String uuid,
                                    OrderByComparator orderByComparator)
                             throws NoSuchLockException,
                                    SystemException
Throws:
NoSuchLockException
SystemException

findByUuid_Last

public static Lock findByUuid_Last(String uuid,
                                   OrderByComparator orderByComparator)
                            throws NoSuchLockException,
                                   SystemException
Throws:
NoSuchLockException
SystemException

findByUuid_PrevAndNext

public static Lock[] findByUuid_PrevAndNext(long lockId,
                                            String uuid,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchLockException,
                                            SystemException
Throws:
NoSuchLockException
SystemException

findByLtExpirationDate

public static List<Lock> findByLtExpirationDate(Date expirationDate)
                                         throws SystemException
Throws:
SystemException

findByLtExpirationDate

public static List<Lock> findByLtExpirationDate(Date expirationDate,
                                                int start,
                                                int end)
                                         throws SystemException
Throws:
SystemException

findByLtExpirationDate

public static List<Lock> findByLtExpirationDate(Date expirationDate,
                                                int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Throws:
SystemException

findByLtExpirationDate_First

public static Lock findByLtExpirationDate_First(Date expirationDate,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchLockException,
                                                SystemException
Throws:
NoSuchLockException
SystemException

findByLtExpirationDate_Last

public static Lock findByLtExpirationDate_Last(Date expirationDate,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchLockException,
                                               SystemException
Throws:
NoSuchLockException
SystemException

findByLtExpirationDate_PrevAndNext

public static Lock[] findByLtExpirationDate_PrevAndNext(long lockId,
                                                        Date expirationDate,
                                                        OrderByComparator orderByComparator)
                                                 throws NoSuchLockException,
                                                        SystemException
Throws:
NoSuchLockException
SystemException

findByC_K

public static Lock findByC_K(String className,
                             String key)
                      throws NoSuchLockException,
                             SystemException
Throws:
NoSuchLockException
SystemException

fetchByC_K

public static Lock fetchByC_K(String className,
                              String key)
                       throws SystemException
Throws:
SystemException

fetchByC_K

public static Lock fetchByC_K(String className,
                              String key,
                              boolean retrieveFromCache)
                       throws SystemException
Throws:
SystemException

findAll

public static List<Lock> findAll()
                          throws SystemException
Throws:
SystemException

findAll

public static List<Lock> findAll(int start,
                                 int end)
                          throws SystemException
Throws:
SystemException

findAll

public static List<Lock> findAll(int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Throws:
SystemException

removeByUuid

public static void removeByUuid(String uuid)
                         throws SystemException
Throws:
SystemException

removeByLtExpirationDate

public static void removeByLtExpirationDate(Date expirationDate)
                                     throws SystemException
Throws:
SystemException

removeByC_K

public static void removeByC_K(String className,
                               String key)
                        throws NoSuchLockException,
                               SystemException
Throws:
NoSuchLockException
SystemException

removeAll

public static void removeAll()
                      throws SystemException
Throws:
SystemException

countByUuid

public static int countByUuid(String uuid)
                       throws SystemException
Throws:
SystemException

countByLtExpirationDate

public static int countByLtExpirationDate(Date expirationDate)
                                   throws SystemException
Throws:
SystemException

countByC_K

public static int countByC_K(String className,
                             String key)
                      throws SystemException
Throws:
SystemException

countAll

public static int countAll()
                    throws SystemException
Throws:
SystemException

getPersistence

public static LockPersistence getPersistence()

setPersistence

public void setPersistence(LockPersistence persistence)

Liferay 6.0.3