com.onewebsql.query
Class AExpColumnWrapper

java.lang.Object
  extended by com.onewebsql.query.Exp
      extended by com.onewebsql.query.AExp
          extended by com.onewebsql.query.Column
              extended by com.onewebsql.query.AExpColumnWrapper
All Implemented Interfaces:
Expression

public class AExpColumnWrapper
extends Column

Enables to use an arbitrary arithmetic expression as virtual column.


Field Summary
 
Fields inherited from class com.onewebsql.query.Column
jdbcType, name, owner
 
Fields inherited from class com.onewebsql.query.AExp
expression, value
 
Fields inherited from class com.onewebsql.query.Exp
brackets, left, operator, right
 
Fields inherited from interface com.onewebsql.query.Expression
COMMA, DOT, LB, QUESTION_MARK, RB, SPACE
 
Constructor Summary
AExpColumnWrapper(String columnName, AExp aexp)
          Constructor.
 
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.
 
Methods inherited from class com.onewebsql.query.Column
alias, equals, getJdbcType, getName, getOwner, hashCode, setJdbcType, setName, setOwner, setSchema, toString
 
Methods inherited from class com.onewebsql.query.AExp
add, add, add, add, add, add, add, add, add, all, any, between, between, between, between, between, between, between, between, between, between, between, between, between, br, div, div, div, div, div, div, div, div, div, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, exp, exp, exp, exp, exp, exp, exp, exp, exp, exp, exp, exp, exp, exp, exp, exp, exp, exp, fun, fun, ge, ge, ge, ge, ge, ge, ge, ge, ge, ge, ge, ge, ge, getValue, gt, gt, gt, gt, gt, gt, gt, gt, gt, gt, gt, gt, gt, ilike, ilike, in, in, inIds, inIds, inValues, le, le, le, le, le, le, le, le, le, le, le, le, le, like, like, lt, lt, lt, lt, lt, lt, lt, lt, lt, lt, lt, lt, lt, mul, mul, mul, mul, mul, mul, mul, mul, mul, ne, ne, ne, ne, ne, ne, ne, ne, ne, ne, ne, ne, ne, ne, ne, ne, neg, some, sub, sub, sub, sub, sub, sub, sub, sub, sub
 
Methods inherited from class com.onewebsql.query.Exp
aliasColumn, aliasTable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AExpColumnWrapper

public AExpColumnWrapper(String columnName,
                         AExp aexp)
Constructor.

Parameters:
columnName - column name
aexp - arithmetic expression
Method Detail

build

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

Specified by:
build in interface Expression
Overrides:
build in class Column
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.