lumis.portal.clock
Interface IClockDao

Package class diagram package IClockDao
All Known Implementing Classes:
ClockDaoJdbc

public interface IClockDao

Since:
4.0.0

Method Summary
 void add(ClockConfig clockConfig, ITransaction transaction)
          Add the clock.
 void addOrUpdate(ClockConfig clockConfig, ITransaction transaction)
          Add or update the clock.
 void delete(String clockId, ITransaction transaction)
          Delete the clock.
 List<ClockConfig> findRunningClocks(ITransaction transaction)
          Get the running clocks.
 ClockConfig get(String clockId, ITransaction transaction)
          Get the configuration of the clock.
 List<String> getClockIds(ITransaction transaction)
          Get a list of ids of the clock.
 Collection<String> getClockIdsByServiceId(String serviceId, ITransaction transaction)
          Get a list of ids by passing the id of the service.
 List<String> getNextSchedules(ITransaction transaction)
          Get next schedules.
 boolean setClockRunning(String clockId, boolean runningState, int maxRunTime, ITransaction transaction)
          Set the running of the clock.
 boolean update(ClockConfig clockConfig, ITransaction transaction)
          Update the clock.
 

Method Detail

getClockIds

List<String> getClockIds(ITransaction transaction)
                         throws DaoException,
                                PortalException
Get a list of ids of the clock.

Parameters:
transaction -
Returns:
an array of Strings.
Throws:
DaoException
PortalException

getClockIdsByServiceId

Collection<String> getClockIdsByServiceId(String serviceId,
                                          ITransaction transaction)
                                          throws DaoException,
                                                 PortalException
Get a list of ids by passing the id of the service.

Parameters:
serviceId -
transaction -
Returns:
an array of Strings.
Throws:
DaoException
PortalException

getNextSchedules

List<String> getNextSchedules(ITransaction transaction)
                              throws DaoException,
                                     PortalException
Get next schedules.

Parameters:
transaction -
Returns:
an array of Strings.
Throws:
DaoException
PortalException

findRunningClocks

List<ClockConfig> findRunningClocks(ITransaction transaction)
                                    throws DaoException,
                                           PortalException
Get the running clocks.

Parameters:
transaction - the current transaction.
Returns:
a list of ClockConfig.
Throws:
DaoException
PortalException
Since:
6.0.0

get

ClockConfig get(String clockId,
                ITransaction transaction)
                throws DaoException,
                       PortalException
Get the configuration of the clock.

Parameters:
clockId -
transaction -
Returns:
a ClockConfig.
Throws:
DaoException
PortalException

add

void add(ClockConfig clockConfig,
         ITransaction transaction)
         throws DaoException,
                PortalException
Add the clock.

Parameters:
clockConfig -
transaction -
Throws:
DaoException
PortalException

addOrUpdate

void addOrUpdate(ClockConfig clockConfig,
                 ITransaction transaction)
                 throws DaoException,
                        PortalException
Add or update the clock. This method add the clock if it don't exist.

Parameters:
clockConfig -
transaction -
Throws:
DaoException
PortalException

update

boolean update(ClockConfig clockConfig,
               ITransaction transaction)
               throws DaoException,
                      PortalException
Update the clock.

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

delete

void delete(String clockId,
            ITransaction transaction)
            throws DaoException,
                   PortalException
Delete the clock.

Parameters:
clockId -
transaction -
Throws:
DaoException
PortalException

setClockRunning

boolean setClockRunning(String clockId,
                        boolean runningState,
                        int maxRunTime,
                        ITransaction transaction)
                        throws DaoException,
                               PortalException
Set the running of the clock.

Parameters:
clockId -
runningState -
maxRunTime -
transaction -
Returns:
Throws:
DaoException
PortalException


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.