public class HibernateServiceDao extends HibernateCRUDDao<Service> implements ServiceDao
HibernateDao.DaoBlock, HibernateDao.DaoBlockR<R>
Constructor and Description |
---|
HibernateServiceDao(HibernateDaoContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addService(Service service) |
void |
clear() |
void |
clearDetachedInvocations() |
void |
deleteService(String serviceGridId,
String serviceId) |
void |
deleteServicesOfGrid(String gridId) |
void |
deleteServicesOfUser(String userGridId,
String userId) |
void |
evictService(Service service) |
Service |
getService(String serviceGridId,
String serviceId) |
InputStream |
getServiceInstance(String serviceGridId,
String serviceId) |
InputStream |
getServiceWsdl(String serviceGridId,
String serviceId) |
boolean |
isServiceExist(String serviceGridId,
String serviceId) |
List<Service> |
listAllServices(String serviceGridId) |
List<BPELService> |
listParentServicesOf(String gridId,
String serviceId) |
List<Service> |
listServicesOfUser(String userGridId,
String userId) |
ServiceSearchResult |
searchServices(int startIndex,
int maxCount,
String serviceGridId,
boolean acrossGrids,
MatchingCondition[] conditions,
Order[] orders) |
ServiceStatRankingSearchResult |
searchServiceStatRanking(int startIndex,
int maxCount,
String serviceGridId,
String nodeId,
boolean acrossGrids,
MatchingCondition[] conditions,
int sinceDays,
Order[] orders) |
add, add, clearEach, createCriteria, createDeleteQuery, delete, delete, exists, get, getOrNull, list, update
createDeleteQuery, createDeleteQuery, deleteEntities, getContext, getSession, logAdditionalInfo, logWhenRollbacking, transact, transact
public HibernateServiceDao(HibernateDaoContext context)
public void clear() throws DaoException
clear
in interface ServiceDao
clear
in class HibernateCRUDDao<Service>
DaoException
public void clearDetachedInvocations() throws DaoException
clearDetachedInvocations
in interface ServiceDao
DaoException
public List<Service> listAllServices(String serviceGridId) throws DaoException
listAllServices
in interface ServiceDao
DaoException
public List<Service> listServicesOfUser(String userGridId, String userId) throws DaoException
listServicesOfUser
in interface ServiceDao
DaoException
public List<BPELService> listParentServicesOf(String gridId, String serviceId) throws DaoException
listParentServicesOf
in interface ServiceDao
DaoException
public ServiceSearchResult searchServices(int startIndex, int maxCount, String serviceGridId, boolean acrossGrids, MatchingCondition[] conditions, Order[] orders) throws DaoException
searchServices
in interface ServiceDao
DaoException
public ServiceStatRankingSearchResult searchServiceStatRanking(int startIndex, int maxCount, String serviceGridId, String nodeId, boolean acrossGrids, MatchingCondition[] conditions, int sinceDays, Order[] orders) throws DaoException
searchServiceStatRanking
in interface ServiceDao
DaoException
public void addService(Service service) throws DaoException, ServiceAlreadyExistsException
addService
in interface ServiceDao
DaoException
ServiceAlreadyExistsException
public void deleteService(String serviceGridId, String serviceId) throws ServiceNotFoundException, DaoException
deleteService
in interface ServiceDao
ServiceNotFoundException
DaoException
public void deleteServicesOfGrid(String gridId) throws DaoException
deleteServicesOfGrid
in interface ServiceDao
DaoException
public void deleteServicesOfUser(String userGridId, String userId) throws DaoException
deleteServicesOfUser
in interface ServiceDao
DaoException
public Service getService(String serviceGridId, String serviceId) throws ServiceNotFoundException, DaoException
getService
in interface ServiceDao
ServiceNotFoundException
DaoException
public boolean isServiceExist(String serviceGridId, String serviceId) throws DaoException
isServiceExist
in interface ServiceDao
DaoException
public InputStream getServiceInstance(String serviceGridId, String serviceId) throws DaoException, ServiceNotFoundException
getServiceInstance
in interface ServiceDao
DaoException
ServiceNotFoundException
public InputStream getServiceWsdl(String serviceGridId, String serviceId) throws DaoException, ServiceNotFoundException
getServiceWsdl
in interface ServiceDao
DaoException
ServiceNotFoundException
public void evictService(Service service) throws DaoException
DaoException