lumis.portal.lock
Interface ILockDao

Package class diagram package ILockDao
All Known Implementing Classes:
LockDaoJdbc

public interface ILockDao

DAO interface for lock-related data operations

Since:
4.0.9

Method Summary
 void add(LockConfig lockConfig, ITransaction transaction)
          Add the lock.
 boolean delete(String lockId, ITransaction transaction)
          Delete the lock.
 void deleteExpiredLocks(ITransaction transaction)
          Delete all the locks that have expired.
 LockConfig get(String lockId, ITransaction transaction)
          Get the lock.
 Collection<String> getIdsByLockTypeId(String lockTypeId, ITransaction transaction)
          Get a list of ids given the of of the lock type.
 Collection<String> getLockIds(ITransaction transaction)
          Get a list of ids of the locks.
 void update(LockConfig lockConfig, ITransaction transaction)
          Update the lock.
 

Method Detail

get

LockConfig get(String lockId,
               ITransaction transaction)
               throws DaoException,
                      PortalException
Get the lock.

Parameters:
lockId -
transaction -
Returns:
Throws:
DaoException
PortalException

add

void add(LockConfig lockConfig,
         ITransaction transaction)
         throws DaoException,
                PortalException
Add the lock.

Parameters:
lockConfig -
transaction -
Throws:
DaoException
PortalException

update

void update(LockConfig lockConfig,
            ITransaction transaction)
            throws DaoException,
                   PortalException
Update the lock.

Parameters:
lockConfig -
transaction -
Throws:
DaoException
PortalException

delete

boolean delete(String lockId,
               ITransaction transaction)
               throws DaoException,
                      PortalException
Delete the lock.

Parameters:
lockId -
transaction -
Returns:
true, if the lock was released; false, if the lock was previously released
Throws:
DaoException
PortalException

getLockIds

Collection<String> getLockIds(ITransaction transaction)
                              throws DaoException,
                                     PortalException
Get a list of ids of the locks.

Parameters:
transaction -
Returns:
Throws:
DaoException
PortalException

getIdsByLockTypeId

Collection<String> getIdsByLockTypeId(String lockTypeId,
                                      ITransaction transaction)
                                      throws DaoException,
                                             PortalException
Get a list of ids given the of of the lock type.

Parameters:
lockTypeId -
transaction -
Returns:
Throws:
DaoException
PortalException

deleteExpiredLocks

void deleteExpiredLocks(ITransaction transaction)
                        throws DaoException,
                               PortalException
Delete all the locks that have expired.

Parameters:
transaction -
Throws:
DaoException
PortalException


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.