com.onewebsql.query
Interface Expression

All Known Subinterfaces:
TableReference
All Known Implementing Classes:
AExp, AExpColumnWrapper, Alias, Column, DeleteQuery, Exp, InsertQuery, Join, LExp, OrderByItem, SelectQuery, Subselect, TableExpression, UpdateQuery, VirtualColumn, WhereQuery

public interface Expression

Interface which is used to build a PreparedStatement object (or a part of it). The only method of this interface creates the query text (through StringBuilder) and binds query parameters to the statement.


Field Summary
static String COMMA
          Constant used to build a query.
static String DOT
          Constant used to build a query.
static String LB
          Constant used to build a query.
static String QUESTION_MARK
          Constant used to build a query.
static String RB
          Constant used to build a query.
static String SPACE
          Constant used to build a query.
 
Method Summary
 void build(StringBuilder sb, String schemaName, List<Value> objs, DBAdapter adapter)
          Builds the text of the query (or a part of it) represented by this object.
 

Field Detail

SPACE

static final String SPACE
Constant used to build a query.

See Also:
Constant Field Values

COMMA

static final String COMMA
Constant used to build a query.

See Also:
Constant Field Values

DOT

static final String DOT
Constant used to build a query.

See Also:
Constant Field Values

LB

static final String LB
Constant used to build a query.

See Also:
Constant Field Values

RB

static final String RB
Constant used to build a query.

See Also:
Constant Field Values

QUESTION_MARK

static final String QUESTION_MARK
Constant used to build a query.

See Also:
Constant Field Values
Method Detail

build

void build(StringBuilder sb,
           String schemaName,
           List<Value> objs,
           DBAdapter adapter)
Builds the text of the query (or a part of it) represented by this object.

Parameters:
sb - StringBuilder to build the query text
schemaName - name of the database schema used to build the query
objs - an accumulator list to which query parameters are appended
adapter - database adapter which builds builds query in a way specific to the database engine


Copyright © 2011-2013 e-point SA. All Rights Reserved.