Constructor and Description |
---|
ClockDaoJdbc() |
Modifier and Type | Method and 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 clocks
|
List<String> |
getNextSchedules(ITransaction transaction)
Get next schedules.
|
boolean |
setClockRunning(String clockId,
boolean runningState,
int maxRunTime,
ITransaction transaction)
Set the running of the clock.
|
protected void |
setConfigData(ClockConfig loadedConfig,
ResultSet resultSet) |
boolean |
update(ClockConfig clockConfig,
ITransaction transaction)
Update the clock.
|
public List<String> getClockIds(ITransaction transaction) throws DaoException, PortalException
IClockDao
getClockIds
in interface IClockDao
DaoException
PortalException
public List<ClockConfig> findRunningClocks(ITransaction transaction) throws DaoException, PortalException
IClockDao
findRunningClocks
in interface IClockDao
transaction
- the current transaction.DaoException
PortalException
public List<String> getNextSchedules(ITransaction transaction) throws DaoException, PortalException
IClockDao
getNextSchedules
in interface IClockDao
DaoException
PortalException
public Collection<String> getClockIdsByServiceId(String serviceId, ITransaction transaction) throws DaoException, PortalException
IClockDao
getClockIdsByServiceId
in interface IClockDao
DaoException
PortalException
public ClockConfig get(String clockId, ITransaction transaction) throws DaoException, PortalException
IClockDao
get
in interface IClockDao
DaoException
PortalException
protected void setConfigData(ClockConfig loadedConfig, ResultSet resultSet) throws SQLException
SQLException
public void add(ClockConfig clockConfig, ITransaction transaction) throws DaoException, PortalException
IClockDao
add
in interface IClockDao
DaoException
PortalException
public boolean update(ClockConfig clockConfig, ITransaction transaction) throws DaoException, PortalException
IClockDao
update
in interface IClockDao
DaoException
PortalException
public void addOrUpdate(ClockConfig clockConfig, ITransaction transaction) throws DaoException, PortalException
IClockDao
addOrUpdate
in interface IClockDao
DaoException
PortalException
public void delete(String clockId, ITransaction transaction) throws DaoException, PortalException
IClockDao
delete
in interface IClockDao
DaoException
PortalException
public boolean setClockRunning(String clockId, boolean runningState, int maxRunTime, ITransaction transaction) throws PortalException
IClockDao
setClockRunning
in interface IClockDao
DaoException
PortalException
public Collection<ClockConfig> getDisabledClocks(ITransaction transaction) throws PortalException
IClockDao
getDisabledClocks
in interface IClockDao
DaoException
PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.