net.sf.farrago.test
Class LurqlQueryUdx

java.lang.Object
  extended by net.sf.farrago.test.LurqlQueryUdx

public abstract class LurqlQueryUdx
extends Object

LurqlQueryUdx executes a LURQL query and returns the resulting collection as a relational result set.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/test/LurqlQueryUdx.java#2 $
Author:
John V. Sichi

Constructor Summary
LurqlQueryUdx()
           
 
Method Summary
static void queryMedMdr(String foreignServerName, String lurql, PreparedStatement resultInserter)
          Executes a LURQL query, producing result columns as follows: CLASS_NAME: class name of matching object OBJ_NAME: name of matching object, or null if it lacks a "name" attribute MOF_ID: MOFID of matching object OBJ_ATTRS: concatenation of attribute/value pairs defining matching object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LurqlQueryUdx

public LurqlQueryUdx()
Method Detail

queryMedMdr

public static void queryMedMdr(String foreignServerName,
                               String lurql,
                               PreparedStatement resultInserter)
                        throws Exception
Executes a LURQL query, producing result columns as follows:
  1. CLASS_NAME: class name of matching object
  2. OBJ_NAME: name of matching object, or null if it lacks a "name" attribute
  3. MOF_ID: MOFID of matching object
  4. OBJ_ATTRS: concatenation of attribute/value pairs defining matching object

Parameters:
foreignServerName - name of predefined foreign server to use as source; must be defined using the MDR foreign data wrapper
lurql - LURQL query to execute (may not contain parameters)
resultInserter - used to write results
Throws:
Exception