org.knime.base.node.io.database
Class DBVariableSupportNodeModel.Resolver

java.lang.Object
  extended by org.knime.base.node.io.database.DBVariableSupportNodeModel.Resolver
Enclosing interface:
DBVariableSupportNodeModel

public static final class DBVariableSupportNodeModel.Resolver
extends Object

Resolver providing methods to parse queries and wrap certain variables.


Method Summary
static String parse(String query, DBVariableSupportNodeModel model)
          Parses the given database query and replaces the variables.
static String wrap(FlowVariable var)
          Replaces and returns the given flow variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static String parse(String query,
                           DBVariableSupportNodeModel model)
Parses the given database query and replaces the variables.

Parameters:
query - SQL query to parse
model - delegator to to retrieve variables
Returns:
SQL query where the variables have been replace with their actual value

wrap

public static String wrap(FlowVariable var)
Replaces and returns the given flow variable.

Parameters:
var - flow variable to be extended
Returns:
the new variable as string with pre- and suffix for INTEGER, DOUBLE and STRING types


Copyright, 2003 - 2012. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.