public interface IScheduleDao
Modifier and Type | Method and Description |
---|---|
void |
addOrUpdate(Schedule schedule,
ITransaction transaction)
Adds or updates a
Schedule |
boolean |
delete(String scheduleId,
ITransaction transaction)
Deletes a
Schedule |
Schedule |
get(String scheduleId,
ITransaction transaction)
Gets a
Schedule based on it's id. |
Collection<String> |
getActiveSchedules(String serviceInstanceId,
ITransaction transaction)
Get all active schedule objects
|
Schedule |
getForProcess(String scheduleId)
Gets a Schedule object setting it's status to
Schedule#STATUS_PROCESSING . |
void |
releaseFromProcess(String scheduleId)
Set a schedule status from
Schedule#STATUS_PROCESSING to Schedule.STATUS_ENABLED . |
void addOrUpdate(Schedule schedule, ITransaction transaction) throws DaoException, PortalException
Schedule
schedule
- transaction
- DaoException
PortalException
Schedule get(String scheduleId, ITransaction transaction) throws DaoException, PortalException
Schedule
based on it's id.scheduleId
- transaction
- DaoException
PortalException
boolean delete(String scheduleId, ITransaction transaction) throws DaoException, PortalException
Schedule
scheduleId
- transaction
- DaoException
PortalException
Collection<String> getActiveSchedules(String serviceInstanceId, ITransaction transaction) throws PortalException
serviceInstanceId
- transaction
- PortalException
Schedule getForProcess(String scheduleId) throws DaoException, PortalException
Schedule#STATUS_PROCESSING
. The method creates it's own transaction
so there can be no manipulation of data on the specified bean on a active transaction.scheduleId
- DaoException
PortalException
void releaseFromProcess(String scheduleId) throws DaoException, PortalException
Schedule#STATUS_PROCESSING
to Schedule.STATUS_ENABLED
. The method creates it's own transaction
so there can be no manipulation of data on the specified bean on a active transaction.scheduleId
- DaoException
PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.