List of usage examples for javax.xml.registry Query QUERY_TYPE_EBXML_FILTER_QUERY
int QUERY_TYPE_EBXML_FILTER_QUERY
To view the source code for javax.xml.registry Query QUERY_TYPE_EBXML_FILTER_QUERY.
Click Source Link
From source file:it.cnr.icar.eric.client.xml.registry.DeclarativeQueryManagerImpl.java
/** * Creates a Query object given a queryType (e.g. SQL) and a String * that represents a query in the syntax appropriate for queryType. * Must throw and InvalidRequestException if the sqlQuery is not valid. * * * <p><DL><DT><B>Capability Level: 0 (optional) </B></DL> * * @see Query#QUERY_TYPE_SQL/*from w w w . j a v a2 s . c o m*/ * @see Query#QUERY_TYPE_XQUERY */ public Query createQuery(int queryType, String queryString) throws InvalidRequestException, JAXRException { if ((queryType != Query.QUERY_TYPE_SQL) && (queryType != Query.QUERY_TYPE_EBXML_FILTER_QUERY)) { throw new InvalidRequestException("Type must be Query.QUERY_TYPE_SQL or QUERY_TYPE_EBXML_FILTER_QUERY"); } // TODO: check queryString syntax return new QueryImpl(queryType, queryString); }
From source file:it.cnr.icar.eric.client.ui.thin.RegistryObjectCollectionBean.java
public List<SelectItem> getQueryTypes() { ArrayList<SelectItem> list = new ArrayList<SelectItem>(); list.add(new SelectItem((new Integer(Query.QUERY_TYPE_SQL)), "SQL Query")); list.add(new SelectItem((new Integer(Query.QUERY_TYPE_XQUERY)), "XQuery")); list.add(new SelectItem((new Integer(Query.QUERY_TYPE_EBXML_FILTER_QUERY)), "ebXML Filter Query")); return list;/*from w ww .j av a2 s .c o m*/ }