org.codehaus.modello.db
Class SQLReservedWords
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.modello.db.SQLReservedWords
- All Implemented Interfaces:
- org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
public class SQLReservedWords
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
SQLReservedWords - utility object to test against SQL Keywords.
- Version:
- $Id: SQLReservedWords.java 817 2007-03-12 16:53:29Z joakime $
- Author:
- Joakim Erdfelt
Method Summary |
java.util.List |
getKeywordSourceList(java.lang.String word)
Obtain the list of SQLReservedWords.KeywordSource objects that the specified (potential) keyword
(might) belong to. |
java.lang.String |
getKeywordSourceString(java.lang.String word)
Obtain the comma delimited string of keyword sources that the specified (potential) word
(might) belong to. |
void |
initialize()
|
boolean |
isKeyword(java.lang.String word)
Tests the provided word to see if it is a keyword. |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLReservedWords
public SQLReservedWords()
isKeyword
public boolean isKeyword(java.lang.String word)
- Tests the provided word to see if it is a keyword.
- Parameters:
word
- the word to test.
- Returns:
- true if the provided word is a keyword.
getKeywordSourceList
public java.util.List getKeywordSourceList(java.lang.String word)
- Obtain the list of
SQLReservedWords.KeywordSource
objects that the specified (potential) keyword
(might) belong to.
- Parameters:
word
- the word to test.
- Returns:
- the
List
of SQLReservedWords.KeywordSource
objects, or null
if specified word is
not a reserved word.
getKeywordSourceString
public java.lang.String getKeywordSourceString(java.lang.String word)
- Obtain the comma delimited string of keyword sources that the specified (potential) word
(might) belong to.
- Parameters:
word
- the wor to test.
- Returns:
- the
String
of keyword source names seperated by commas, or null
if word is
not a reserved word.
initialize
public void initialize()
throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
- Specified by:
initialize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
- Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Copyright © 2001-2011 Codehaus. All Rights Reserved.