Package lumis.portal.clock
Interface IClockDao
-
- All Known Implementing Classes:
ClockDaoJdbc
public interface IClockDao
- Since:
- 4.0.0
- Version:
- $Revision: 19963 $ $Date: 2017-02-21 19:28:29 -0300 (Tue, 21 Feb 2017) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.Collection<ClockConfig>
getDisabledClocks(ITransaction transaction)
Get disabled clocksList<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
-
getDisabledClocks
Collection<ClockConfig> getDisabledClocks(ITransaction transaction) throws DaoException, PortalException
Get disabled clocks- Parameters:
transaction
-- Returns:
- Throws:
DaoException
PortalException
- Since:
- 10.1.0
-
-