Class StringDecorator
- java.lang.Object
-
- com.vaadin.data.util.sqlcontainer.query.generator.filter.StringDecorator
-
- All Implemented Interfaces:
Serializable
public class StringDecorator extends Object implements Serializable
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).- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StringDecorator(String quoteStart, String quoteEnd)Constructs a StringDecorator that uses the quoteStart and quoteEnd characters to create quoted strings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringgroup(String str)Groups a string by surrounding it in parenthesisStringquote(Object str)Surround a string with quote characters.
-
-
-
Constructor Detail
-
StringDecorator
public StringDecorator(String quoteStart, String quoteEnd)
Constructs a StringDecorator that uses the quoteStart and quoteEnd characters to create quoted strings.- Parameters:
quoteStart- the character denoting the start of a quote.quoteEnd- the character denoting the end of a quote.
-
-