There is no need to explicitly create instances of this class. Instead use {@link DBColumn#to(Object)} factory method.
For the SQL fragment "set name="foo" you should write: cmd.set( TABLE.NAME.to( "foo" ));
299300301302303304305306307308309
if (set==null) return false; Iterator<DBSetExpr> i = set.iterator(); while (i.hasNext()) { DBSetExpr chk = i.next(); if (chk.column.equals(column)) return true; } return false; }
232233234235236237238
* @param value the Object value * @return the new DBSetExpr object */ public DBSetExpr to(Object value) { return new DBSetExpr(this, value); }
288289290291292293294295296297298
{ if (set == null) set = new ArrayList<DBSetExpr>(); for (int i = 0; i < set.size(); i++) { DBSetExpr chk = set.get(i); if (chk.column.equals(expr.column)) { // Overwrite existing value if (useCmdParam(expr.column, expr.value)) { // replace parameter value // int index = ((DBCommandParam) chk.value).index;
329330331332333334335336337338339
{ if (set == null) set = new ArrayList<DBSetExpr>(); for (int i = 0; i < set.size(); i++) { DBSetExpr chk = set.get(i); if (chk.column.equals(expr.column)) { // Overwrite existing value if (useCmdParam(expr.column, expr.value) && chk.value instanceof DBCmdParam) { // replace parameter value // int index = ((DBCommandParam) chk.value).index;
323324325326327328329330331332333
417418419420421422423
315316317318319320321322323324325
{ if (set == null) set = new ArrayList<DBSetExpr>(); for (int i = 0; i < set.size(); i++) { DBSetExpr chk = set.get(i); if (chk.column.equals(expr.column)) { // Overwrite existing value if (useCmdParam(expr.column) && (expr.value instanceof DBExpr) == false && chk.value instanceof DBCmdParameter) { // replace parameter
350351352353354355356357358359360
214215216217218219220