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" ));
377378379380381382383
* @param value the Object value * @return the new DBSetExpr object */ public DBSetExpr to(Object value) { return new DBSetExpr(this, value); }
299300301302303304305306307308309
{ 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;
340341342343344345346347348349350
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; }
386387388389390391392
261262263264265266267268269270271
{ 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
296297298299300301302303304305306
342343344345346347348349350351352
{ 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 DBCommandParam) { // replace parameter value // int index = ((DBCommandParam) chk.value).index;
377378379380381382383384385386387
241242243244245246247
264265266267268269270271272273274