public class ScheduleDaoHib extends GenericHibernateManualUpdateDao<Schedule,String> implements IScheduleDao
Constructor and Description |
---|
ScheduleDaoHib() |
Modifier and Type | Method and Description |
---|---|
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 . |
add, evict, exists, findByCriteria, findByCriteria, getPersistentClass, setReadOnly, update
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
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.