public class ServiceDaoHib extends GenericHibernateManualUpdateDao<ServiceConfig,String> implements IServiceDao
ServiceConfig
information.Constructor and Description |
---|
ServiceDaoHib() |
Modifier and Type | Method and Description |
---|---|
void |
add(ServiceConfig serviceConfig,
ITransaction transaction)
Adds the bean to the persistence layer.
|
void |
clearCache()
Clears the caches in this DAO.
|
boolean |
delete(String serviceId,
ITransaction transaction)
Deletes the bean with the given id from persistence.
|
ServiceConfig |
get(String serviceId,
ITransaction transaction)
Returns the bean with the given id.
|
ServiceConfig |
getByBaseUrl(String baseUrl,
ITransaction daoTransaction)
Returns a ServiceConfig by it's baseUrl.
|
protected String |
getIdentifier(ServiceConfig serviceConfig) |
Collection<String> |
getServicesIds(boolean getInstantiableServicesOnly,
ITransaction transaction)
Get the ids of services.
|
void |
update(ServiceConfig serviceConfig,
ITransaction transaction)
Update the service.
|
addOrUpdate, evict, exists, findByCriteria, findByCriteria, getPersistentClass, setReadOnly
protected String getIdentifier(ServiceConfig serviceConfig)
getIdentifier
in class GenericHibernateManualUpdateDao<ServiceConfig,String>
public void add(ServiceConfig serviceConfig, ITransaction transaction) throws DaoException, PortalException
GenericHibernateManualUpdateDao
add
in interface IServiceDao
add
in class GenericHibernateManualUpdateDao<ServiceConfig,String>
serviceConfig
- the bean to be added.transaction
- the transaction for persistence access.DaoException
PortalException
public void update(ServiceConfig serviceConfig, ITransaction transaction) throws DaoException, PortalException
IServiceDao
update
in interface IServiceDao
update
in class GenericHibernateManualUpdateDao<ServiceConfig,String>
DaoException
PortalException
public ServiceConfig get(String serviceId, ITransaction transaction) throws DaoException, PortalException
GenericHibernateManualUpdateDao
get
in interface IServiceDao
get
in class GenericHibernateManualUpdateDao<ServiceConfig,String>
serviceId
- the bean's id.transaction
- the transaction for persistence access. Must be
a ITransactionHibernate
.DaoException
PortalException
public boolean delete(String serviceId, ITransaction transaction) throws DaoException, PortalException
GenericHibernateManualUpdateDao
delete
in interface IServiceDao
delete
in class GenericHibernateManualUpdateDao<ServiceConfig,String>
serviceId
- the bean's id.transaction
- the transaction for persistence access. Must be
a ITransactionHibernate
.DaoException
PortalException
public Collection<String> getServicesIds(boolean getInstantiableServicesOnly, ITransaction transaction) throws DaoException, PortalException
IServiceDao
getServicesIds
in interface IServiceDao
ManagerException
PortalException
DaoException
public ServiceConfig getByBaseUrl(String baseUrl, ITransaction daoTransaction) throws DaoException, PortalException
IServiceDao
getByBaseUrl
in interface IServiceDao
DaoException
PortalException
public void clearCache() throws PortalException
IServiceDao
clearCache
in interface IServiceDao
PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.