Package lumis.portal.serviceinterface
Class ServiceInterfaceDaoHib
- java.lang.Object
-
- lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao<ServiceInterfaceConfig,java.lang.String>
-
- lumis.portal.serviceinterface.ServiceInterfaceDaoHib
-
- All Implemented Interfaces:
IServiceInterfaceDao
public class ServiceInterfaceDaoHib extends GenericHibernateManualUpdateDao<ServiceInterfaceConfig,java.lang.String> implements IServiceInterfaceDao
- Since:
- 4.0.0
- Version:
- $Revision: 14232 $ $Date: 2012-04-20 17:45:55 -0300 (Fri, 20 Apr 2012) $
-
-
Constructor Summary
Constructors Constructor Description ServiceInterfaceDaoHib()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOrUpdate(ServiceInterfaceConfig serviceInterfaceConfig, ITransaction daoTransaction)
Add or update the service's interface.boolean
delete(ServiceInterfaceConfig serviceInterfaceConfig, ITransaction daoTransaction)
Delete the service's interface.ServiceInterfaceConfig
get(java.lang.String serviceInterfaceId, ITransaction daoTransaction)
Returns the bean with the given id.java.lang.String
getCustomDefaultStyleId(java.lang.String serviceInterfaceId, ITransaction daoTransaction)
Get the id of the custom default style.java.lang.String
getDefaultStyleId(java.lang.String serviceInterfaceId, ITransaction daoTransaction)
Get the default style of the service's interface.protected java.lang.String
getIdentifier(ServiceInterfaceConfig serviceInterfaceConfig)
java.util.Collection<java.lang.String>
getIdsByServiceId(java.lang.String serviceId, ITransaction daoTransaction)
Get all interfaces ids from a given service.void
setCustomDefaultStyleId(java.lang.String serviceInterfaceId, java.lang.String serviceInterfaceStyleId, ITransaction daoTransaction)
Update the id of the custom default style.void
setDefaultStyleId(java.lang.String serviceInterfaceId, java.lang.String serviceInterfaceStyleId, ITransaction daoTransaction)
Update the default style of the service's interface.-
Methods inherited from class lumis.portal.dao.hibernate.GenericHibernateManualUpdateDao
add, delete, evict, exists, findByCriteria, findByCriteria, getPersistentClass, setReadOnly, update
-
-
-
-
Method Detail
-
getIdentifier
protected java.lang.String getIdentifier(ServiceInterfaceConfig serviceInterfaceConfig)
- Specified by:
getIdentifier
in classGenericHibernateManualUpdateDao<ServiceInterfaceConfig,java.lang.String>
-
get
public ServiceInterfaceConfig get(java.lang.String serviceInterfaceId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from class:GenericHibernateManualUpdateDao
Returns the bean with the given id. The bean is set as read-only, so changes on it won't persist automatically.- Specified by:
get
in interfaceIServiceInterfaceDao
- Overrides:
get
in classGenericHibernateManualUpdateDao<ServiceInterfaceConfig,java.lang.String>
- Parameters:
serviceInterfaceId
- the bean's id.daoTransaction
- the transaction for persistence access. Must be aITransactionHibernate
.- Returns:
- the bean.
- Throws:
DaoException
PortalException
-
addOrUpdate
public void addOrUpdate(ServiceInterfaceConfig serviceInterfaceConfig, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceDao
Add or update the service's interface. Add the service's interface if it don't exist.- Specified by:
addOrUpdate
in interfaceIServiceInterfaceDao
- Overrides:
addOrUpdate
in classGenericHibernateManualUpdateDao<ServiceInterfaceConfig,java.lang.String>
- Throws:
DaoException
PortalException
-
delete
public boolean delete(ServiceInterfaceConfig serviceInterfaceConfig, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceDao
Delete the service's interface.- Specified by:
delete
in interfaceIServiceInterfaceDao
- Throws:
DaoException
PortalException
-
setDefaultStyleId
public void setDefaultStyleId(java.lang.String serviceInterfaceId, java.lang.String serviceInterfaceStyleId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceDao
Update the default style of the service's interface.- Specified by:
setDefaultStyleId
in interfaceIServiceInterfaceDao
- Throws:
DaoException
PortalException
-
getDefaultStyleId
public java.lang.String getDefaultStyleId(java.lang.String serviceInterfaceId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceDao
Get the default style of the service's interface.- Specified by:
getDefaultStyleId
in interfaceIServiceInterfaceDao
- Returns:
- Throws:
DaoException
PortalException
-
setCustomDefaultStyleId
public void setCustomDefaultStyleId(java.lang.String serviceInterfaceId, java.lang.String serviceInterfaceStyleId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceDao
Update the id of the custom default style.- Specified by:
setCustomDefaultStyleId
in interfaceIServiceInterfaceDao
- Throws:
DaoException
PortalException
-
getCustomDefaultStyleId
public java.lang.String getCustomDefaultStyleId(java.lang.String serviceInterfaceId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceDao
Get the id of the custom default style.- Specified by:
getCustomDefaultStyleId
in interfaceIServiceInterfaceDao
- Returns:
- Throws:
DaoException
PortalException
-
getIdsByServiceId
public java.util.Collection<java.lang.String> getIdsByServiceId(java.lang.String serviceId, ITransaction daoTransaction) throws DaoException, PortalException
Description copied from interface:IServiceInterfaceDao
Get all interfaces ids from a given service.- Specified by:
getIdsByServiceId
in interfaceIServiceInterfaceDao
- Returns:
- Throws:
DaoException
PortalException
-
-