org.dbforms.event.datalist.dao
Class XMLDataResult

java.lang.Object
  extended by org.dbforms.event.datalist.dao.XMLDataResult

public class XMLDataResult
extends Object

Delegates the whole xpath stuff to this class. Holds the result of an xpath query. Do the mapping between java objects and fields.

Author:
hkk

Constructor Summary
XMLDataResult(Element root, String qry)
          Creates a new XMLDataResult object.
 
Method Summary
 Object getItemValue(int i, String expression, int objectType)
          returns the field value of a special node as Object.
 Element getRoot()
          DOCUMENT ME!
 boolean hasChanged()
          DOCUMENT ME!
 Node item(int index)
          returns the result at index as dom node
 void setItemValue(int i, String expression, int objectType, Object value)
          sets the field value of a special node as string. node is decribed by an xpath string
 int size()
          size of resultset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDataResult

public XMLDataResult(Element root,
                     String qry)
Creates a new XMLDataResult object.

Parameters:
root - xml dom object
qry - xpath string to query
Method Detail

setItemValue

public void setItemValue(int i,
                         String expression,
                         int objectType,
                         Object value)
sets the field value of a special node as string. node is decribed by an xpath string

Parameters:
i - node of result to return
expression - xpath string which discribes the field to return
objectType - field type to return
value - value to set

getItemValue

public Object getItemValue(int i,
                           String expression,
                           int objectType)
returns the field value of a special node as Object. Node is decribed by an xpath string

Parameters:
i - node of result to return
expression - xpath string which discribes the field to return
objectType - field type to return
Returns:
value as Object of selected type

getRoot

public Element getRoot()
DOCUMENT ME!

Returns:
DOCUMENT ME!

hasChanged

public boolean hasChanged()
DOCUMENT ME!

Returns:
DOCUMENT ME!

item

public Node item(int index)
returns the result at index as dom node

Parameters:
index - node of result to return
Returns:
the node at index

size

public int size()
size of resultset

Returns:
size of result set


Copyright © 2002-2006 DbForms. All Rights Reserved.