public class HibernateServiceTypeDao extends HibernateCRUDDao<ServiceType> implements ServiceTypeDao
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R>
Constructor and Description |
---|
HibernateServiceTypeDao(HibernateDaoContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addServiceMetaAttribute(ServiceMetaAttribute metaAttribute) |
void |
addServiceType(ServiceType serviceType) |
void |
clear() |
void |
deleteServiceMetaAttribute(String domainId) |
void |
deleteServiceMetaAttribute(String domainId,
String attributeName) |
void |
deleteServiceType(String domainId) |
void |
deleteServiceType(String domainId,
String serviceTypeId) |
ServiceMetaAttribute |
getServiceMetaAttribute(String domainId,
String attributeName) |
ServiceType |
getServiceType(String domainId,
String serviceTypeId) |
boolean |
isServiceMetaAttributeExist(String domainId,
String serviceMetaAttributeId) |
boolean |
isServiceTypeExist(String domainId,
String resourceTypeId) |
List<ServiceMetaAttribute> |
listAllServiceMetaAttributes() |
List<ServiceMetaAttribute> |
listAllServiceMetaAttributes(String domainId) |
List<ServiceType> |
listAllServiceTypes() |
List<ServiceType> |
listAllServiceTypes(String domainId) |
add, add, clearEach, createCriteria, createDeleteQuery, delete, delete, exists, get, getOrNull, list, update
createDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transact
public HibernateServiceTypeDao(HibernateDaoContext context)
public void clear() throws DaoException
clear
in interface ServiceTypeDao
clear
in class HibernateCRUDDao<ServiceType>
DaoException
public List<ServiceType> listAllServiceTypes() throws DaoException
listAllServiceTypes
in interface ServiceTypeDao
DaoException
public List<ServiceType> listAllServiceTypes(String domainId) throws DaoException
listAllServiceTypes
in interface ServiceTypeDao
DaoException
public void addServiceType(ServiceType serviceType) throws ServiceTypeAlreadyExistsException, DaoException
addServiceType
in interface ServiceTypeDao
ServiceTypeAlreadyExistsException
DaoException
public void deleteServiceType(String domainId, String serviceTypeId) throws ServiceTypeNotFoundException, DaoException
deleteServiceType
in interface ServiceTypeDao
ServiceTypeNotFoundException
DaoException
public void deleteServiceType(String domainId) throws ServiceTypeNotFoundException, DaoException
deleteServiceType
in interface ServiceTypeDao
ServiceTypeNotFoundException
DaoException
public ServiceType getServiceType(String domainId, String serviceTypeId) throws ServiceTypeNotFoundException, DaoException
getServiceType
in interface ServiceTypeDao
ServiceTypeNotFoundException
DaoException
public boolean isServiceTypeExist(String domainId, String resourceTypeId) throws DaoException
isServiceTypeExist
in interface ServiceTypeDao
DaoException
public List<ServiceMetaAttribute> listAllServiceMetaAttributes() throws DaoException
listAllServiceMetaAttributes
in interface ServiceTypeDao
DaoException
public List<ServiceMetaAttribute> listAllServiceMetaAttributes(String domainId) throws DaoException
listAllServiceMetaAttributes
in interface ServiceTypeDao
DaoException
public void addServiceMetaAttribute(ServiceMetaAttribute metaAttribute) throws ServiceMetaAttributeAlreadyExistsException, DaoException
addServiceMetaAttribute
in interface ServiceTypeDao
ServiceMetaAttributeAlreadyExistsException
DaoException
public void deleteServiceMetaAttribute(String domainId, String attributeName) throws ServiceMetaAttributeNotFoundException, DaoException
deleteServiceMetaAttribute
in interface ServiceTypeDao
ServiceMetaAttributeNotFoundException
DaoException
public void deleteServiceMetaAttribute(String domainId) throws ServiceMetaAttributeNotFoundException, DaoException
deleteServiceMetaAttribute
in interface ServiceTypeDao
ServiceMetaAttributeNotFoundException
DaoException
public ServiceMetaAttribute getServiceMetaAttribute(String domainId, String attributeName) throws ServiceMetaAttributeNotFoundException, DaoException
getServiceMetaAttribute
in interface ServiceTypeDao
ServiceMetaAttributeNotFoundException
DaoException
public boolean isServiceMetaAttributeExist(String domainId, String serviceMetaAttributeId) throws DaoException
isServiceMetaAttributeExist
in interface ServiceTypeDao
DaoException