Class ReservedWords
java.lang.Object
org.apache.openjpa.persistence.util.ReservedWords
Utility to test validity of identifier or parameter name.
- Since:
- 2.0.0
- Author:
- Pinaki Poddar
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Character
hasSpecialCharacter
(String name) Returns the special character contained in the given name if any.static boolean
Affirms if the given string matches any of the JPA reserved words in a case-insensitive manner.
-
Field Details
-
KEYWORDS
-
-
Constructor Details
-
ReservedWords
public ReservedWords()
-
-
Method Details
-
isKeyword
Affirms if the given string matches any of the JPA reserved words in a case-insensitive manner. -
hasSpecialCharacter
Returns the special character contained in the given name if any.- Returns:
- null if no character in the given name is a special character.
-