src/main/java/org/jboss/util/Strings.java
/**
    * Check whether the given String is an identifier according to the
    * EJB-QL definition. See The EJB 2.0 Documentation Section 11.2.6.1.
    *
    * @param s String to check
    *
    * @return <code>true</code> if the given String is a reserved
    *         identifier in EJB-QL, <code>false</code> otherwise.
    */
Check whether the given String is an identifier according to the
EJB-QL definition.

@param s String to check

@return true if the given String is a reserved
identifier in EJB-QL, false otherwise.
Check whether the given String is an identifier according to the EJB - QL definition . @param s String to check @return true if the given String is a reserved identifier in EJB - QL false otherwise .
public final static boolean isEjbQlIdentifier(String s)
   {
      if (s == null || s.length() == 0)
      {
         return false;
      }
      for (int i = 0; i < ejbQlIdentifiers.length; i++)
      {
         if (ejbQlIdentifiers[i].equalsIgnoreCase(s))
         {
            return true;
         }
      }
      return false;
   }
public final static boolean isEjbQlIdentifier ( String s ) { if ( s == null || s . length ( ) == 0 ) { return false ; } for ( int i = 0 ; i < ejbQlIdentifiers . length ; i ++ ) { if ( ejbQlIdentifiers [ i ] . equalsIgnoreCase ( s ) ) { return true ; } } return false ; }
Check whether the given String is an identifier according to the
 EJB-QL definition.
Check whether the given String is an identifier according to the EJB - QL definition .