net.sf.farrago.test
Class DmvTestUdr

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

public abstract class DmvTestUdr
extends Object

DmvTestUdr is a SQL-invocable entry point for package org.eigenbase.dmv.

NOTE: this lives here rather than under org.eigenbase because it currently depends on MDR for a JMI implementation.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/test/DmvTestUdr.java#9 $
Author:
John Sichi

Constructor Summary
DmvTestUdr()
           
 
Method Summary
private static String readFileAsString(String filename)
           
static void renderGraphviz(FarragoMdrTestContext context, String lurqlFilename, String transformationFilename, String dotFilename)
           
static void renderGraphviz(String foreignServerName, String lurqlFilename, String transformationFilename, String dotFilename)
          Executes a visualization transform via a procedure called from SQL, producing a .dot file which can be used as input to Graphviz.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DmvTestUdr

public DmvTestUdr()
Method Detail

renderGraphviz

public static void renderGraphviz(String foreignServerName,
                                  String lurqlFilename,
                                  String transformationFilename,
                                  String dotFilename)
                           throws Exception
Executes a visualization transform via a procedure called from SQL, producing a .dot file which can be used as input to Graphviz.

Parameters:
foreignServerName - name of predefined foreign server to use as source; must be defined using the MDR foreign data wrapper
lurqlFilename - name of file containing LURQL to execute
transformationFilename - name of file containing rules for transforming LURQL results into visualization input
dotFilename - name of .dot file to create
Throws:
Exception

renderGraphviz

public static void renderGraphviz(FarragoMdrTestContext context,
                                  String lurqlFilename,
                                  String transformationFilename,
                                  String dotFilename)
                           throws Exception
Throws:
Exception

readFileAsString

private static String readFileAsString(String filename)
                                throws IOException
Throws:
IOException