public class ServiceInterfaceDaoHib extends GenericHibernateManualUpdateDao<ServiceInterfaceConfig,String> implements IServiceInterfaceDao
Constructor and Description |
---|
ServiceInterfaceDaoHib() |
Modifier and Type | Method and 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(String serviceInterfaceId,
ITransaction daoTransaction)
Returns the bean with the given id.
|
String |
getCustomDefaultStyleId(String serviceInterfaceId,
ITransaction daoTransaction)
Get the id of the custom default style.
|
String |
getDefaultStyleId(String serviceInterfaceId,
ITransaction daoTransaction)
Get the default style of the service's interface.
|
protected String |
getIdentifier(ServiceInterfaceConfig serviceInterfaceConfig) |
Collection<String> |
getIdsByServiceId(String serviceId,
ITransaction daoTransaction)
Get all interfaces ids from a given service.
|
void |
setCustomDefaultStyleId(String serviceInterfaceId,
String serviceInterfaceStyleId,
ITransaction daoTransaction)
Update the id of the custom default style.
|
void |
setDefaultStyleId(String serviceInterfaceId,
String serviceInterfaceStyleId,
ITransaction daoTransaction)
Update the default style of the service's interface.
|
add, delete, evict, exists, findByCriteria, findByCriteria, getPersistentClass, setReadOnly, update
protected String getIdentifier(ServiceInterfaceConfig serviceInterfaceConfig)
getIdentifier
in class GenericHibernateManualUpdateDao<ServiceInterfaceConfig,String>
public ServiceInterfaceConfig get(String serviceInterfaceId, ITransaction daoTransaction) throws DaoException, PortalException
GenericHibernateManualUpdateDao
get
in interface IServiceInterfaceDao
get
in class GenericHibernateManualUpdateDao<ServiceInterfaceConfig,String>
serviceInterfaceId
- the bean's id.daoTransaction
- the transaction for persistence access. Must be
a ITransactionHibernate
.DaoException
PortalException
public void addOrUpdate(ServiceInterfaceConfig serviceInterfaceConfig, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInterfaceDao
addOrUpdate
in interface IServiceInterfaceDao
addOrUpdate
in class GenericHibernateManualUpdateDao<ServiceInterfaceConfig,String>
DaoException
PortalException
public boolean delete(ServiceInterfaceConfig serviceInterfaceConfig, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInterfaceDao
delete
in interface IServiceInterfaceDao
DaoException
PortalException
public void setDefaultStyleId(String serviceInterfaceId, String serviceInterfaceStyleId, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInterfaceDao
setDefaultStyleId
in interface IServiceInterfaceDao
DaoException
PortalException
public String getDefaultStyleId(String serviceInterfaceId, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInterfaceDao
getDefaultStyleId
in interface IServiceInterfaceDao
DaoException
PortalException
public void setCustomDefaultStyleId(String serviceInterfaceId, String serviceInterfaceStyleId, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInterfaceDao
setCustomDefaultStyleId
in interface IServiceInterfaceDao
DaoException
PortalException
public String getCustomDefaultStyleId(String serviceInterfaceId, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInterfaceDao
getCustomDefaultStyleId
in interface IServiceInterfaceDao
DaoException
PortalException
public Collection<String> getIdsByServiceId(String serviceId, ITransaction daoTransaction) throws DaoException, PortalException
IServiceInterfaceDao
getIdsByServiceId
in interface IServiceInterfaceDao
DaoException
PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.