com.softwareag.xtools.quip.xqueryAPI
Class QuiPQueryResult

java.lang.Object
  |
  +--com.softwareag.xtools.quip.xqueryAPI.QuiPQueryResult
All Implemented Interfaces:
QueryResult

public class QuiPQueryResult
extends Object
implements QueryResult

Represents a Query result.

Version:
1.0
Author:
Patrick.Lehti@softwareag.com

Constructor Summary
QuiPQueryResult(String data)
          Constructor.
 
Method Summary
 BigDecimal getBigDecimal()
          Returns a BigDecimal result.
 boolean getBoolean()
          Returns a boolean result.
 org.w3c.dom.Document getDocument()
          Returns a Document result.
 double getDouble()
          Returns a double result.
 float getFloat()
          Returns a float result.
 int getInt()
          Returns an int result.
 long getLong()
          Returns a long result.
 org.w3c.dom.Node getNode()
          Returns a Node result.
 org.w3c.dom.NodeList getNodeList()
          Returns a NodeList result.
 Object getObject()
          Returns a Object result.
 String getRawString()
          Returns the raw data.
 String getString()
          Returns a String result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuiPQueryResult

public QuiPQueryResult(String data)
Constructor.
Parameters:
doc - a result document.
Method Detail

getDocument

public org.w3c.dom.Document getDocument()
                                 throws XQueryException
Returns a Document result.
Specified by:
getDocument in interface QueryResult

getString

public String getString()
                 throws XQueryException
Returns a String result.
Specified by:
getString in interface QueryResult

getLong

public long getLong()
             throws XQueryException
Returns a long result.
Specified by:
getLong in interface QueryResult

getInt

public int getInt()
           throws XQueryException
Returns an int result.
Specified by:
getInt in interface QueryResult

getBoolean

public boolean getBoolean()
                   throws XQueryException
Returns a boolean result.
Specified by:
getBoolean in interface QueryResult

getFloat

public float getFloat()
               throws XQueryException
Returns a float result.
Specified by:
getFloat in interface QueryResult

getDouble

public double getDouble()
                 throws XQueryException
Returns a double result.
Specified by:
getDouble in interface QueryResult

getBigDecimal

public BigDecimal getBigDecimal()
                         throws XQueryException
Returns a BigDecimal result.
Specified by:
getBigDecimal in interface QueryResult

getNode

public org.w3c.dom.Node getNode()
                         throws XQueryException
Returns a Node result.
Specified by:
getNode in interface QueryResult

getNodeList

public org.w3c.dom.NodeList getNodeList()
                                 throws XQueryException
Returns a NodeList result.
Specified by:
getNodeList in interface QueryResult

getObject

public Object getObject()
                 throws XQueryException
Returns a Object result. The instance can be a Document, NodeList or Node depending on the original result document.
Specified by:
getObject in interface QueryResult

getRawString

public String getRawString()
Returns the raw data.
Specified by:
getRawString in interface QueryResult


Copyright (c) 2001 Software AG. All Rights Reserved.