org.synchronoss.cpo.jdbc.parser
Class SQLExpressionParser

Package class diagram package SQLExpressionParser
java.lang.Object
  extended by org.synchronoss.cpo.jdbc.parser.SQLExpressionParser
All Implemented Interfaces:
ExpressionParser

public class SQLExpressionParser
extends java.lang.Object
implements ExpressionParser

Since:
10/20/2008
Author:
Michael Bellomo

Constructor Summary
SQLExpressionParser()
           
 
Method Summary
 int countArguments()
          Returns the count of the bind markers in the expression
 java.lang.String getExpression()
           
 java.util.List<java.lang.String> parse()
          Returns a list of columns from the expression for each bind marker
 void setExpression(java.lang.String expression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLExpressionParser

public SQLExpressionParser()
Method Detail

getExpression

public java.lang.String getExpression()
Specified by:
getExpression in interface ExpressionParser

setExpression

public void setExpression(java.lang.String expression)
Specified by:
setExpression in interface ExpressionParser

countArguments

public int countArguments()
Returns the count of the bind markers in the expression

Specified by:
countArguments in interface ExpressionParser
Returns:
the number of bind markers

parse

public java.util.List<java.lang.String> parse()
                                       throws java.text.ParseException
Returns a list of columns from the expression for each bind marker

Specified by:
parse in interface ExpressionParser
Returns:
List of Strings for the columns for the bind markers
Throws:
java.text.ParseException - thrown if the expression cannot be parsed


Copyright © 2012. All Rights Reserved.