scriptella.jdbc
Class ParametersParser

java.lang.Object
  extended by scriptella.jdbc.ParametersParser

public class ParametersParser
extends java.lang.Object

Parses parameter expressions in SQL statements. This class use Expression parsing mechanism except the file reference case.

The syntax of the file reference is the following:

?{file <Expression>}

The result of expression evaluation must be of String or URL type.

Examples:

Version:
1.0
Author:
Fyodor Kupolov
See Also:
Expression

Constructor Summary
ParametersParser(DriverContext driverContext)
          Creates a file reference parser.
 
Method Summary
 java.lang.Object evaluate(java.lang.String expression, ParametersCallback parameters)
          Parses specified expression and returns the result of evaluation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParametersParser

public ParametersParser(DriverContext driverContext)
Creates a file reference parser.

Parameters:
driverContext - drivers content to use for URL resolution.
Method Detail

evaluate

public java.lang.Object evaluate(java.lang.String expression,
                                 ParametersCallback parameters)
Parses specified expression and returns the result of evaluation.

Parameters:
expression - expression to parse.
Returns:
result of parse.


Copyright © Copyright 2006-2009 The Scriptella Project Team.