Package lumis.service.newsletter
Interface IScheduleDao
-
- All Known Implementing Classes:
ScheduleDaoHib
public interface IScheduleDao
- Since:
- 4.0.8
- Version:
- $Revision: 5362 $ $Date: 2006-12-15 19:58:24 -0200 (Fri, 15 Dec 2006) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addOrUpdate(Schedule schedule, ITransaction transaction)
Adds or updates aSchedule
boolean
delete(java.lang.String scheduleId, ITransaction transaction)
Deletes aSchedule
Schedule
get(java.lang.String scheduleId, ITransaction transaction)
Gets aSchedule
based on it's id.java.util.Collection<java.lang.String>
getActiveSchedules(java.lang.String serviceInstanceId, ITransaction transaction)
Get all active schedule objectsSchedule
getForProcess(java.lang.String scheduleId)
Gets a Schedule object setting it's status toSchedule#STATUS_PROCESSING
.void
releaseFromProcess(java.lang.String scheduleId)
Set a schedule status fromSchedule#STATUS_PROCESSING
toSchedule.STATUS_ENABLED
.
-
-
-
Method Detail
-
addOrUpdate
void addOrUpdate(Schedule schedule, ITransaction transaction) throws DaoException, PortalException
Adds or updates aSchedule
- Parameters:
schedule
-transaction
-- Throws:
DaoException
PortalException
- Since:
- 4.0.8
-
get
Schedule get(java.lang.String scheduleId, ITransaction transaction) throws DaoException, PortalException
Gets aSchedule
based on it's id.- Parameters:
scheduleId
-transaction
-- Returns:
- the schedule object
- Throws:
DaoException
PortalException
- Since:
- 4.0.8
-
delete
boolean delete(java.lang.String scheduleId, ITransaction transaction) throws DaoException, PortalException
Deletes aSchedule
- Parameters:
scheduleId
-transaction
-- Returns:
- Throws:
DaoException
PortalException
- Since:
- 4.0.8
-
getActiveSchedules
java.util.Collection<java.lang.String> getActiveSchedules(java.lang.String serviceInstanceId, ITransaction transaction) throws PortalException
Get all active schedule objects- Parameters:
serviceInstanceId
-transaction
-- Returns:
- Throws:
PortalException
- Since:
- 4.0.8
-
getForProcess
Schedule getForProcess(java.lang.String scheduleId) throws DaoException, PortalException
Gets a Schedule object setting it's status toSchedule#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.- Parameters:
scheduleId
-- Returns:
- Throws:
DaoException
PortalException
- Since:
- 4.0.8
-
releaseFromProcess
void releaseFromProcess(java.lang.String scheduleId) throws DaoException, PortalException
Set a schedule status fromSchedule#STATUS_PROCESSING
toSchedule.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.- Parameters:
scheduleId
-- Throws:
DaoException
PortalException
- Since:
- 4.0.8
-
-