org.codehaus.modello.db

Class SQLReservedWords

public class SQLReservedWords extends AbstractLogEnabled implements Initializable

SQLReservedWords - utility object to test against SQL Keywords.

Version: $Id: SQLReservedWords.java 817 2007-03-12 16:53:29Z joakime $

Author: Joakim Erdfelt

UNKNOWN: role="org.codehaus.modello.db.SQLReservedWords"

Nested Class Summary
classSQLReservedWords.KeywordSource
Method Summary
ListgetKeywordSourceList(String word)
Obtain the list of KeywordSource objects that the specified (potential) keyword (might) belong to.
StringgetKeywordSourceString(String word)
Obtain the comma delimited string of keyword sources that the specified (potential) word (might) belong to.
voidinitialize()
booleanisKeyword(String word)
Tests the provided word to see if it is a keyword.

Method Detail

getKeywordSourceList

public List getKeywordSourceList(String word)
Obtain the list of KeywordSource objects that the specified (potential) keyword (might) belong to.

Parameters: word the word to test.

Returns: the List of KeywordSource objects, or null if specified word is not a reserved word.

getKeywordSourceString

public String getKeywordSourceString(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()

isKeyword

public boolean isKeyword(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.

Copyright © 2001-2009 Codehaus. All Rights Reserved.