Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.openjpa.persistence.util
Class ReservedWords

    java.lang.Object
      org.apache.openjpa.persistence.util.ReservedWords

    public class ReservedWords

extends Object

Utility to test validity of identifier or parameter name.

Since:
  2.0.0
Author:
  Pinaki Poddar

Field Summary
`static Set<String>` | `KEYWORDS`

Constructor Summary
`ReservedWords()`

Method Summary
`static Character` | `hasSpecialCharacter(String name)` Returns the special character contained in the given name if any.
`static boolean` | `isKeyword(String name)` Affirms if the given string matches any of the JPA reserved words in a case-insensitive manner.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### KEYWORDS

    public static final Set<String> KEYWORDS

Constructor Detail

### ReservedWords

    public ReservedWords()

Method Detail

### isKeyword

    public static boolean isKeyword(String name)

  Affirms if the given string matches any of the JPA reserved words in a case-insensitive manner.

### hasSpecialCharacter

    public static Character hasSpecialCharacter(String name)

  Returns the special character contained in the given name if any.

  Returns:
    null if no character in the given name is a special character.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.