public class LockLocalServiceWrapper extends java.lang.Object implements LockLocalService, ServiceWrapper<LockLocalService>
LockLocalService.LockLocalService| Constructor and Description |
|---|
LockLocalServiceWrapper(LockLocalService lockLocalService) |
| Modifier and Type | Method and Description |
|---|---|
Lock |
addLock(Lock lock)
Adds the lock to the database.
|
void |
clear() |
Lock |
createLock(long lockId)
Creates a new lock with the primary key.
|
PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
Lock |
deleteLock(Lock lock)
Deletes the lock from the database.
|
Lock |
deleteLock(long lockId)
Deletes the lock with the primary key from the database.
|
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
<T> T |
dslQuery(DSLQuery dslQuery) |
DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
Lock |
fetchLock(long lockId) |
Lock |
fetchLock(java.lang.String className,
long key) |
Lock |
fetchLock(java.lang.String className,
java.lang.String key) |
Lock |
fetchLockByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the lock with the matching UUID and company.
|
ActionableDynamicQuery |
getActionableDynamicQuery() |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
Lock |
getLock(long lockId)
Returns the lock with the primary key.
|
Lock |
getLock(java.lang.String className,
long key) |
Lock |
getLock(java.lang.String className,
java.lang.String key) |
Lock |
getLockByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the lock with the matching UUID and company.
|
java.util.List<Lock> |
getLocks(int start,
int end)
Returns a range of all the locks.
|
int |
getLocksCount()
Returns the number of locks.
|
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
LockLocalService |
getWrappedService() |
boolean |
hasLock(long userId,
java.lang.String className,
long key) |
boolean |
hasLock(long userId,
java.lang.String className,
java.lang.String key) |
boolean |
isLocked(java.lang.String className,
long key) |
boolean |
isLocked(java.lang.String className,
java.lang.String key) |
Lock |
lock(long userId,
java.lang.String className,
long key,
java.lang.String owner,
boolean inheritable,
long expirationTime) |
Lock |
lock(long userId,
java.lang.String className,
long key,
java.lang.String owner,
boolean inheritable,
long expirationTime,
boolean renew) |
Lock |
lock(long userId,
java.lang.String className,
java.lang.String key,
java.lang.String owner,
boolean inheritable,
long expirationTime) |
Lock |
lock(long userId,
java.lang.String className,
java.lang.String key,
java.lang.String owner,
boolean inheritable,
long expirationTime,
boolean renew) |
Lock |
lock(java.lang.String className,
java.lang.String key,
java.lang.String owner) |
Lock |
lock(java.lang.String className,
java.lang.String key,
java.lang.String expectedOwner,
java.lang.String updatedOwner) |
Lock |
refresh(java.lang.String uuid,
long companyId,
long expirationTime) |
void |
setWrappedService(LockLocalService lockLocalService) |
void |
unlock(java.lang.String className,
long key) |
void |
unlock(java.lang.String className,
java.lang.String key) |
void |
unlock(java.lang.String className,
java.lang.String key,
java.lang.String owner) |
Lock |
updateLock(Lock lock)
Updates the lock in the database or adds it if it does not yet exist.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBasePersistencepublic LockLocalServiceWrapper(LockLocalService lockLocalService)
public Lock addLock(Lock lock)
addLock in interface LockLocalServicelock - the lockpublic void clear()
clear in interface LockLocalServicepublic Lock createLock(long lockId)
createLock in interface LockLocalServicelockId - the primary key for the new lockpublic PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
createPersistedModel in interface PersistedModelLocalServicecreatePersistedModel in interface LockLocalServicePortalExceptionpublic Lock deleteLock(Lock lock)
deleteLock in interface LockLocalServicelock - the lockpublic Lock deleteLock(long lockId) throws PortalException
deleteLock in interface LockLocalServicelockId - the primary key of the lockPortalException - if a lock with the primary key could not be foundpublic PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel in interface PersistedModelLocalServicedeletePersistedModel in interface LockLocalServicePortalExceptionpublic <T> T dslQuery(DSLQuery dslQuery)
dslQuery in interface LockLocalServicepublic DynamicQuery dynamicQuery()
dynamicQuery in interface LockLocalServicepublic <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery in interface LockLocalServicedynamicQuery - the dynamic querypublic <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.portal.lock.model.impl.LockModelImpl.
dynamicQuery in interface LockLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.portal.lock.model.impl.LockModelImpl.
dynamicQuery in interface LockLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQueryCount in interface LockLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQueryCount in interface LockLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic Lock fetchLock(long lockId)
fetchLock in interface LockLocalServicepublic Lock fetchLock(java.lang.String className, long key)
fetchLock in interface LockLocalServicepublic Lock fetchLock(java.lang.String className, java.lang.String key)
fetchLock in interface LockLocalServicepublic Lock fetchLockByUuidAndCompanyId(java.lang.String uuid, long companyId)
fetchLockByUuidAndCompanyId in interface LockLocalServiceuuid - the lock's UUIDcompanyId - the primary key of the companynull if a matching lock could not be foundpublic ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface LockLocalServicepublic IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface LockLocalServicepublic Lock getLock(long lockId) throws PortalException
getLock in interface LockLocalServicelockId - the primary key of the lockPortalException - if a lock with the primary key could not be foundpublic Lock getLock(java.lang.String className, long key) throws PortalException
getLock in interface LockLocalServicePortalExceptionpublic Lock getLock(java.lang.String className, java.lang.String key) throws PortalException
getLock in interface LockLocalServicePortalExceptionpublic Lock getLockByUuidAndCompanyId(java.lang.String uuid, long companyId) throws PortalException
getLockByUuidAndCompanyId in interface LockLocalServiceuuid - the lock's UUIDcompanyId - the primary key of the companyPortalException - if a matching lock could not be foundpublic java.util.List<Lock> getLocks(int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.portal.lock.model.impl.LockModelImpl.
getLocks in interface LockLocalServicestart - the lower bound of the range of locksend - the upper bound of the range of locks (not inclusive)public int getLocksCount()
getLocksCount in interface LockLocalServicepublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface LockLocalServicepublic PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
getPersistedModel in interface PersistedModelLocalServicegetPersistedModel in interface LockLocalServicePortalExceptionpublic boolean hasLock(long userId,
java.lang.String className,
long key)
hasLock in interface LockLocalServicepublic boolean hasLock(long userId,
java.lang.String className,
java.lang.String key)
hasLock in interface LockLocalServicepublic boolean isLocked(java.lang.String className,
long key)
isLocked in interface LockLocalServicepublic boolean isLocked(java.lang.String className,
java.lang.String key)
isLocked in interface LockLocalServicepublic Lock lock(long userId, java.lang.String className, long key, java.lang.String owner, boolean inheritable, long expirationTime) throws PortalException
lock in interface LockLocalServicePortalExceptionpublic Lock lock(long userId, java.lang.String className, long key, java.lang.String owner, boolean inheritable, long expirationTime, boolean renew) throws PortalException
lock in interface LockLocalServicePortalExceptionpublic Lock lock(long userId, java.lang.String className, java.lang.String key, java.lang.String owner, boolean inheritable, long expirationTime) throws PortalException
lock in interface LockLocalServicePortalExceptionpublic Lock lock(long userId, java.lang.String className, java.lang.String key, java.lang.String owner, boolean inheritable, long expirationTime, boolean renew) throws PortalException
lock in interface LockLocalServicePortalExceptionpublic Lock lock(java.lang.String className, java.lang.String key, java.lang.String owner)
lock in interface LockLocalServicepublic Lock lock(java.lang.String className, java.lang.String key, java.lang.String expectedOwner, java.lang.String updatedOwner)
lock in interface LockLocalServicepublic Lock refresh(java.lang.String uuid, long companyId, long expirationTime) throws PortalException
refresh in interface LockLocalServicePortalExceptionpublic void unlock(java.lang.String className,
long key)
unlock in interface LockLocalServicepublic void unlock(java.lang.String className,
java.lang.String key)
unlock in interface LockLocalServicepublic void unlock(java.lang.String className,
java.lang.String key,
java.lang.String owner)
unlock in interface LockLocalServicepublic Lock updateLock(Lock lock)
updateLock in interface LockLocalServicelock - the lockpublic LockLocalService getWrappedService()
getWrappedService in interface ServiceWrapper<LockLocalService>public void setWrappedService(LockLocalService lockLocalService)
setWrappedService in interface ServiceWrapper<LockLocalService>