Package com.github.eikecochu.sqlbuilder
Class Name
- java.lang.Object
-
- com.github.eikecochu.sqlbuilder.Name
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Set<java.lang.String>KEYWORDSThe KEYWORDS set is used to identify database keywords in names to apply escaping to avoid errors when executing the query.
-
Constructor Summary
Constructors Constructor Description Name()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisKeyword(java.lang.String str)Returns true if the passed string is recognized as a keyword.java.lang.Stringstring(QueryOptions options)Transforms this statement into an SQL string
-
-
-
Method Detail
-
string
public java.lang.String string(QueryOptions options)
Description copied from interface:QueryPartTransforms this statement into an SQL string
-
isKeyword
public static boolean isKeyword(java.lang.String str)
Returns true if the passed string is recognized as a keyword. This is an estimation, as the target database is not taken into account. To modify the keyword list, change or overwrite Name.KEYWORDS- Parameters:
str- The name to check- Returns:
- true if it is a keyword
-
-