org.jpox.store.query
Class JPQLParser
java.lang.Object
org.jpox.store.query.Parser
org.jpox.store.query.JPQLParser
public class JPQLParser
- extends Parser
Parser for JPQL queries, extending the basic JDOQL parser for supporting the identifier ?1, ?2 syntax.
- Version:
- $Revision: 1.2 $
| Methods inherited from class org.jpox.store.query.Parser |
getIndex, getInput, nextIsDot, nextIsSingleQuote, parseBooleanLiteral, parseCast, parseChar, parseChar, parseEOS, parseEscapedCharacter, parseFloatingPointLiteral, parseIntegerLiteral, parseMethod, parseName, parseNullLiteral, parseString, parseStringIgnoreCase, peekStringIgnoreCase, remaining, skipWS, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JPQLParser
public JPQLParser(java.lang.String input,
Imports imports)
- Constructor.
- Parameters:
input - Input stringimports - Any imports
parseIdentifier
public java.lang.String parseIdentifier()
- Override the identifier parse to allow for ?1, ?2 syntax
- Overrides:
parseIdentifier in class Parser
- Returns:
- The identifier
parseCharacterLiteral
public java.lang.Character parseCharacterLiteral()
- Parse a Character literal.
- Overrides:
parseCharacterLiteral in class Parser
- Returns:
- the Character parsed. null if single quotes is found
- Throws:
JPOXUserException - if an invalid character is found or the CharacterIterator is finished
parseStringLiteral
public java.lang.String parseStringLiteral()
- Parse a String literal.
- Overrides:
parseStringLiteral in class Parser
- Returns:
- the String parsed. null if single quotes or double quotes is found
- Throws:
JPOXUserException - if an invalid character is found or the CharacterIterator is finished
Copyright © -2008 . All Rights Reserved.