org.apache.juddi.query
Class FindBusinessByTModelKeyQuery

java.lang.Object
  extended by org.apache.juddi.query.EntityQuery
      extended by org.apache.juddi.query.BusinessEntityQuery
          extended by org.apache.juddi.query.FindBusinessByTModelKeyQuery

public class FindBusinessByTModelKeyQuery
extends BusinessEntityQuery

Returns the list of business keys with services that have bindings that possess the tModels in the passed tModelBag. Output is restricted by list of service keys passed in. If null, all services are searched. Output is produced by building the appropriate JPA query based on input and find qualifiers. From specification: "Every Web service instance exposed by a registered businessEntity is represented in UDDI by a bindingTemplate contained within the businessEntity. Each bindingTemplate contains a collection of tModel references called its "technical fingerprint" that specifies its type. The tModelBag argument is a collection of tModelKey elements specifying that the search results are to be limited to businesses that expose Web services with technical fingerprints that match. If a find_tModel argument is specified (see above), it is treated as an embedded inquiry. The tModelKeys returned as a result of this embedded find_tModel argument are used as if they had been supplied in a tModelBag argument. Changing the order of the keys in the collection or specifying the same tModelKey more than once does not change the behavior of the find. By default, only bindingTemplates that contain all of the tModelKeys in the technical fingerprint match (logical AND). Specifying appropriate findQualifiers can override this behavior so that bindingTemplates containing any of the specified tModelKeys match (logical OR)."

Author:
Jeff Faath

Field Summary
static String ENTITY_NAME_CHILD
           
protected static String entityAliasChild
           
 
Fields inherited from class org.apache.juddi.query.BusinessEntityQuery
ENTITY_ALIAS, ENTITY_FIELD, ENTITY_NAME, selectSQL, SIGNATURE_PRESENT
 
Fields inherited from class org.apache.juddi.query.EntityQuery
DEFAULT_MAXINCLAUSE, DEFAULT_MAXROWS, KEY_NAME, SIGNATURE_FIELD, TEMP_ENTITY_ALIAS, TEMP_ENTITY_NAME, TEMP_ENTITY_PK_KEY_NAME, TEMP_ENTITY_PK_TXID_NAME
 
Constructor Summary
FindBusinessByTModelKeyQuery()
           
 
Method Summary
static void appendConditions(DynamicQuery qry, FindQualifiers fq, List<String> tmodelKeys)
           
static void appendJoinTables(DynamicQuery qry, FindQualifiers fq, List<String> tmodelKeys)
           
static List<?> select(javax.persistence.EntityManager em, FindQualifiers fq, org.uddi.api_v3.TModelBag tModels, List<?> keysIn, DynamicQuery.Parameter... restrictions)
           
 
Methods inherited from class org.apache.juddi.query.BusinessEntityQuery
getSelectSQL
 
Methods inherited from class org.apache.juddi.query.EntityQuery
buildAlias, getPagedResult, getQueryResult, storeIntermediateKeySetResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENTITY_NAME_CHILD

public static final String ENTITY_NAME_CHILD
See Also:
Constant Field Values

entityAliasChild

protected static String entityAliasChild
Constructor Detail

FindBusinessByTModelKeyQuery

public FindBusinessByTModelKeyQuery()
Method Detail

select

public static List<?> select(javax.persistence.EntityManager em,
                             FindQualifiers fq,
                             org.uddi.api_v3.TModelBag tModels,
                             List<?> keysIn,
                             DynamicQuery.Parameter... restrictions)

appendConditions

public static void appendConditions(DynamicQuery qry,
                                    FindQualifiers fq,
                                    List<String> tmodelKeys)

appendJoinTables

public static void appendJoinTables(DynamicQuery qry,
                                    FindQualifiers fq,
                                    List<String> tmodelKeys)


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.