Examples of StringDecorator


Examples of com.vaadin.data.util.sqlcontainer.query.generator.filter.StringDecorator

                .getWhereStringForFilters(filters, new StatementHelper()));
    }

    @Test
    public void getWhereStringForFilters_customStringDecorator() {
        QueryBuilder.setStringDecorator(new StringDecorator("[", "]"));
        ArrayList<Filter> filters = new ArrayList<Filter>();
        filters.add(new Not(new IsNull("NAME")));
        Assert.assertEquals(" WHERE [NAME] IS NOT NULL", QueryBuilder
                .getWhereStringForFilters(filters, new StatementHelper()));
        // Reset the default string decorator
        QueryBuilder.setStringDecorator(new StringDecorator("\"", "\""));
    }
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.query.generator.filter.StringDecorator

     *            string
     * @param quoteEnd
     *            the identifier (character) denoting the end of a quoted string
     */
    public DefaultSQLGenerator(String quoteStart, String quoteEnd) {
        QueryBuilder.setStringDecorator(new StringDecorator(quoteStart,
                quoteEnd));
    }
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.query.generator.filter.StringDecorator

     *            string
     * @param quoteEnd
     *            the identifier (character) denoting the end of a quoted string
     */
    public DefaultSQLGenerator(String quoteStart, String quoteEnd) {
        QueryBuilder.setStringDecorator(new StringDecorator(quoteStart,
                quoteEnd));
    }
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.query.generator.filter.StringDecorator

     *            string
     * @param quoteEnd
     *            the identifier (character) denoting the end of a quoted string
     */
    public DefaultSQLGenerator(String quoteStart, String quoteEnd) {
        QueryBuilder.setStringDecorator(new StringDecorator(quoteStart,
                quoteEnd));
    }
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.query.generator.filter.StringDecorator

     *            string
     * @param quoteEnd
     *            the identifier (character) denoting the end of a quoted string
     */
    public DefaultSQLGenerator(String quoteStart, String quoteEnd) {
        QueryBuilder.setStringDecorator(new StringDecorator(quoteStart,
                quoteEnd));
    }
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.query.generator.filter.StringDecorator

     *            string
     * @param quoteEnd
     *            the identifier (character) denoting the end of a quoted string
     */
    public DefaultSQLGenerator(String quoteStart, String quoteEnd) {
        QueryBuilder.setStringDecorator(new StringDecorator(quoteStart,
                quoteEnd));
    }
View Full Code Here

Examples of org.freezedry.persistence.keyvalue.renderers.decorators.StringDecorator

   * @return creates and returns the default mapping between classes and their decorators
   */
  private static Map< Class< ? >, Decorator > createDefaultDecorators()
  {
    final Map< Class< ? >, Decorator > decorators = new HashMap<>();
    decorators.put( String.class, new StringDecorator() );

    decorators.put( Integer.class, new IntegerDecorator() );
    decorators.put( Long.class, new IntegerDecorator() );
    decorators.put( Short.class, new IntegerDecorator() );
    decorators.put( Double.class, new DoubleDecorator() );
View Full Code Here

Examples of org.freezedry.persistence.keyvalue.renderers.decorators.StringDecorator

   * @return creates and returns the default mapping between classes and their decorators
   */
  private static Map< Class< ? >, Decorator > createDefaultDecorators()
  {
    final Map< Class< ? >, Decorator > decorators = new HashMap<>();
    decorators.put( String.class, new StringDecorator() );

    decorators.put( Integer.class, new IntegerDecorator() );
    decorators.put( Long.class, new IntegerDecorator() );
    decorators.put( Short.class, new IntegerDecorator() );
    decorators.put( Double.class, new DoubleDecorator() );
View Full Code Here

Examples of org.freezedry.persistence.keyvalue.renderers.decorators.StringDecorator

  public MapRenderer( final KeyValueBuilder builder, final String openKey, final String closeKey )
  {
    super( builder );
   
    // create the decorator for the key
    this.keyDecorator = new StringDecorator( openKey, closeKey );
   
    // create the regular expression that determines if a string is renderered by this class
    // people[0] is a collection, but people{"test"}[0] is a map< string, list< integer > >
    // so we want to check that only word characters precede the "["
    final String open = Pattern.quote( openKey );
View Full Code Here

Examples of org.freezedry.persistence.keyvalue.renderers.decorators.StringDecorator

  public MapRenderer( final KeyValueBuilder builder, final String openKey, final String closeKey )
  {
    super( builder );
   
    // create the decorator for the key
    this.keyDecorator = new StringDecorator( openKey, closeKey );
   
    // create the regular expression that determines if a string is renderered by this class
    // people[0] is a collection, but people{"test"}[0] is a map< string, list< integer > >
    // so we want to check that only word characters precede the "["
    final String open = Pattern.quote( openKey );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.