net.sf.farrago.test
Class DmvTestUdr
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DmvTestUdr
public DmvTestUdr()
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 wrapperlurqlFilename
- name of file containing LURQL to executetransformationFilename
- name of file containing rules for
transforming LURQL results into visualization inputdotFilename
- 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