com.liferay.portal.service.persistence
Interface LockPersistence

All Superinterfaces:
BasePersistence<Lock>

public interface LockPersistence
extends BasePersistence<Lock>

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:
LockPersistenceImpl, LockUtil
Generated:

Method Summary
 void cacheResult(java.util.List<Lock> locks)
           
 void cacheResult(Lock lock)
           
 int countAll()
           
 int countByC_K(java.lang.String className, java.lang.String key)
           
 int countByExpirationDate(java.util.Date expirationDate)
           
 int countByUuid(java.lang.String uuid)
           
 Lock create(long lockId)
           
 Lock fetchByC_K(java.lang.String className, java.lang.String key)
           
 Lock fetchByC_K(java.lang.String className, java.lang.String key, boolean retrieveFromCache)
           
 Lock fetchByPrimaryKey(long lockId)
           
 java.util.List<Lock> findAll()
           
 java.util.List<Lock> findAll(int start, int end)
           
 java.util.List<Lock> findAll(int start, int end, OrderByComparator orderByComparator)
           
 Lock findByC_K(java.lang.String className, java.lang.String key)
           
 Lock findByExpirationDate_First(java.util.Date expirationDate, OrderByComparator orderByComparator)
           
 Lock findByExpirationDate_Last(java.util.Date expirationDate, OrderByComparator orderByComparator)
           
 Lock[] findByExpirationDate_PrevAndNext(long lockId, java.util.Date expirationDate, OrderByComparator orderByComparator)
           
 java.util.List<Lock> findByExpirationDate(java.util.Date expirationDate)
           
 java.util.List<Lock> findByExpirationDate(java.util.Date expirationDate, int start, int end)
           
 java.util.List<Lock> findByExpirationDate(java.util.Date expirationDate, int start, int end, OrderByComparator orderByComparator)
           
 Lock findByPrimaryKey(long lockId)
           
 Lock findByUuid_First(java.lang.String uuid, OrderByComparator orderByComparator)
           
 Lock findByUuid_Last(java.lang.String uuid, OrderByComparator orderByComparator)
           
 Lock[] findByUuid_PrevAndNext(long lockId, java.lang.String uuid, OrderByComparator orderByComparator)
           
 java.util.List<Lock> findByUuid(java.lang.String uuid)
           
 java.util.List<Lock> findByUuid(java.lang.String uuid, int start, int end)
           
 java.util.List<Lock> findByUuid(java.lang.String uuid, int start, int end, OrderByComparator orderByComparator)
           
 Lock remove(long lockId)
           
 void removeAll()
           
 void removeByC_K(java.lang.String className, java.lang.String key)
           
 void removeByExpirationDate(java.util.Date expirationDate)
           
 void removeByUuid(java.lang.String uuid)
           
 Lock updateImpl(Lock lock, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update
 

Method Detail

cacheResult

void cacheResult(Lock lock)

cacheResult

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

create

Lock create(long lockId)

remove

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

updateImpl

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

findByPrimaryKey

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

fetchByPrimaryKey

Lock fetchByPrimaryKey(long lockId)
                       throws SystemException
Throws:
SystemException

findByUuid

java.util.List<Lock> findByUuid(java.lang.String uuid)
                                throws SystemException
Throws:
SystemException

findByUuid

java.util.List<Lock> findByUuid(java.lang.String uuid,
                                int start,
                                int end)
                                throws SystemException
Throws:
SystemException

findByUuid

java.util.List<Lock> findByUuid(java.lang.String uuid,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                                throws SystemException
Throws:
SystemException

findByUuid_First

Lock findByUuid_First(java.lang.String uuid,
                      OrderByComparator orderByComparator)
                      throws NoSuchLockException,
                             SystemException
Throws:
NoSuchLockException
SystemException

findByUuid_Last

Lock findByUuid_Last(java.lang.String uuid,
                     OrderByComparator orderByComparator)
                     throws NoSuchLockException,
                            SystemException
Throws:
NoSuchLockException
SystemException

findByUuid_PrevAndNext

Lock[] findByUuid_PrevAndNext(long lockId,
                              java.lang.String uuid,
                              OrderByComparator orderByComparator)
                              throws NoSuchLockException,
                                     SystemException
Throws:
NoSuchLockException
SystemException

findByExpirationDate

java.util.List<Lock> findByExpirationDate(java.util.Date expirationDate)
                                          throws SystemException
Throws:
SystemException

findByExpirationDate

java.util.List<Lock> findByExpirationDate(java.util.Date expirationDate,
                                          int start,
                                          int end)
                                          throws SystemException
Throws:
SystemException

findByExpirationDate

java.util.List<Lock> findByExpirationDate(java.util.Date expirationDate,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                          throws SystemException
Throws:
SystemException

findByExpirationDate_First

Lock findByExpirationDate_First(java.util.Date expirationDate,
                                OrderByComparator orderByComparator)
                                throws NoSuchLockException,
                                       SystemException
Throws:
NoSuchLockException
SystemException

findByExpirationDate_Last

Lock findByExpirationDate_Last(java.util.Date expirationDate,
                               OrderByComparator orderByComparator)
                               throws NoSuchLockException,
                                      SystemException
Throws:
NoSuchLockException
SystemException

findByExpirationDate_PrevAndNext

Lock[] findByExpirationDate_PrevAndNext(long lockId,
                                        java.util.Date expirationDate,
                                        OrderByComparator orderByComparator)
                                        throws NoSuchLockException,
                                               SystemException
Throws:
NoSuchLockException
SystemException

findByC_K

Lock findByC_K(java.lang.String className,
               java.lang.String key)
               throws NoSuchLockException,
                      SystemException
Throws:
NoSuchLockException
SystemException

fetchByC_K

Lock fetchByC_K(java.lang.String className,
                java.lang.String key)
                throws SystemException
Throws:
SystemException

fetchByC_K

Lock fetchByC_K(java.lang.String className,
                java.lang.String key,
                boolean retrieveFromCache)
                throws SystemException
Throws:
SystemException

findAll

java.util.List<Lock> findAll()
                             throws SystemException
Throws:
SystemException

findAll

java.util.List<Lock> findAll(int start,
                             int end)
                             throws SystemException
Throws:
SystemException

findAll

java.util.List<Lock> findAll(int start,
                             int end,
                             OrderByComparator orderByComparator)
                             throws SystemException
Throws:
SystemException

removeByUuid

void removeByUuid(java.lang.String uuid)
                  throws SystemException
Throws:
SystemException

removeByExpirationDate

void removeByExpirationDate(java.util.Date expirationDate)
                            throws SystemException
Throws:
SystemException

removeByC_K

void removeByC_K(java.lang.String className,
                 java.lang.String key)
                 throws NoSuchLockException,
                        SystemException
Throws:
NoSuchLockException
SystemException

removeAll

void removeAll()
               throws SystemException
Throws:
SystemException

countByUuid

int countByUuid(java.lang.String uuid)
                throws SystemException
Throws:
SystemException

countByExpirationDate

int countByExpirationDate(java.util.Date expirationDate)
                          throws SystemException
Throws:
SystemException

countByC_K

int countByC_K(java.lang.String className,
               java.lang.String key)
               throws SystemException
Throws:
SystemException

countAll

int countAll()
             throws SystemException
Throws:
SystemException