|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao<ServiceConfig,String> lumis.portal.service.ServiceDaoHib
public class ServiceDaoHib
Class responsible for persisting ServiceConfig
information.
Constructor Summary | |
---|---|
ServiceDaoHib()
|
Method Summary | |
---|---|
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. |
Methods inherited from class lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao |
---|
addOrUpdate, evict, findByCriteria, findByCriteria, getPersistentClass, setReadOnly |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceDaoHib()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |