org.apache.juddi.query
Class FetchBindingTemplatesQuery

java.lang.Object
  extended by org.apache.juddi.query.EntityQuery
      extended by org.apache.juddi.query.BindingTemplateQuery
          extended by org.apache.juddi.query.FetchBindingTemplatesQuery

public class FetchBindingTemplatesQuery
extends BindingTemplateQuery

The "select" method retrieves all the entities for the input key list and sorts according to the user settings. Paging is taken into account when retrieving the results. The result is a list of the entity objects containing all top level elements (restricted to the given page). NOTE: Results usually need multiple one-to-many collections to be fetched. Although this could be done in one query with eager fetching, this strategy is not recommended as it will lead to a potentially large Cartesian product. Therefore, the collections are initialized in separate queries during the mapping stage. If the returned results are small (maxRows parameters is set appropriately), a single query is likely faster, but probably not by enough to consider the optimization under these conditions.

Author:
Jeff Faath

Field Summary
protected static String selectSQL
           
 
Fields inherited from class org.apache.juddi.query.BindingTemplateQuery
ENTITY_ALIAS, ENTITY_FIELD, ENTITY_NAME, KEY_NAME_PARENT, 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
FetchBindingTemplatesQuery()
           
 
Method Summary
static List<?> select(javax.persistence.EntityManager em, FindQualifiers fq, List<?> keysIn, Integer maxRowsUser, Integer listHead, org.uddi.api_v3.ListDescription listDesc, DynamicQuery.Parameter... restrictions)
           
 
Methods inherited from class org.apache.juddi.query.BindingTemplateQuery
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

selectSQL

protected static String selectSQL
Constructor Detail

FetchBindingTemplatesQuery

public FetchBindingTemplatesQuery()
Method Detail

select

public static List<?> select(javax.persistence.EntityManager em,
                             FindQualifiers fq,
                             List<?> keysIn,
                             Integer maxRowsUser,
                             Integer listHead,
                             org.uddi.api_v3.ListDescription listDesc,
                             DynamicQuery.Parameter... restrictions)
                      throws org.uddi.v3_service.DispositionReportFaultMessage
Throws:
org.uddi.v3_service.DispositionReportFaultMessage


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