View Javadoc
1 /* 2 * $Header: /cvsroot/ebxmlrr/jaxr/src/com/sun/xml/registry/ebxml/QueryImpl.java,v 1.2 2002/03/04 08:29:12 edwingo Exp $ 3 * 4 * 5 */ 6 7 package com.sun.xml.registry.ebxml; 8 9 import javax.xml.registry.*; 10 import java.util.*; 11 12 /*** 13 * Class Declaration for Class1 14 * 15 */ 16 public class QueryImpl implements Query { 17 private int queryType; 18 private String queryString; 19 20 QueryImpl(int queryType, String queryString) { 21 this.queryType = queryType; 22 this.queryString = queryString; 23 } 24 25 /*** 26 * Gets the type of Query (e.g. QUERY_TYPE_SQL) 27 * 28 * 29 * <p><DL><DT><B>Capability Level: 1 </B></DL> 30 * 31 * @see Query#QUERY_TYPE_SQL 32 * @see Query#QUERY_TYPE_XQUERY 33 * @return the type of query 34 */ 35 public int getType() throws JAXRException{ 36 return queryType; 37 } 38 39 /*** 40 * Must print the String representing the query. For example 41 * in case of SQL query prints the SQL query as a string. 42 * 43 * <p><DL><DT><B>Capability Level: 1 </B></DL> 44 * 45 */ 46 public String toString(){ 47 return queryString; 48 } 49 }

This page was automatically generated by Maven