|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao<Schedule,String> lumis.service.newsletter.ScheduleDaoHib
public class ScheduleDaoHib
Constructor Summary | |
---|---|
ScheduleDaoHib()
|
Method Summary | |
---|---|
void |
addOrUpdate(Schedule schedule,
ITransaction transaction)
Adds or updates a Schedule |
boolean |
delete(String scheduleId,
ITransaction transaction)
Deletes the bean with the given id from persistence. |
Schedule |
get(String scheduleId,
ITransaction transaction)
Returns the bean with the given 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 . |
protected String |
getIdentifier(Schedule schedule)
|
void |
releaseFromProcess(String scheduleId)
Set a schedule status from Schedule#STATUS_PROCESSING to Schedule.STATUS_ENABLED . |
Methods inherited from class lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao |
---|
add, evict, findByCriteria, findByCriteria, getPersistentClass, setReadOnly, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScheduleDaoHib()
Method Detail |
---|
protected String getIdentifier(Schedule schedule)
getIdentifier
in class GenericHibernateManualUpdateDao<Schedule,String>
public void addOrUpdate(Schedule schedule, ITransaction transaction) throws DaoException, PortalException
IScheduleDao
Schedule
addOrUpdate
in interface IScheduleDao
addOrUpdate
in class GenericHibernateManualUpdateDao<Schedule,String>
DaoException
PortalException
public Schedule get(String scheduleId, ITransaction transaction) throws DaoException, PortalException
GenericHibernateManualUpdateDao
get
in interface IScheduleDao
get
in class GenericHibernateManualUpdateDao<Schedule,String>
scheduleId
- the bean's id.transaction
- the transaction for persistence access. Must be
a ITransactionHibernate
.
DaoException
PortalException
public boolean delete(String scheduleId, ITransaction transaction) throws DaoException, PortalException
GenericHibernateManualUpdateDao
delete
in interface IScheduleDao
delete
in class GenericHibernateManualUpdateDao<Schedule,String>
scheduleId
- the bean's id.transaction
- the transaction for persistence access. Must be
a ITransactionHibernate
.
DaoException
PortalException
public Collection<String> getActiveSchedules(String serviceInstanceId, ITransaction transaction) throws PortalException
IScheduleDao
getActiveSchedules
in interface IScheduleDao
PortalException
public Schedule getForProcess(String scheduleId) throws DaoException, PortalException
IScheduleDao
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.
getForProcess
in interface IScheduleDao
DaoException
PortalException
public void releaseFromProcess(String scheduleId) throws DaoException, PortalException
IScheduleDao
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.
releaseFromProcess
in interface IScheduleDao
DaoException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |