|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.data.util.sqlcontainer.query.generator.filter.StringDecorator
public class StringDecorator
The StringDecorator knows how to produce a quoted string using the specified quote start and quote end characters. It also handles grouping of a string (surrounding it in parenthesis). Extend this class if you need to support special characters for grouping (parenthesis).
| Constructor Summary | |
|---|---|
StringDecorator(java.lang.String quoteStart,
java.lang.String quoteEnd)
Constructs a StringDecorator that uses the quoteStart and quoteEnd characters to create quoted strings. |
|
| Method Summary | |
|---|---|
java.lang.String |
group(java.lang.String str)
Groups a string by surrounding it in parenthesis |
java.lang.String |
quote(java.lang.Object str)
Surround a string with quote characters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringDecorator(java.lang.String quoteStart,
java.lang.String quoteEnd)
quoteStart - the character denoting the start of a quote.quoteEnd - the character denoting the end of a quote.| Method Detail |
|---|
public java.lang.String quote(java.lang.Object str)
str - the string to quote
public java.lang.String group(java.lang.String str)
str - the string to group
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||