public class HibernateResourceTypeDao extends HibernateCRUDDao<ResourceType> implements ResourceTypeDao
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R>
Constructor and Description |
---|
HibernateResourceTypeDao(HibernateDaoContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addResourceMetaAttribute(ResourceMetaAttribute metaAttribute) |
void |
addResourceType(ResourceType resourceType) |
void |
clear() |
void |
deleteResourceMetaAttribute(String domainId) |
void |
deleteResourceMetaAttribute(String domainId,
String attributeName) |
void |
deleteResourceType(String domainId) |
void |
deleteResourceType(String domainId,
String resourceTypeId) |
ResourceMetaAttribute |
getResourceMetaAttribute(String domainId,
String attributeName) |
ResourceType |
getResourceType(String domainId,
String resourceTypeId) |
boolean |
isResourceMetaAttributeExist(String domainId,
String resourceMetaAttributeId) |
boolean |
isResourceTypeExist(String domainId,
String resourceTypeId) |
List<ResourceMetaAttribute> |
listAllResourceMetaAttributes() |
List<ResourceMetaAttribute> |
listAllResourceMetaAttributes(String domainId) |
List<ResourceType> |
listAllResourceTypes() |
List<ResourceType> |
listAllResourceTypes(String domainId) |
add, add, clearEach, createCriteria, createDeleteQuery, delete, delete, exists, get, getOrNull, list, update
createDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transact
public HibernateResourceTypeDao(HibernateDaoContext context)
public void clear() throws DaoException
clear
in interface ResourceTypeDao
clear
in class HibernateCRUDDao<ResourceType>
DaoException
public List<ResourceType> listAllResourceTypes() throws DaoException
listAllResourceTypes
in interface ResourceTypeDao
DaoException
public List<ResourceType> listAllResourceTypes(String domainId) throws DaoException
listAllResourceTypes
in interface ResourceTypeDao
DaoException
public void addResourceType(ResourceType resourceType) throws ResourceTypeAlreadyExistsException, DaoException
addResourceType
in interface ResourceTypeDao
ResourceTypeAlreadyExistsException
DaoException
public void deleteResourceType(String domainId, String resourceTypeId) throws ResourceTypeNotFoundException, DaoException
deleteResourceType
in interface ResourceTypeDao
ResourceTypeNotFoundException
DaoException
public void deleteResourceType(String domainId) throws ResourceTypeNotFoundException, DaoException
deleteResourceType
in interface ResourceTypeDao
ResourceTypeNotFoundException
DaoException
public ResourceType getResourceType(String domainId, String resourceTypeId) throws ResourceTypeNotFoundException, DaoException
getResourceType
in interface ResourceTypeDao
ResourceTypeNotFoundException
DaoException
public boolean isResourceTypeExist(String domainId, String resourceTypeId) throws DaoException
isResourceTypeExist
in interface ResourceTypeDao
DaoException
public List<ResourceMetaAttribute> listAllResourceMetaAttributes() throws DaoException
listAllResourceMetaAttributes
in interface ResourceTypeDao
DaoException
public List<ResourceMetaAttribute> listAllResourceMetaAttributes(String domainId) throws DaoException
listAllResourceMetaAttributes
in interface ResourceTypeDao
DaoException
public void addResourceMetaAttribute(ResourceMetaAttribute metaAttribute) throws ResourceMetaAttributeAlreadyExistsException, DaoException
addResourceMetaAttribute
in interface ResourceTypeDao
ResourceMetaAttributeAlreadyExistsException
DaoException
public void deleteResourceMetaAttribute(String domainId, String attributeName) throws ResourceMetaAttributeNotFoundException, DaoException
deleteResourceMetaAttribute
in interface ResourceTypeDao
ResourceMetaAttributeNotFoundException
DaoException
public void deleteResourceMetaAttribute(String domainId) throws DaoException
deleteResourceMetaAttribute
in interface ResourceTypeDao
DaoException
public ResourceMetaAttribute getResourceMetaAttribute(String domainId, String attributeName) throws ResourceMetaAttributeNotFoundException, DaoException
getResourceMetaAttribute
in interface ResourceTypeDao
ResourceMetaAttributeNotFoundException
DaoException
public boolean isResourceMetaAttributeExist(String domainId, String resourceMetaAttributeId) throws DaoException
isResourceMetaAttributeExist
in interface ResourceTypeDao
DaoException