|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.clock.ClockDaoJdbc
public class ClockDaoJdbc
Group DAO jdbc-based implementation.
Constructor Summary | |
---|---|
ClockDaoJdbc()
|
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. |
protected void |
setConfigData(ClockConfig loadedConfig,
ResultSet resultSet)
|
boolean |
update(ClockConfig clockConfig,
ITransaction transaction)
Update the clock. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClockDaoJdbc()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |