public class StringUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BRACKET_END |
static java.lang.String |
BRACKET_START |
static java.lang.String |
COMMA |
static java.lang.String |
SPACE |
static java.lang.String |
VALUE |
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
buildCreateTableStatement(java.lang.String tableName,
Column[] columns)
Build a create table statement based on the provided tableName and columns
|
static java.lang.String |
buildInClause(java.lang.String row,
int length)
Build a list of "?" placeholders seperated by commas(,) based on the
provided length.
|
static java.lang.String |
getArgValue(java.lang.Object val) |
static java.lang.String |
removeGetOrSetFromMethodName(java.lang.String methodName)
Removes the get / set prefix from the methodName and converts
the first character to lowercase
|
static java.lang.String |
removePrefixFromMethod(java.lang.String methodName,
java.lang.String prefix)
Removes the prefix from a method name and converts the result into lower case
|
public static final java.lang.String SPACE
public static final java.lang.String VALUE
public static final java.lang.String BRACKET_START
public static final java.lang.String BRACKET_END
public static final java.lang.String COMMA
public static java.lang.String removePrefixFromMethod(java.lang.String methodName,
java.lang.String prefix)
methodName - The name of the methodpublic static java.lang.String getArgValue(java.lang.Object val)
public static java.lang.String buildInClause(java.lang.String row,
int length)
public static java.lang.String buildCreateTableStatement(java.lang.String tableName,
Column[] columns)
tableName - The name of the table that the statement will createcolumns - The columns of the table being createdpublic static java.lang.String removeGetOrSetFromMethodName(java.lang.String methodName)
methodName - The methodName to fix