org.apache.juddi.query
Class FindTModelByNameQuery

java.lang.Object
  extended by org.apache.juddi.query.EntityQuery
      extended by org.apache.juddi.query.TModelQuery
          extended by org.apache.juddi.query.FindTModelByNameQuery

public class FindTModelByNameQuery
extends TModelQuery

Returns the list of tmodel keys possessing the passed Name argument. Output is restricted by list of tModel keys passed in. If null, all tModels are searched. Output is produced by building the appropriate JPA query based on input and find qualifiers. From specification: "This string value represents the name of the tModel elements to be found. Since tModel data only has a single name, only a single name may be passed. The argument must match exactly since "exactMatch" is the default behavior, but if the "approximateMatch" findQualifier is used together with the appropriate wildcard character, then matching is done according to wildcard rules. See Section 5.1.6 About Wildcards for additional information. The name MAY be marked with an xml:lang adornment. If a language markup is specified, the search results report a match only on those entries that match both the name value and language criteria. The match on language is a leftmost case-insensitive comparison of the characters supplied. This allows one to find all tModels whose name begins with an "A" and are expressed in any dialect of French, for example. Values which can be passed in the language criteria adornment MUST obey the rules governing the xml:lang data type as defined in Section 3.3.2.3 name."

Author:
Jeff Faath

Field Summary
 
Fields inherited from class org.apache.juddi.query.TModelQuery
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
FindTModelByNameQuery()
           
 
Method Summary
static void appendConditions(DynamicQuery qry, FindQualifiers fq, Name name)
           
static List<?> select(javax.persistence.EntityManager em, FindQualifiers fq, Name name, List<?> keysIn, DynamicQuery.Parameter... restrictions)
           
 
Methods inherited from class org.apache.juddi.query.TModelQuery
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
 

Constructor Detail

FindTModelByNameQuery

public FindTModelByNameQuery()
Method Detail

select

public static List<?> select(javax.persistence.EntityManager em,
                             FindQualifiers fq,
                             Name name,
                             List<?> keysIn,
                             DynamicQuery.Parameter... restrictions)

appendConditions

public static void appendConditions(DynamicQuery qry,
                                    FindQualifiers fq,
                                    Name name)


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