lumis.portal.lock
Class LockDaoJdbc

Package class diagram package LockDaoJdbc
java.lang.Object
  extended by lumis.portal.lock.LockDaoJdbc
All Implemented Interfaces:
ILockDao

public class LockDaoJdbc
extends Object
implements ILockDao

ILockDao JDBC implementation.

Since:
4.0.9

Constructor Summary
LockDaoJdbc()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockDaoJdbc

public LockDaoJdbc()
Method Detail

get

public LockConfig get(String lockId,
                      ITransaction transaction)
               throws DaoException,
                      PortalException
Description copied from interface: ILockDao
Get the lock.

Specified by:
get in interface ILockDao
Returns:
Throws:
DaoException
PortalException

add

public void add(LockConfig lockConfig,
                ITransaction transaction)
         throws DaoException,
                PortalException
Description copied from interface: ILockDao
Add the lock.

Specified by:
add in interface ILockDao
Throws:
DaoException
PortalException

update

public void update(LockConfig lockConfig,
                   ITransaction transaction)
            throws DaoException,
                   PortalException
Description copied from interface: ILockDao
Update the lock.

Specified by:
update in interface ILockDao
Throws:
DaoException
PortalException

delete

public boolean delete(String lockId,
                      ITransaction transaction)
               throws DaoException,
                      PortalException
Description copied from interface: ILockDao
Delete the lock.

Specified by:
delete in interface ILockDao
Returns:
true, if the lock was released; false, if the lock was previously released
Throws:
DaoException
PortalException

deleteExpiredLocks

public void deleteExpiredLocks(ITransaction transaction)
                        throws DaoException,
                               PortalException
Description copied from interface: ILockDao
Delete all the locks that have expired.

Specified by:
deleteExpiredLocks in interface ILockDao
Throws:
DaoException
PortalException

getLockIds

public Collection<String> getLockIds(ITransaction transaction)
                              throws DaoException,
                                     PortalException
Description copied from interface: ILockDao
Get a list of ids of the locks.

Specified by:
getLockIds in interface ILockDao
Returns:
Throws:
DaoException
PortalException

getIdsByLockTypeId

public Collection<String> getIdsByLockTypeId(String lockTypeId,
                                             ITransaction transaction)
                                      throws DaoException,
                                             PortalException
Description copied from interface: ILockDao
Get a list of ids given the of of the lock type.

Specified by:
getIdsByLockTypeId in interface ILockDao
Returns:
Throws:
DaoException
PortalException


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