*
*/
public BusinessService fetchService(String serviceKey)
throws org.apache.juddi.error.RegistryException
{
BusinessService service = null;
try
{
if ((serviceKey != null) && (connection != null))
{
service = BusinessServiceTable.select(serviceKey,connection);
service.setNameVector(ServiceNameTable.select(serviceKey,connection));
service.setDescriptionVector(ServiceDescTable.select(serviceKey,connection));
Vector catVector = ServiceCategoryTable.select(serviceKey,connection);
if (catVector.size() > 0)
{
CategoryBag bag = new CategoryBag();
bag.setKeyedReferenceVector(catVector);
service.setCategoryBag(bag);
}
// 'fetch' the BusinessService's BindingTemplate objects
Vector bindingVector = fetchBindingByServiceKey(serviceKey);
BindingTemplates bindings = new BindingTemplates();
bindings.setBindingTemplateVector(bindingVector);
service.setBindingTemplates(bindings);
}
}
catch(java.sql.SQLException sqlex)
{
throw new RegistryException(sqlex);