com.liferay.portal.service.persistence
Interface LockPersistence

All Superinterfaces:
BasePersistence

public interface LockPersistence
extends BasePersistence

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

Method Summary
 void cacheResult(java.util.List<Lock> locks)
           
 void cacheResult(Lock lock)
           
 void clearCache()
           
 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, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Lock findByC_K(java.lang.String className, java.lang.String key)
           
 Lock findByExpirationDate_First(java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Lock findByExpirationDate_Last(java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Lock[] findByExpirationDate_PrevAndNext(long lockId, java.util.Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 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, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Lock findByPrimaryKey(long lockId)
           
 Lock findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Lock findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Lock[] findByUuid_PrevAndNext(long lockId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 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, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 Lock remove(Lock lock)
           
 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 update(Lock lock)
          Deprecated. Use update(Lock, boolean merge).
 Lock update(Lock lock, boolean merge)
          Add, update, or merge, the entity.
 Lock updateImpl(Lock lock, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

cacheResult

void cacheResult(Lock lock)

cacheResult

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

clearCache

void clearCache()
Specified by:
clearCache in interface BasePersistence

create

Lock create(long lockId)

remove

Lock remove(long lockId)
            throws NoSuchLockException,
                   com.liferay.portal.SystemException
Throws:
NoSuchLockException
com.liferay.portal.SystemException

remove

Lock remove(Lock lock)
            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

Lock update(Lock lock)
            throws com.liferay.portal.SystemException
Deprecated. Use update(Lock, boolean merge).

Throws:
com.liferay.portal.SystemException

update

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 merge
merge - 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

Lock updateImpl(Lock lock,
                boolean merge)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

Lock findByPrimaryKey(long lockId)
                      throws NoSuchLockException,
                             com.liferay.portal.SystemException
Throws:
NoSuchLockException
com.liferay.portal.SystemException

fetchByPrimaryKey

Lock fetchByPrimaryKey(long lockId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

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

findByUuid

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

findByUuid

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

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

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

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

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

findByExpirationDate

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

findByExpirationDate

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

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

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

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

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

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

fetchByC_K

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

findWithDynamicQuery

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

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

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

findAll

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

findAll

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

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

removeByExpirationDate

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

removeByC_K

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

removeAll

void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUuid

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

countByExpirationDate

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

countByC_K

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

countAll

int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException