org.datanucleus.query
Class SQLQueryHelper

java.lang.Object
  extended by org.datanucleus.query.SQLQueryHelper

public class SQLQueryHelper
extends java.lang.Object

SQL query helper class providing key information about the language etc.


Field Summary
static java.lang.String[] RESERVED_IDENTIFIERS
          List of identifier names not allowed by SQL.
static java.lang.String[] SINGLE_STRING_KEYWORDS
          Keywords used in single-string SQL.
 
Constructor Summary
SQLQueryHelper()
           
 
Method Summary
static boolean isKeyword(java.lang.String name)
          Convenience method returning if the supplied name is a keyword for this query language.
static boolean isReservedIdentifier(java.lang.String name)
          Convenience method returning if the supplied name is a reserved identifier for this query language.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLE_STRING_KEYWORDS

public static final java.lang.String[] SINGLE_STRING_KEYWORDS
Keywords used in single-string SQL. Uppercase variants specified here, but SQL allows case-insensitive.


RESERVED_IDENTIFIERS

public static final java.lang.String[] RESERVED_IDENTIFIERS
List of identifier names not allowed by SQL.

Constructor Detail

SQLQueryHelper

public SQLQueryHelper()
Method Detail

isKeyword

public static boolean isKeyword(java.lang.String name)
Convenience method returning if the supplied name is a keyword for this query language.

Parameters:
name - Name to check
Returns:
Whether it is a keyword

isReservedIdentifier

public static boolean isReservedIdentifier(java.lang.String name)
Convenience method returning if the supplied name is a reserved identifier for this query language.

Parameters:
name - Name to check
Returns:
Whether it is a reserved identifier


Copyright © 2010. All Rights Reserved.