Class JDOQLParameterDeclarationParser
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.sqlstore.query.jqlc.JDOQLParameterDeclarationParser
-
- All Implemented Interfaces:
QueryParser
public class JDOQLParameterDeclarationParser extends Object implements QueryParser
Helper class to support parsing of JDOQL parameter declarations. Created on October 16, 2002- Author:
- Michael Bouschen
-
-
Field Summary
Fields Modifier and Type Field Description protected static ResourceBundle
messages
I18N support
-
Constructor Summary
Constructors Constructor Description JDOQLParameterDeclarationParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Method main for testing purposes.Iterator
parameterTypeIterator(String text)
Returns an iterator over the parameter types of the specified JDOQL parameter declartion.
-
-
-
Field Detail
-
messages
protected static final ResourceBundle messages
I18N support
-
-
Method Detail
-
parameterTypeIterator
public Iterator parameterTypeIterator(String text)
Returns an iterator over the parameter types of the specified JDOQL parameter declartion. The types are represented by their name, thus the Iterator's next method returns Strings.- Specified by:
parameterTypeIterator
in interfaceQueryParser
- Parameters:
text
- the JDOQL parameter declaration- Returns:
- an iterator over parameter types
- Throws:
JDOQueryException
- indicates a parse error
-
main
public static void main(String[] args)
Method main for testing purposes. Parameter args is expected to a an array of parameter declaration String. One parameter declaration may declare multiple parameters according to the JDOQL parameter declaration syntax. Calling java com...jqlc.ParameterDeclarationHelper "int a, String b" will printParameter types for >int a, String b<
int
String
-
-