public void appendTo(Select sel, ExpState state, SQLBuffer sql, Column col) { if (sel != null) sel.setSchemaAlias(_schemaAlias); // if select is null, it means we are not aliasing columns // (e.g., during a bulk update) if (sel == null) sql.append(col.getIdentifier()); else if (_type == XPATH) // if this is an xpath, append xpath string sql.append(getXPath()); else sql.append(sel.getColumnAlias(col, state.joins)); }
public void appendTo(Select sel, ExpState state, SQLBuffer sql, Column col) { if (sel != null) sel.setSchemaAlias(_schemaAlias); // if select is null, it means we are not aliasing columns // (e.g., during a bulk update) if (sel == null) sql.append(col.getIdentifier()); else if (_type == XPATH) // if this is an xpath, append xpath string sql.append(getXPath()); else sql.append(sel.getColumnAlias(col, state.joins)); }
public void appendTo(Select sel, ExpState state, SQLBuffer sql, Column col) { if (sel != null) sel.setSchemaAlias(_schemaAlias); // if select is null, it means we are not aliasing columns // (e.g., during a bulk update) if (sel == null) sql.append(col.getIdentifier()); else if (_type == XPATH) // if this is an xpath, append xpath string sql.append(getXPath()); else sql.append(sel.getColumnAlias(col, state.joins)); }
public void appendTo(Select sel, ExpState state, SQLBuffer sql, Column col) { if (sel != null) sel.setSchemaAlias(_schemaAlias); // if select is null, it means we are not aliasing columns // (e.g., during a bulk update) if (sel == null) sql.append(col.getIdentifier()); else if (_type == XPATH) // if this is an xpath, append xpath string sql.append(getXPath()); else sql.append(sel.getColumnAlias(col, state.joins)); }
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index) { Column col = getColumns(state)[index]; // if select is null, it means we are not aliasing columns // (e.g., during a bulk update) if (sel == null) sql.append(col.getName()); else if (_type == XPATH) // if this is an xpath, append xpath string sql.append(getXPath()); else sql.append(sel.getColumnAlias(col, state.joins)); }